Is it possible to open a context menu from a map overlay item in android?
Posted
by
John Nicholson
on Stack Overflow
See other posts from Stack Overflow
or by John Nicholson
Published on 2011-03-15T16:02:13Z
Indexed on
2011/03/15
16:10 UTC
Read the original article
Hit count: 196
This below code works fine opening an alert dialog. I was wondering if it's possible to open a context menu from within a map overlay class?
@Override
protected boolean onTap(int index) {
OverlayItem item = mOverlays.get(index);
AlertDialog.Builder dialog = new AlertDialog.Builder(mContext);
dialog.setTitle(item.getTitle());
dialog.setMessage(item.getSnippet());
dialog.show();
return true;
}
© Stack Overflow or respective owner