How to set the priority of android service? -


is there way set priority of android service? want run service in background after destroying app's main actvity. returning "start_redelivery_intent" service. restarting of service taking time (around 1-3 minutes). want restart service instantly. there way set priority of android service.

fyi, creating service using startservice , passing object through intent.putextra().

below snapshot taken setting/apps/running apps android device, shows app restarting... app real time specific, want restart instantly...

enter image description here

you cannot control behavior of service depends on os , available resources. however, continuously running background service, suggest return start_sticky - tries best re-run service once destroyed due reasons.


Comments

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -