Created
November 21, 2015 05:09
-
-
Save shihabmi7/44906e0d9962e22b67f0 to your computer and use it in GitHub Desktop.
Google Map Location
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private GoogleApiClient mGoogleApiClient; | |
private LocationRequest mLocationRequest; | |
protected Location mLastLocation; | |
protected synchronized void buildGoogleApiClient() { | |
// set which Service API you used | |
mGoogleApiClient = new GoogleApiClient.Builder(this) | |
.addConnectionCallbacks(this) | |
.addOnConnectionFailedListener(this) | |
.addApi(LocationServices.API).build(); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment