Christine wrote: >> What is "a task scheduled via a handler"? > > new Handler().postDelayed(someTask, someTime);
I have not used Handler inside a Service, and so I have no idea whether or not that's a good idea. Why aren't you scheduling this in the Activity, and just calling to the Service when the time has elapsed? If the answer is "I want it to fire even if the Activity is gone", AlarmManager may be a better choice. > Well, I suppose that if an activity gets destroyed by the os, you have > to unbind in onStop() or onDestroy(), don't you? Correct. I was referring to: "An activity binds to the service and makes it work, but after unbind it can't bind again." That implies the activity is not being destroyed, otherwise "it" no longer exists and can't do anything, let alone bind again. Perhaps I misunderstood, in which case I apologize. When "after unbind it can't bind again", what are you actually seeing? Exceptions? other log messages? false returned by bindService()? something else? -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Training: http://commonsware.com/training --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

