[android-developers] Re: Why does Android 2.1 kill my service?

2010-05-18 Thread mort
> Strange... Maybe the "exported" attribute makes the difference? Update: Seems like it does. At least in the emulator and on my device. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developer

[android-developers] Re: Why does Android 2.1 kill my service?

2010-05-18 Thread mort
> > Music players were the most common example for remote services even on > > Google's SDK site. > Got a link for that handy? Sorry, can't find it right now... Maybe I just misunderstood something? > > How is it possible to enable playing while the > > app's in background without a remote servic

Re: [android-developers] Re: Why does Android 2.1 kill my service?

2010-05-17 Thread Mark Murphy
mort wrote: > Music players were the most common example for remote services even on > Google's SDK site. Got a link for that handy? > How is it possible to enable playing while the > app's in background without a remote service? Simple: don't use a remote service. For example, the Music app tha

[android-developers] Re: Why does Android 2.1 kill my service?

2010-05-16 Thread mort
> > So I did: > > - add android:process=":remote" in the manifest > > You should not need that, and it may well be the source of your difficulty. Sorry for the late reply, didn't notice it at first... If I remove android:process=":remote" and leave the app, music will stop eiter immediately or af

[android-developers] Re: Why does Android 2.1 kill my service?

2010-05-14 Thread mort
Sorry, I've got the reason... I had a timing problem with the HEADSET_PLUG Intent, which is sent when registered, and in my case caused a stopSelf() because the service "thought" it wasn't required (bad value in internal status flag). The strange behaviour then happened, because the service right a