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

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

json - Gson().fromJson(jsonResult, Myobject.class) return values in 0's -