Scenario:
The user can select a time interval (such as 5h). Every 15 minutes of that interval, I’ll check the current location of user and take actions depending on the location.
Question:
So, which is best?
Will I need a LocationListener or getLastKnowLocation() based on some Criteria should resolve?
Implement
BroadcastReceiverwithAlarmManagerthatsetInexactRepeating.After it handle yourgetLastKnowLocation()with Criteria and send broadcast wherever you want