How to receive location updates every 5 minutes using the FusedLocation API
I am currently working on an app that has to check the user's location every five minutes and send the coordinates to a server. I decided to go with the FusedLocation API in Google Play Services instead of the plain old LocationManager API, mainly because I noticed the LocationRequest.PRIORITY_BALANCED_POWER_ACCURACY priority level, which claims to offer a 100-meter accuracy level with reasonable battery usage, which is EXACTLY what I need. In my case, I have an Activity whose inheritance structure is: public class MainActivity extends AppCompatActivity implements GoogleApiClient