从Android应用启动浏览器时禁用位置共享

时间:2011-09-07 12:27:06

标签: 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
+ ","
+ strLong
+ "&z="
+ strMapZoom + "&output=mobile"));
ComponentName compName = new ComponentName("com.android.browser","com.android.browser.BrowserActivity"); 
i.setComponent(compName);
startActivity(i);

但打开浏览器后...... 我被问到是否要将我的位置分享到谷歌地图, 有没有办法可以从代码中取消选中浏览器选项上的位置共享复选框,以便谷歌地图不会询问我有关位置共享的信息?

感谢

0 个答案:

没有答案
相关问题