I have another proposition.
First i make the marker draggable:
mapa.addMarker(new MarkerOptions() ...
.setDraggable(true);
After you can make a listener setOnMarkerDragListener like this:
mapa.setOnMarkerDragListener(new OnMarkerDragListener() {
@Override
public void onMarkerDragStart(Marker marker) {
// TODO Auto-generated method stub
//Here your code
}
@Override
public void onMarkerDragEnd(Marker marker) {
// TODO Auto-generated method stub
}
@Override
public void onMarkerDrag(Marker marker) {
// TODO Auto-generated method stub
}
});
And then you can override that you want (normally onMarkerDragStart to simulate a long click)
Hope it helps
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…