G wrote: > 1) When my main activity is destroyed, my service is getting destroyed > along with it. The service's onDestroy get's called, playback stops, > the notification gets cleared. How can I avoid this?
Have you tried making your service a remote service, one that runs in its own process? http://code.google.com/android/samples/ApiDemos/src/com/example/android/apis/app/RemoteService.html I haven't tried a remote service yet myself, so I'm not 100% certain it will resolve this problem. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule.shtml --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---