Android Services: START_STICKY does not work on Kitkat

前端 未结 5 1080
执笔经年
执笔经年 2021-01-31 20:02

I am using services in an application to listen for how many times the user presses his/her power button. The implementation was working fine on all devices. But when I tested t

5条回答
  •  感情败类
    2021-01-31 20:38

    try my solution: this

    this trick will restart your service everytime user close service from both task manager and force close from settings, i hope this will help you too

提交回复
热议问题