Interrogate user location every day between specific watches using AlarmManager

I use AlarmManagerto periodically poll the location of a user who is working fine. Now I would like to give my app users the opportunity so that they can limit the location survey by indicating that the clock says “Between 8PM to 10PM”.

Now I use the method AlarmManager.setRepeatingfor planning, but I can’t configure the alarm service so that it works every day, but at certain hours. I already know how to plan a recurring task with help AlarmManagerat a specific time of the day, but how to set the end time is what I'm looking for.

+3
source share
1 answer

AlarmManager , , , , . , , , , .

0

All Articles