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