The documentation states that a Service started with startService()
will continue running until stopService() or stopSelf() is called,
however, I'm having trouble with this.

I've got a Timer and a TimerTask running in my background Service.
It's running repeatedly.  After closing my main Activity, the Timer
keeps running for a few minutes, but then it seems to "pause" until I
reopen the main activity and it rebinds to the service.

The documentation also mentions returning the START_STICKY flag from
the onStartCommand method, and though this seems like what I want,
it's not available in Android 1.6.

What do I need to do to keep the background task running
indefinitely?

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en

Reply via email to