我有这样的需求,需要在程序中调用谷歌地图软件,如果我用下面的方法调用 map :
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("geo:" + restaurant.getLatitude() + "," + restaurant.getLongitude() + "?q=" + s));
startActivity(intent);
这样我就可以成功调用谷歌地图软件了,但是如果系统软件有多个 map 时,使用上面的方法会弹出供用户选择显示的 map 软件,我现在要做的就是拥有更多比一个 map 就算是系统软件,但是每次调用谷歌地图软件都会显示。请问怎么办,谢谢!顺便问一下,谷歌地图软件是开源的吗?在android源码中没有找到相关源码图,请问哪里可以来?
我可以成功调用谷歌地图,但是如果android系统有多个 map 应用程序,系统会提示用户选择哪个 map 应用程序
最佳答案
But every time I call the Google Maps software to display. I ask how you can do
如果您确实需要 Google map ,请将 MapActivity
添加到您的应用程序。
bythe way, Google Maps software is open source?
没有。
I can successful invoke google map,but if android system have mutil map apps,system will propmt user to select which map app
如果用户安装了第二个 map 应用程序,他们可能想要使用它。请不要干涉。
关于android - 在名为 Google map 的程序中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3220259/