How did you conclude that the service is auto-starting?
Put some 'Log.d()'s  in your code in onCreate to confirm auto-starts.

I've noticed in the debugger that at times, you have to 'step/next'
twice to get over a statement.

On Jul 29, 1:59 pm, Ahmad <[email protected]> wrote:
> I have not received any answer on this. Is anyone from google/android
> reading this?
>
> I can't believe this to be an isolated issue. I am sure others have
> come to/ or will come to it.
>
> Any pointer to this will be appreciated.
>
> On Jul 22, 3:35 pm, Ahmad <[email protected]> wrote:
>
>
>
> > 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 aSERVICE, 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 theservicerestarts. For the life of me I
> > can't figure out what makes theserviceto 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

Reply via email to