Hello! Faced the next task - I have a service that calls every 5 minutes. If the user "lulls" the phone, the service stops working and continues to work after "waking up". It is necessary that the service worked and gave signals even in the sleep mode of the phone. Stumbled upon the class WakefulIntentService. Are there any other options, how else can this be done?

    1 answer 1

    Need to make a lock . True, users will not care for it on the head, but rather kick kicks - the battery sits very quickly.

    • This is already in my program - the service still begins to dry down along with the system. As for the users, he is alone, this is my customer, the main thing for him is that everything works as it should. About the battery - in the know. - svyat_kimata
    • one
      Maybe all the same let go of Lok? see there is such a string wakeLock.acquire(1000); - it will release lok in one second. - KoVadim
    • Yes, I already noticed, I will try, I will unsubscribe about the results. - svyat_kimata