从Android应用程序启动浏览器时禁用位置共享
目前,我正在使用此代码使用外部浏览器打开谷歌地图从Android应用程序启动浏览器时禁用位置共享,android,google-maps,browser,location,android-intent,Android,Google Maps,Browser,Location,Android Intent,目前,我正在使用此代码使用外部浏览器打开谷歌地图 Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse("http://maps.google.com/maps/ms?&msid=206845902682852763883.0004ac1801af46d8f13f6&msa=0&hl=en&b=no&f=d&t=m&layer=c&t=m&ll=" + strLat + ",
Intent i = new Intent(Intent.ACTION_VIEW,
Uri.parse("http://maps.google.com/maps/ms?&msid=206845902682852763883.0004ac1801af46d8f13f6&msa=0&hl=en&b=no&f=d&t=m&layer=c&t=m&ll="
+ strLat
+ ","
+ strLong
+ "&z="
+ strMapZoom + "&output=mobile"));
ComponentName compName = new ComponentName("com.android.browser","com.android.browser.BrowserActivity");
i.setComponent(compName);
startActivity(i);
但当浏览器打开时。。。
有人问我是否想把我的位置分享给谷歌地图,
有没有一种方法可以让我从代码中取消选中浏览器选项上的位置共享复选框,这样谷歌地图就不会问我位置共享的问题
谢谢如果将其作为地图视图加载,您可能会有更多的控制权,是否需要在浏览器中加载。然后你可以调用disableMyLocation我想在浏览器上是没有办法的。。所以我改用webView,谢谢