San*_*ush 3 android dictionary direction driving-directions
我的客户要我展示两个地点之间的路线.因此他希望我们的应用程序应该启动android的地图应用程序并在两个位置之间显示方向.我找不到解决这个问题的方法.
因此,有人可以告诉我如何以编程方式从我们当前的应用程序启动地图应用程序,并在Android中的两个位置之间显示方向.
请发给我任何示例代码或教程以实现此目的.
Awa*_*riq 12
试试这个:
Intent intent = new Intent(android.content.Intent.ACTION_VIEW,
Uri.parse("http://maps.google.com/maps?saddr=20.344,34.34&daddr=20.5666,45.345"));
startActivity(intent);
Run Code Online (Sandbox Code Playgroud)