To detect a long map click by the user, so add a new Marker, we need to implement OnMapLongClickListener Interface.
Then we set our map to listen for any calls when its long pressed : mMap.setOnMapLongClickListener(this);
And now in our code we can add a new Marker every time the user long clicks the map :
Then we set our map to listen for any calls when its long pressed : mMap.setOnMapLongClickListener(this);
And now in our code we can add a new Marker every time the user long clicks the map :
mMap.addMarker(new MarkerOptions().position(point));