Google Play API for Android GPS only?

it may seem very silly to you, but I have not yet found the answer.

In Android, there are two ways to make application location information. a) using the Android Location API; or b) using the Google Play Services API . It is recommended that you use the Google Play Services API , as it drains the battery less and provides greater accuracy.

But what if I just wanted to use GPS? No extra accuracy, combining some mobile data, etc. Just plain GPS without an internet connection. Is it preferable to use the Google Play Services API ? Also, do you need an internet connection at some point? The onConnect() method is onConnect() called when a connection is made to GoogleApiClient . Does this mean that a connection to the Google Server is necessary or only to the fact that locally stored Google Play services (on the device) are connected to it?

+6
source share

Source: https://habr.com/ru/post/985566/


All Articles