Code example for UiSettings

Methods: setAllGesturesEnabled, setMyLocationButtonEnabled

0
    private void initMap() { 
        UiSettings settings = mMap.getUiSettings();
        settings.setAllGesturesEnabled(true);
        settings.setMyLocationButtonEnabled(false);
    } 
 
    public void setPosition(LatLng latLng) {
        mMap.moveCamera(CameraUpdateFactory.newLatLng(latLng));
        mMap.moveCamera(CameraUpdateFactory.zoomTo(16));
    } 
 
    private void getAllMarkers() { 
        new GetJsonASync(this, getString(R.string.server) + "messages/getall", null).execute();
    } 
 
    /* 
     * Show markers on map. 
     * Its called from GetAllMarkersASync() as a callback. 
     */ 
    private void showMarkers(String json) {
        Log.i(TAG, json);