开发者

Disable Location sharing when launching browser from Android app

currently I'm using this code to open up google maps using an external browser

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);

but upon opening of the browser... I'm being asked if I want to share my location to google maps, is there a way that I can uncheck the location sharing checkbox on the browser option f开发者_高级运维rom code so that google maps won't ask me about location sharing?

thanks

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜