I have a directory website when I use the mobile web browser the address links opens in the google app map nicely, then when try the same with my webview app it returns to the google map website so it cannot resolve my location....I want to open the links with the google map app...
I tried this code on the Urlhander.java:(doesn't work)
public static boolean map(Activity mActivity, String url) {
// When user clicks a hyperlink, load in the existing WebView
if(url.contains("http://maps.google.com/"))
{
Uri IntentUri = Uri.parse(url);
Intent mapIntent = new Intent(Intent.ACTION_VIEW, IntentUri);
mapIntent.setPackage("com.google.android.apps.maps");
if (mapIntent.resolveActivity(mActivity.getPackageManager()) != null) {
mActivity.startActivity(mapIntent);
}
return true;
}
return false;
}