java - Error while debugging an Android Widget -


i have android widget application. application this page (i downloaded source code).
debugging widget user this tutorial. put 1 breakpoint in code (provided below).

public static void pushwidgetupdate(context context, remoteviews remoteviews) { log.d("message", "fortunately, have come point");  componentname mywidget = new componentname(context, mywidgetprovider.class); //breakpoint here! appwidgetmanager manager = appwidgetmanager.getinstance(context); manager.updateappwidget(mywidget, remoteviews);      } 

when begin debugging process, green debugging line shown on line breakpoint usual. after several seconds disappears, , see widget (or debugging process, or process on phone itself) has been terminated. process no more in process list in ddms perspective.
why debugger stop?

i have read on stackoverflow, debugging android apps better via logging (log.d(string tag, string log_text). so, have not found reason of error, started debug via logging.


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -