如何在android中指定谷歌地图启动模式
您好,我有一个任务是启动地图应用程序以获取从 A 点到 B 点的路线。
要求是让地图打开分步(文本列表)视图而不是地图 - 就像从
- 开始
- 左转
- 这里 正确的 ... ………… 很快。
请参阅此屏幕截图链接 http://i562.photobucket.com/albums /ss65/nar_karapetyan/device-2011-10-24-113823.png
是有一个参数可以用来指定我希望地图启动的模式吗?
(基本上,地图左下角有一个按钮,一旦有方向可用,即可显示该视图,但我希望地图在启动时自动显示该视图。)
谢谢。
Hi I have a task to launch the maps app to get directions from point A to point B.
The requirement is to have the maps open the step-by-step (textual list) view rather than the maps - like
- Start here
- turn left
- turn right ...
.......
so on.
See this link to the screenshot
http://i562.photobucket.com/albums/ss65/nar_karapetyan/device-2011-10-24-113823.png
Is there a parameter that I can use to specify which mode I'd like the maps to launch in?
(Basically there's a button at the bottom-left corner on the maps to bring up that view once directions are available, but I'd like the maps to show that view automatically when launched.)
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不幸的是,目前没有官方 API 来启动谷歌导航(从 Intent 中)。如果您想了解一些潜在的解决方法,请查看此 stackoverflow 帖子(意图启动导航活动),这与您的问题高度相关。
Unfortunately there is no official API to launch the google navigation (from an Intent that is) at the moment. If you'd like to see some potential work-arounds, checkout this stackoverflow post (Intent to start a navigation activity) which is highly related to your question.