I have a MapView in my application. I’ve gotten it to work as I want it to but I’d like to handle all the onClick or an equivalent event of the MapView and open the Google Maps application.
I’ve read that I can open the Google Maps application but raising an Intent like this:
String uri = "geo:"+ latitude + "," + longitude;
startActivity(new Intent(android.content.Intent.ACTION_VIEW, Uri.parse(uri)));
How can I trap the aforementioned event of my MapView? I haven’t been able to figure this out. Thanks.
I used the
onTapevent like this: