In my service, I have return START_STICKYto restart mine Serviceafter I kill the application.
I have a test and it works in the unit Samsung, Sony, LGbut Xiaomiit does not work (service does not start again)
@Override
public int onStartCommand(Intent intent, int flags, int startId) {
return START_STICKY;
}
How can I handle this case. Any help or suggestion would be greatly appreciated?
In Android docs
public static final int START_STICKY = 1;
source
share