Hey I ran into this problem a while back and was pulling my hair out. The fix is easy (and you're on the right track)
You can still call bindService, you just have to call startService first. If the service is started via bindService, then it will live and die with the activity that called it, but if you start it with startService and THEN bind it with bindService, it should stay alive indefinitely. On Dec 17, 9:15 am, qlimax <[email protected]> wrote: > sorry... maybe solved without binding > but using startService/stopService > > ----maybe... requires tests :::)))---- > bye > > On 17 Dic, 14:03, qlimax <[email protected]> wrote: > > > > > Hi guys. > > > I'm writing an application that use a service to play an audio file > > > I'm watching the LocalService.java and LocalServiceBinding.java > > from the API DEMO > > > In the api demo, the LocalService.java make a notification in the > > status bar, in my case it plays mp3 and make a notification. But that > > doesn't matter. > > > My problem is that when the user press the "Back Button" the service > > must stay active. > > I want have the same behaviour as when i press the "Home Button"... > > > Any help is welcome :D > > > ps:sorry for my eng -- 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

