Code example for LocationClient

Methods: getLastLocation

    public void onConnected(Bundle bundle) {
        //move to the users position 
        Location mCurrentLocation = mLocationClient.getLastLocation();
        CameraPosition cameraPosition = new CameraPosition.Builder()
                .target(new LatLng(mCurrentLocation.getLatitude(), mCurrentLocation.getLongitude()))     // Sets the center of the map to Mountain View
                .zoom(15)                   // Sets the zoom
                .tilt(20)                   // Sets the tilt of the camera to 30 degrees
                .build();                   // Creates a CameraPosition from the builder
    public void onDisconnected() {