Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/223.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
从Android应用程序启动浏览器时禁用位置共享_Android_Google Maps_Browser_Location_Android Intent - Fatal编程技术网

从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,谢谢