Some task killer app can kill my process like 360 safer. How do I protect my process from being killed? Or how do I detect if my app’s process has been killed? I found tencent app can restart their app’s process after being killed, but I don’t know how they implement?
Share
You can’t protect from being killed nor can you be notified. The only way is to have a sticky Service running (which is NOT recommended, unless absolutely necessary). This service will be restarted automatically sometime later.