Code example for GoogleMap

Methods: getUiSettingssetMyLocationEnabledsetOnMyLocationChangeListener

0
	 * 1. Set map track user's current location 
	 * 2. Set map get location change listener. 
	 * 3. Disable all operation on map (The map is the background) 
	 */ 
	private void setUpMap(){ 
		map.setMyLocationEnabled(true);
		map.setOnMyLocationChangeListener(this);
		UiSettings uiSettings = map.getUiSettings();
		uiSettings.setAllGesturesEnabled(false);
		uiSettings.setMyLocationButtonEnabled(false);
		uiSettings.setZoomControlsEnabled(false);
	} 
	/** 
	 * onClick method triggered by "Equipment" 
	 * Direct user to Equipment page 
	 * @param v 
	 */ 
	public void goEquipment(View v){
		Intent intent = new Intent(this, EquipmentActivity.class);
		startActivity(intent);
Stop searching for code, let great code find you!  Add Codota to your java IDE