Tuesday, April 8, 2014

About android service is kill


Wrote android service applications
The application is removed from the home where millet and Meizu phone with this service also followed the process of the destruction of the
When I look at the service qq applications such as micro-channel will not be removed automatically restart does not know how to do

I used a variety of ways:
1 In onStartCommand in return START_STICKY
2.android: process = ": remote"
3.onDestroy () in the restart service
4 with AlarmManager every 10 seconds to check whether there is non-existent service started

Will not work!
Who knows there are other approaches?
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
For Meizu, there is such a way, Meizu kill process, kill the process running recently, you can give your manifest configuration excludeFromRecents = "true", so that the process does not remove Meizu kill your app, but this set Long press home, not your app, they kill the process, are forced to stop your app, the whole process will be to kill off, it can not receive broadcast without root privileges, I feel powerless
Reply:
Generally these mobile butler, or the domestic mobile phone manufacturers, such as micro-channel will be put into such a popular app whitelist
Reply:
The landlord, did you solve this problem? Said that under the approach ah.

No comments:

Post a Comment