Android 5.0 frequent reboot in late application
Many users report that the application in Android 5.0 appears to restart frequently in the background, and that if the device is not restarted for a long time, the performance of the system and the application will be significantly reduced and the response begins to slow.
Android's background management mechanism has been quite criticized, although the Android 5.0 does not explicitly mention this change, but the improvement is inevitable, only because the introduction of 64-bit architecture support, art runtime to default, inevitably brings some unexpected problems.
When you leave an Android application, if you do not opt out, it resides in the background, waits for you to go back, or shuts it down automatically when the system needs memory, but in Android 5.0, even if an application has a continuous notification (such as a music player), it is often closed.
This could be a glitch in the memory management mechanism of the Android 5.0, which shuts down applications too frequently when the memory margin is sufficient, or memory leaks.
PS: Because android5.0 uses new frameworks and technologies, and our app may not be compatible, that's why it's best not to upgrade until the system is immature.