Skip to main content


Showing posts from January, 2017

Featured post

Tennis-Paddle game

LocationManager vs GoogleApiClient

User Location on Android
Getting the user’s location on Android is a little less straightforward than on iOS. To start the confusion, there are two totally different ways you can do it. The first is using Android APIs from android.location.LocationListener, and the second is using Google Play Services APIs Let’s go through both of them.
1.Android’s Location API
The Android’s location APIs use three different providers to get location - ·LocationManager.GPS_PROVIDER — This provider determines location using satellites. Depending on conditions, this provider may take a while to return a location fix. ·LocationManager.NETWORK_PROVIDER — This provider determines location based on availability of cell tower and WiFi access points. Results are retrieved by means of a network lookup. ·LocationManager.PASSIVE_PROVIDER — This provider will return locations generated by other providers. You passively receive location updates …