Skip to content

Instantly share code, notes, and snippets.

@shihabmi7
Created November 21, 2015 05:09
Show Gist options
  • Save shihabmi7/44906e0d9962e22b67f0 to your computer and use it in GitHub Desktop.
Save shihabmi7/44906e0d9962e22b67f0 to your computer and use it in GitHub Desktop.
Google Map Location
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