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] |
developer.android.com
Query used:
android background notification
|
| [2] |
android-developers.blogspot.com
Query used:
android background notification
|
本文深入探讨了Android系统中应用如何通过在通知栏显示通知来避免在后台运行时被系统杀死的问题,重点介绍了音乐播放器等应用采用的策略。

244

被折叠的 条评论
为什么被折叠?



