FORUMS

Floating Apps with Rovers – XDA App Review

There are a lot of great launchers to help customize your phone. Some Launchers allow … more

What Features Do You Look for in a Gallery App?

With so many different options to choose from, finding the right Gallery app may be a … more

Google Photos ‘Unlimited’ Storage Reportedly Being Capped

When Google Photos was announced, many of us thought very highly … more

Sprint Moves to Lift Video Streaming Limit for All-In

Yesterday, Sprint announced a new unlimited scheme that offered customers an … more

[Q] Restart service after kill

485 posts
Thanks Meter: 390
 
By Rick Clephas, Senior Member on 15th August 2014, 05:43 PM
Post Reply Subscribe to Thread Email Thread
18th August 2014, 09:01 PM |#11  
SimplicityApks's Avatar
Senior Member
Flag Aachen
Thanks Meter: 341
 
More
Quote:
Originally Posted by Rick Clephas

Look this app says it can't be killed by task managers https://play.google.com/store/apps/d...mobile.applock

Just an idea, it might be possible when your app is a Device Admin with the APIs that you get with that. Though you have to read it yourself, I have no clue about how it works.
The Following User Says Thank You to SimplicityApks For This Useful Post: [ View ]
 
 
18th August 2014, 09:03 PM |#12  
OP Senior Member
Thanks Meter: 390
 
Donate to Me
More
Quote:
Originally Posted by SimplicityApks

Just an idea, it might be possible when your app is a Device Admin with the APIs that you get with that. Though you have to read it yourself, I have no clue about how it works.

Thanks I will look at that. Most people have my app as Device Admin because that way it can't be uninstalled

Sent from my SM-N9005 using XDA Premium 4 mobile app
18th August 2014, 10:07 PM |#13  
OP Senior Member
Thanks Meter: 390
 
Donate to Me
More
Well I found the solution.
When device admin is enabled the app can't be force-stopped or uninstalled. Then the user can only stop the service and then the onDestroy methode is called so then I can restart the service again. Tanks guys :thumbup:

Sent from my SM-N9005 using XDA Premium 4 mobile app
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes