[英]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个点
Then: Location > Routes > choose destination > Play Route > Speed X5然后:位置 > 路线 > 选择目的地 > 播放路线 > Speed X5
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.