Use a common Tag for all your activities’ logging

It is pretty common for any non-trivial Android app to be composed of several Activities which together interact with the user for the furtherance of whatever is the objective of the app itself.It is also pretty common, especially during the development phase, to have a need to emit logs so that one can check certain … More Use a common Tag for all your activities’ logging

HTTP POST for Android (with a twist: Protocol Buffers)

One of this blog’s most visited entries (ranking always around the Top 5 Google results for “HTTP POST” too) elaborated on how to send data across to a server from a J2ME Midlet.I thought it was high time for bringing this into the new Century, and provide an update as to how to do this … More HTTP POST for Android (with a twist: Protocol Buffers)

Using the same model classes in Android, GWT and JPA (Part II)

In a recent post, I’ve demonstrated how one can use the same domain-specific (Model) classes end-to-end, from the Mobile layer, to the GWT Front-End, up to server-side and Persistence layer (JPA). Recently, I’ve done a serious refactoring of my Android Receipts mobile app, using java.net.URIs to keep track of the receipts’ images location in the … More Using the same model classes in Android, GWT and JPA (Part II)

Android Draw 9-patch seems broken too

As far as I can tell, the current release of the Android SDK (R08) ships without the Swing Desktop jar, and this causes draw9patch to fail. ~$ draw9patch & [2] 52452 ~$ Exception in thread “AWT-EventQueue-0” java.lang.NoClassDefFoundError: org/jdesktop/swingworker/SwingWorker at com.android.draw9patch.Application$1.run(Application.java:48) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java:461) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110) [2]+ … More Android Draw 9-patch seems broken too

Latest update for Android SDK breaks for Ubuntu Karmic

If you have recently updated your Android SDK to R08 (Gingerbread, 2.3) on Linux and are using Ubuntu Karmic, chances are that you will not be able to run the emulator: It will simply die with the following error:$ ./emulator./emulator: /lib32/libc.so.6: version `GLIBC_2.11′ not found (required by ./emulator)This is caused by an incompatibility with Karmic’s installed … More Latest update for Android SDK breaks for Ubuntu Karmic