Issue
I'm using this library https://github.com/jgilfelt/android-mapviewballoons in my android app and it is very useful. Now I'm trying to capture the event when you tap the balloon open. I'd want to launch a new activity after tapping on the text of the balloon open. How can I do it?
Thanks at all
Solution
Check out the demo application of the library. In the simple example, replace
@Override
protected boolean onBalloonTap(int index, OverlayItem item) {
Toast.makeText(c, "onBalloonTap for overlay index " + index,
Toast.LENGTH_LONG).show();
return true;
}
with
@Override
protected boolean onBalloonTap(int index, OverlayItem item) {
// start your Activity here
return true;
}
Answered By - Matthias Robbers
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.