简体   繁体   English

Android模拟手机在使用地图时如何“开车”?

[英]How can I "drive" in Android simulated phones when using Maps?

I am working on a React Native app where I am trying to make some changes in my app depending on WHERE the current position is.我正在开发一个 React Native 应用程序,我试图根据当前 position 所在的位置对我的应用程序进行一些更改。 I am using Android Studio's simulated phone in a Windows 10 machine.我在一台Windows 10的机器上使用Android Studio的模拟手机。 I know in IOS you have this feature called "Freeway drive" where it runs a simulation of me "driving" to my destination.我知道在 IOS 中你有这个叫做“高速公路驾驶”的功能,它运行模拟我“驾驶”到我的目的地。 And as the blue dot moves, my app modifies accordingly.随着蓝点的移动,我的应用程序也会相应地进行修改。 I need this functionality in my app.我的应用程序中需要此功能。

Could not find this answer anywhere so I spent hours researching and decided to write what I got here.在任何地方都找不到这个答案,所以我花了几个小时研究并决定写下我在这里得到的东西。 Hopefully this post will save valuable time for any developer who faces the same issue as I did.希望这篇文章能为遇到与我相同问题的任何开发人员节省宝贵的时间。

you can "drive" in Android Studio simulated phones.您可以在 Android Studio 模拟手机中“驾驶”。

Open Android simulated phone > click the 3 dots > Click Location > click "Routes" tab > then just like Google maps, put the address or click on any part of the map as the destination > click "Play Route".打开Android模拟手机>点击3个点>点击位置>点击“路线”选项卡>然后就像谷歌地图一样,输入地址或点击map的任何部分作为目的地>点击“播放路线”。 it will be VERY slow so make sure you select "Speed X5" as well.它会非常慢,所以请确保您也使用 select“Speed X5”。

Here are some visual aids:以下是一些视觉辅助工具:

click the 3 dots on the right点击右侧的3个点

点击右侧的3个点

Then: Location > Routes > choose destination > Play Route > Speed X5然后:位置 > 路线 > 选择目的地 > 播放路线 > Speed X5 位置设置

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何连接两部Android手机? - How can I connect two android phones? Skobler Android:如何获得模拟路线的所有点? - Skobler Android: How can I get all points to simulated route? 如何使用用户代理标头以不同方式检测Android手机和Android平板电脑? - How can I detect Android phones and Android tablets differently using the user agent header? 我可以使用相同的插件为Android手机和平板电脑开发吗? - Can I develop for Android Phones and Tablets using the same plugin? 电晕; 如何创建数据库,以便用户可以使用其Android手机在线访问它? - Corona; How do I create a database so that users can access it online using their android phones? 如何同步两部或更多Android手机的系统时钟? - How can I sync the system clocks of two or more android phones? 如何获取多部Android手机的位置? - How can i get the location of multiple android phones? 如何防止在手机中安装Android应用程序? - How I can prevent installation of my android app in phones? 如何在 Android Studio 中为手机和平板电脑创建项目? - How can I create a project for phones and tablets in Android Studio? 如何通过WiFi直接将一台Android手机连接到多台其他Android手机,并且每台手机都在单独的频道上? - How can I connect one Android phone to multiple other Android phones, using WiFi direct, with each on a separate channel?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM