Is is possible to run Android Service after app deinstallation? -


i want run script if task destroyed. works fine possible keep service running, after user destroyes app? read binding service not working me.

no. if user uninstalls app, components destroyed , removed operating system.

however, can make service automatically restart after app killed (but not uninstalled) starting through context.startservice(intent), , returning service.start_sticky in onstartcommand()

@override public int onstartcommand(intent intent, int flags, int startid) {     return start_sticky; } 

Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -