Prevent App/Process Termination by Android OS

Is there a way to prevent an app or process from being terminated by the Android OS due to the OS's attempt to free up resources?



The app needs to put itself in the Notifications bar in order to keep from getting killed when it's in the background. This is what apps like Music or Pandora do in order to keep playing music and not get killed when they are backgrounded. See below.


References:
[1]
Creating Status Bar Notifications | Android Developers(Web)
developer.android.com
Query used:  android background notification
[2]
Android Developers Blog: Multitasking the Android Way(Web)
android-developers.blogspot.com
Query used:  android background notification

你可能感兴趣的:(android,Web,Blog,OS,UP,notifications)