使用 Android Studio 在模拟器中设置 GPS 位置 [英] Set GPS Location in Emulator using Android Studio

查看:194
本文介绍了使用 Android Studio 在模拟器中设置 GPS 位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Eclipse 中,您可以使用以下命令为模拟器设置 GPS 位置:

In eclipse you can set a GPS location for the emulator using:

选择窗口 > 显示视图 > 其他 > 模拟器控制.

Select Window > Show View > Other > Emulator Control.

在 Emulator Control 面板中,在 Location 下输入 GPS 坐标控制为单独的纬度/经度坐标,带有用于路线的 GPX 文件播放,或用于多个地标的 KML 文件.(确保你在设备"面板中选择一个设备 - 可从窗口 >显示视图 > 其他 > 设备.)

In the Emulator Control panel, enter GPS coordinates under Location Controls as individual lat/long coordinates, with a GPX file for route playback, or a KML file for multiple place marks. (Be sure that you have a device selected in the Devices panel—available from Window > Show View > Other > Devices.)

这可以在 android studio 中实现吗?

Is this possible in android studio?

推荐答案

来自 文档

如果您想使用 Android Debug Monitor 调试您的应用,您可以单击工具栏中的监视器"启动它.

If you want to debug your app with the Android Debug Monitor, you can launch it by clicking Monitor in the toolbar.

这篇关于使用 Android Studio 在模拟器中设置 GPS 位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆