If you get to a point when you get this error(to see it you have to open the DDMS console from Eclipse):
ddms]nulljava.lang.NullPointerException at com.android.ddmlib.JdwpPacket.writeAndConsume(JdwpPacket.java:213)at com.android.ddmlib.Client.sendAndConsume(Client.java:573)at com.android.ddmlib.HandleHello.sendHELO(HandleHello.java:142)at com.android.ddmlib.HandleHello.sendHelloCommands(HandleHello.java:65)at com.android.ddmlib.Client.getJdwpPacket(Client.java:670)at com.android.ddmlib.MonitorThread.processClientActivity(MonitorThread.java:317)at com.android.ddmlib.MonitorThread.run(MonitorThread.java:263)
then… this can mean that the activity stack of your project is either full or better yet, you forgot to close/exit/finish an activity somewhere.
Look in your code for places where you forgot to call the “finish()” method after this line that is starting another intent.
startActivityForResult(myIntent, RESULT_OK); . So you should have this:
This took me hours to figure out, the small things just elude our mind(eyes in this case) sometimes, when we look for major mistakes we forget to look at the potential small ones. Debugging is the key either way.
Hope this helps you.