I am trying to run the sample soft keyboard included in the SDK. I am
using the debugger, and the literature says that to use a breakpoint
while debugging a SERVICE, I need to include:
android.os.Debug.waitForDebugger();
So here is the portion of the code I modified:
@Override public void onCreate() {
/* now let's
wait until the debugger attaches */
android.os.Debug.waitForDebugger();
super.onCreate();
//
breakpoint 1
mWordSeparators =
getResources().getString(R.string.word_separators); //
breakpoint 2
}
I have put a couple of breakpoints, at the statements indicated by the
comments.
This is what happens: the debugger first stops at the breakpoint1, for
a few seconds. But then the service restarts. For the life of me I
can't figure out what makes the service to restart.
Any ideas?
Thanks.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en