Android - Get user location with Google Api Client

1
2
/*Usage: LocatorGPS locatorGPS = LocatorGPS.getInstance(this);
Location location = locatorGPS.getLocation(); */
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Help: https://developer.android.com/training/location/retrieve-current.html

"To access the fused location provider, your app's development project must include Google Play services."
"Apps that use location services must request location permissions."

1 Response

thanks for shared.

Write a comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.