There is an application that in the life cycle on the phases ceases to send data. I think this is related to the life cycle. It interests me when the application is minimized and when the screen is locked, which method is called. Thank.
@Override protected void onPause() { super.onPause(); LocationServices.FusedLocationApi.removeLocationUpdates(googleApiClient, this); } @Override protected void onStop() { super.onStop(); googleApiClient.disconnect(); } 