Category: Uncategorized
-
Application Crash Reporting for Android
ACRA is a Google library that allows your Android applications to automatically log unhandled exceptions or application crashes to a Google document and/or display Toast notifications. To use it, you’ll need to create an Application class at the root of your Android application. This class will be used to log any uncaught or unhandled Exceptions,…
-
Android USB Debugging on Ubuntu Linux 11.10
I recently set up a new development machine with Ubuntu Linux 11.10, but ran into this problem trying to list connected Android devices with the adb command: [code] ./adb devices List of devices attached ???????????? no permissions [/code] To fix this, just run these commands from your SDK/platform-tools folder to restart the ADB server with…
-
Team Development With Google Maps
Android development with Google Maps requires you to generate an API key using the MD5 fingerprint of your keystore certificate. If there are several people on your team, it’s likely you’ll all have different debug.keystore files, and subsequently different API keys. To fix this you should share your keystore file in something like Dropbox or…
-
Debugging an Android Thread / Service
Trying to debug an Android application recently, Eclipse wasn’t stopping on my breakpoints following an asynchronous / threaded API call. This single line of code solved my problem: [java] android.os.Debug.waitForDebugger(); [/java] This will cause the Android Debugger to attach even after launching the application normally. Hope this helps!