Tag: java
-
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…
-
Real-Time Android Messaging With Pusher
Pusher is a hosted API for real-time JSON messaging in web and mobile applications via WebSockets. Examples Pusher applications: Updating a website or mobile application with sports scores or stock prices in real-time Sending real-time messages to Arduino devices from a web or mobile application Building a real-time donation thermometer on a website Tracking multi-player…
-
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!