android - Swipe left/right to kill apps does stop service -


i have tried start_sticky, broadcastreceiver these things not working restart service. there other way restart service in android version 5.0 , above

start_sticky restart service take time 10 sec 10 min .. never. depends on android system memory usage.

u can implement foreground service create dialog in swipe down.this keep activity running.

apps whatsapp,facebook uses push notifications along intent service restart service when message arrives.


Comments

Popular posts from this blog

php - trouble displaying mysqli database results in correct order -

depending on nth recurrence of job in control M -

sql server - Cannot query correctly (MSSQL - PHP - JSON) -