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

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -