【发布时间】:2014-06-30 10:19:27
【问题描述】:
我需要在 webview 中加载以下代码。
final Intent intent = new Intent(Intent.ACTION_VIEW,
Uri.parse(
"http://maps.google.com/maps?" +
"saddr=43.0054446,-87.9678884" +
"&daddr=42.9257104,-88.0508355"));
intent.setClassName(
"com.google.android.apps.maps",
"com.google.android.maps.MapsActivity");
startActivity(intent);
我该怎么做?
【问题讨论】:
-
这不会在 WebView 中打开 url。如果它可以工作,那么用户可以选择已安装的应用程序/浏览器之一。
标签: android google-maps