android - Restart app on force kill -
android - Restart app on force kill -
i got geolocation service. when forcefulness killed using task killing apps, in 'manage application' -> running tab app showing 0 process , 1 service, , status restarting, not getting restarted.
public int onstartcommand(intent intent, int flags, int startid) { homecoming start_redeliver_intent; }
i started service using
startservice(new intent(this, myservice.class));
is there way restart process?
use
return start_sticky
instead.
android background-service
Comments
Post a Comment