Your saying "the parent activity is killed and the service stops running"
sounds like you are trying to keep the service running by binding to it from
an activity.  If so, that defeats the purpose of the service.  If you want a
service to remain running on its own, you need to use startService().

Otherwise, you can try using "adb shell dumpsys activity.services" to see
the state of your service.  As long as you have called startService() and
not stopService(), it should be listed there with information about its
current condition.

On Sun, Dec 28, 2008 at 10:55 AM, bparker <[email protected]> wrote:

>
> I have a service which is dynamically registered from within an
> activity. The service listens for incoming and outgoing phone calls,
> so it needs to stay running all the time. But after about 1 day,
> without even launching any other applications, the parent activity is
> killed and the service stops running. How can I prevent this?
>
> Thanks
> >
>


-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

--~--~---------~--~----~------------~-------~--~----~
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