
package com.uwetrottmann.shopr.ui;

import android.os.Bundle;
import android.widget.Toast;

import com.google.android.gms.maps.GoogleMap.OnMapLongClickListener;
import com.google.android.gms.maps.GoogleMap.OnMarkerClickListener;
import com.google.android.gms.maps.SupportMapFragment;
import com.google.android.gms.maps.model.LatLng;
import com.google.android.gms.maps.model.Marker;
import com.google.android.gms.maps.model.MarkerOptions;

public class ShopMapFragment extends SupportMapFragment {

    public static ShopMapFragment newInstance() {
        return new ShopMapFragment();
    }

    @Override
    public void onActivityCreated(Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);

        // enable my location feature
        getMap().setMyLocationEnabled(true);
        getMap().setOnMapLongClickListener(new OnMapLongClickListener() {

            @Override
            public void onMapLongClick(LatLng latLng) {
                // Add marker at tap position
                getMap().addMarker(new MarkerOptions().position(latLng).title(latLng.toString()));
            }
        });

    }
}


package com.uwetrottmann.shopr.ui;

import android.os.Bundle;

import com.google.android.gms.maps.SupportMapFragment;

public class ShopMapFragment extends SupportMapFragment {

    public static ShopMapFragment newInstance() {
        return new ShopMapFragment();
    }

    @Override
    public void onActivityCreated(Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);

        // enable my location feature
        getMap().setMyLocationEnabled(true);
    }
}

--- 
+++ 
@@ -2,8 +2,14 @@
 package com.uwetrottmann.shopr.ui;
 
 import android.os.Bundle;
+import android.widget.Toast;
 
+import com.google.android.gms.maps.GoogleMap.OnMapLongClickListener;
+import com.google.android.gms.maps.GoogleMap.OnMarkerClickListener;
 import com.google.android.gms.maps.SupportMapFragment;
+import com.google.android.gms.maps.model.LatLng;
+import com.google.android.gms.maps.model.Marker;
+import com.google.android.gms.maps.model.MarkerOptions;
 
 public class ShopMapFragment extends SupportMapFragment {
 
@@ -17,5 +23,14 @@
 
         // enable my location feature
         getMap().setMyLocationEnabled(true);
+        getMap().setOnMapLongClickListener(new OnMapLongClickListener() {
+
+            @Override
+            public void onMapLongClick(LatLng latLng) {
+                // Add marker at tap position
+                getMap().addMarker(new MarkerOptions().position(latLng).title(latLng.toString()));
+            }
+        });
+
     }
 }
Add markers on long-pressing the map.
