Android 谷歌地图v2-折叠逐轮列表
我正在打开内置的android地图应用程序,如下所示Android 谷歌地图v2-折叠逐轮列表,android,google-maps,android-intent,google-maps-api-2,Android,Google Maps,Android Intent,Google Maps Api 2,我正在打开内置的android地图应用程序,如下所示 string url = "http://maps.google.com/maps?f=a@saddr=LatLng&daddr=" + query; Intent intent = new Intent(Android.Content.Intent.ActionView, Uri.Parse(url)); intent.SetClassName("com.google.android.apps.maps", "com.google
string url = "http://maps.google.com/maps?f=a@saddr=LatLng&daddr=" + query;
Intent intent = new Intent(Android.Content.Intent.ActionView, Uri.Parse(url));
intent.SetClassName("com.google.android.apps.maps", "com.google.android.maps.MapsActivity");
StartActivityForResult(intent, 0);
我在想,当地图打开时,是否有办法使“逐转弯方向”列表保持折叠状态
到目前为止我已经试过了
"&iwd=0"
"&om=0"
没有运气。这可能吗
谢谢。即使可能,也要记住,“地图”应用程序不必接受任何特定的查询参数,因此今天起作用的可能明天就不起作用了。Commonware指出:“依赖这些未记录的效果会带来长期的麻烦。”。我最终将在我的应用程序中包含一个MapActivity或MapFragment(技术细节目前正在阻止)。你的论点正是我想使用API方法的原因,而不是这些查询字符串,但我现在不能。(我使用的是setClassName b/c,无法使用geo:scheme创建方向查询)。谢谢