Code example for ActionBarActivity

Methods: onPause

0
		mLocationClient.connect();
	} 
 
	@Override 
	public void onPause() { 
		super.onPause(); 
		if (mLocationClient != null) {
			mLocationClient.disconnect();
		} 
	} 
 
	private void setUpMap() { 
		if (mMap == null) {
			mMap = ((SupportMapFragment) getSupportFragmentManager()
					.findFragmentById(R.id.map)).getMap();
			if (mMap != null) {
				mMap.setMyLocationEnabled(true);
			} 
		} 
	}