0
我有一個Android Widget應用程序。這是一個來自this page的應用程序(我剛剛下載了源代碼)。
用於調試此小工具我用戶this tutorial。 我在代碼中放置了一個斷點(下面提供)。調試Android Widget時出錯
public static void pushWidgetUpdate(Context context, RemoteViews remoteViews) {
Log.d("message", "fortunately, we have come to this point");
ComponentName myWidget = new ComponentName(context, MyWidgetProvider.class); //breakpoint is here!
AppWidgetManager manager = AppWidgetManager.getInstance(context);
manager.updateAppWidget(myWidget, remoteViews);
}
當我開始我的調試過程時,綠色的調試行像往常一樣顯示在斷點上。但幾秒鐘後它就消失了,我發現這個小部件(或調試過程,甚至是電話本身的過程)已經終止。該過程不再在DDMS透視圖的進程列表中。
調試器爲什麼突然停止?