The problem you are likely experiencing is that the Eclipse plugin
only attaches by default to the process that hosts the activity
configured in the Run dialog.  Android is capable of running services
in their own separate process.  There are two ways around this: (1)
make sure that your manifest file doesn't declare the service process
as remote, or (2) switch to the DDMS perspective in Eclipse and
manually attach to the correct service process.

On Jul 1, 4:46 am, "www.netthreads.co.uk"
<[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I have created a service based on AlarmService_Service.java from the
> SDK samples.
>
> In my service I want to do some work which will update a
> ContentProvider.
>
> The problem I am having is that I cannot seem to get a breakpoint
> inside the service to fire. I know it is executing the service as I
> can add log statements and see it pass the point where the breakpoint
> is set. Running in debug mode under Eclipse obviously.
>
> Is this possible? Can you step through the code for a background
> service?
>
> Al.
--~--~---------~--~----~------------~-------~--~----~
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]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to