Saturday, June 12, 2010

[android-developers] Kill/Stop other Services in API 8 (Froyo 2.2)

I know of the wonderful change from 2.1 to 2.2 that
ActivityManager.restartPackage now doesn't do the dirty stuff anymore
since it now calls killBackgroundProcesses. Nice on one side, but bad
on the other side. Because of that Services are not killed anymore.
See as well:
http://groups.google.com/group/android-developers/browse_thread/thread/6a544bfd05bf10cf/dc495cdeaa92c98d?lnk=gst&q=killbackgroundprocesses#dc495cdeaa92c98d
I am the developer of SleepTimer in the Android market and used
restartPackage to stop Music Players to play music. I therefore killed
the services. That worked well. But now with killBackgroundProcesses
it doesn't work anymore. I added the new Permission to my manifest,
but still the music remains running. Yes i know that google kind of
wants that. But it breaks the possibility to stop the different music
players from my app.
Now my question:
Is there another way to kill/stop other services (music player
services) in API 8?

Thank you for your help.

Sincerely,
Patrick boos

--
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
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate