At this moment, I have an Image View that loads a URL obtained from static google maps. What I'm trying and don't find how to do, is when user clicks on image, launch google maps with the direction. Tried it to open in a web-view, but what opens is the image and not the "map"
MessagingFragment.setMapOnImageClickListener(new UserClicksMapOpenURL() {
@Override
public void onUserClicksImageOpenMap(String url) {
Logger.d("url");
Intent intent=new Intent(ChatActivity.this,WebViewActivity.class);
intent.setData(Uri.parse(url));
startActivity(intent);
}
});
The link looks like:
Is there any type of intent that launch the google maps?