You can use this http://stackoverflow.com/questions/20636330/start-sticky-does-not-work-on-android-kitkat or have a look at this https://code.google.com/p/android/issues/detail?id=63793
On Tue, Oct 4, 2016 at 3:44 PM, Sumit Sharma <[email protected]> wrote: > Foreground service with START_STICKY works perfectly on all the android > versions except android OS 4.4.4. > Its getting killed by the OS when its in background. > I am ok if its killed but it has to restart again on its own like a normal > START_STICKY service. > Need a solution ASAP as our app is already live. > > -- > You received this message because you are subscribed to the Google Groups > "Android Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/android-developers. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/android-developers/04ed2ad7-7aef-478f-9e7b- > d409f7cee736%40googlegroups.com > <https://groups.google.com/d/msgid/android-developers/04ed2ad7-7aef-478f-9e7b-d409f7cee736%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/CABHzXARxTd1L9PAi967%2BL%3DKG9UsHdALN9y%3D1WV%3DCdJwSJ_E5ng%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

