A
A
Afganec2015-08-18 12:57:34
Android
Afganec, 2015-08-18 12:57:34

How to configure GoogleApiClient?

Hello.
Colleagues, I was banned on Google - I can't find how to configure GoogleApiClient.
I want to check the geolocation every 500 meters or once an hour. Previously, this was configured all in the code when creating the listener.
Now there is a centralized solution from Google. You connect to the service, set the handlers and everything works by default. There is nothing in the docks either by timeout or by coordinates.
Has anyone come across similar desires?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Marat S, 2015-08-21
@Afganec

locationRequest = LocationRequest.create();
locationRequest.setInterval(1000);
locationRequest.setFastestInterval(1000);
locationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);
locationRequest.setSmallestDisplacement(0);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question