Tag: Eclipse

  • Using adb over Wireless / Wifi

    Physical cables are rapidly becoming obsolete, and they’re annoying to use for Android development and debugging. Luckily, adb can easily be configured to work wirelessly and you can free yourself from micro-USB cables (almost) entirely. To do this, plug a phone into a computer as you would to normally debug over adb. (This is the…

  • Example Robolectric and Ant Eclipse Project

    Until recently, I’ve been unable to configure a Robolectric project that can easily be shared across a team and integrated with Jenkins CI without the use of Maven. I mentioned this in a previous post, and have asked for assistance on Pivotal’s Robolectric Google Group a handful of times. There are several jar files that…

  • Inspecting and Improving UI Layouts With HierarchyViewer

    HierarchyViewer is a visual tool that can be used to inspect your Android user interfaces and help you improve your layout designs and performance. It’s packaged with the Android SDK, and lives in the <android-sdk>/tools folder. To launch hierarchyviewer, simply open a terminal or command window and type hierarchyviewer. To open hierarchyviewer via Eclipse, select…

  • 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!