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
Post a Comment