Android 2.2 deprecates restartPackage but adds another headache...

Posted by mob1lejunkie on Stack Overflow See other posts from Stack Overflow or by mob1lejunkie
Published on 2010-05-20T19:31:40Z Indexed on 2010/05/20 20:00 UTC
Read the original article Hit count: 792

Filed under:
|

Android 2.2 release notes have just been released. ActivityManager.restartPackage method has been deprecated and the description is:

the previous behavior here is no longer available to applications because it allows them to break other applications by removing their alarms, stopping their services, etc.

Instead 2.2 has given another tool for pesky "task killer" apps by introducing new ActivityManager.killBackgroundProcesses method.

More Info

Can someone explain whether ActivityManager.killBackgroundProcesses will kill our scheduled alarms?

If so, deprecating ActivityManager.restartPackage was pointless as "task killer" will now abuse ActivityManager.killBackgroundProcesses.

© Stack Overflow or respective owner

Related posts about android

Related posts about android-sdk-2.2