【发布时间】:2012-06-20 19:33:52
【问题描述】:
我想打开一个inbuilt google map intent 来显示两个地方之间的路线而不打开一个complete action dialog, which asked for Browser and Map。
我试过了。
Intent intent = new Intent(android.content.Intent.ACTION_VIEW,
Uri.parse("http://maps.google.com/maps?saddr="+PreferenceData.getLatitude(HotelInfomation.this)+","+PreferenceData.getLongitude(HotelInfomation.this)+"&daddr="+latitude+","+longitude));
startActivity(intent);
但它会打开一个对话框,询问使用浏览器或地图完成操作。我不想要那个 Dialog 。
【问题讨论】:
-
你可能不想要那个对话框。您的一些用户会 - 毕竟,他们可能更喜欢使用不同的地图应用程序。如果他们厌倦了对话框,您的用户完全有能力在选择器中选中“立即将此操作设为默认值”。
-
@CommonsWare,感谢您的宝贵建议。我会按照你的建议去做。
标签: android google-maps