title: How to handle long press on a map, using OSMDroid / OSMBonusPack in Android?
body: <p>I am trying to create a simple application with maps, on Android. I am using OSMDroid's <code>MapView</code> to render the basic OpenStreet Map mapview.</p>
  
  <p>I have a custom <code>MapActivity</code> that implements the <code>MapEventsReceiver</code> interface (from OSMBonusPack). In my activity's <code>onCreate()</code>, I create a <code>MapEventsOverlay</code>, I add it to the <code>mapView</code>.</p>
  
  <p>The problem is, <code>longPressHelper()</code> and <code>singleTapUpHelper()</code> are never called. See my code below.</p>
  
  <pre><code>public abstract class CustomMap extends BaseActivity implements MapEventsReceiver{
  //variable declarations follow
  private MapView mMapView;
  
  @Override
  protected void onCreate(Bundle icicle) {
  super.onCreate(load);
  setContentView(R.layout.activity_map_main_screen);
  
  mMapView = (MapView) findViewById(R.id.mapmainscreen);
  mMapView.setBuiltInZoomControls(true);
  mMapView.setClickable(true);
  
  MapEventsOverlay evOverlay = new MapEventsOverlay(this, this);
  mMapView.getOverlays.add(evOverlay);
  mMapView.invalidate();
  
  //tile source / tile provider are set by another method elsewhere
  
  //somewhere in my code (same class file) I also have this:
  
  @Override
  public boolean longPressHelper(IGeoPoint arg0) {
  Log.d(TAG, "longPressHelper was called");//this is never called
  return true;
  }
  
  @Override
  public boolean singleTapUpHelper(IGeoPoint arg0) {
  Log.d(TAG, "singleTapUpHelper was called");//this is never called
  return true;
  }
  }      
  }
  </code></pre>
  
  <p>Please note that I have tried the suggested solution here <a href="https://stackoverflow.com/questions/20946715/osmdroid-adding-a-marker-when-user-taps-on-map">OSMDroid: Adding a marker when user taps on map</a> </p>
  
  <p>Any help is much appreciated.</p>