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
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