1
我知道,我可以用这个做到这一点:可以在导航器上显示启动Google地图的两个坐标之间的路线吗? (编程)
Intent intent = new Intent(android.content.Intent.ACTION_VIEW,
Uri.parse("http://maps.google.com/maps?saddr=39.45798340851973,-0.3835865820296931&daddr=39.44353524837272,-0.3760334814437556"));
startActivity(intent);
但我需要删除的对话框,并forze它推出领航¿怎么办呢?
我知道我可以forze对话与intent.setClassName("com.google.android.apps.maps", "com.google.android.maps.MapsActivity");
打开GoogleMap的应用程序,但我需要的正好相反,启动导航。
ActivityNotFoundException:无法找到明确的活动类{com.google.android.browser/com.google.android.browser.BrowserActivity};你有没有在你的AndroidManifest.xml中声明这个活动? – NullPointerException
也ContentURI不存在 – NullPointerException
哎呀,试试我的更新版本 – Michele