android - 在设备模拟器上更改 gps 坐标
android - change gps coords on device emulator
我正在尝试制作一个简单的 GPS 应用程序,因此我想在我的设备模拟器上进行检查。
因此,我通过工具>android>启用 ADB 集成在 android studio 中启用 ADB 集成,然后我打开设备监视器,然后从那里我从 window>Android 虚拟设备管理器。
然后我按绿色箭头 运行 我的应用程序,它在模拟器上启动,但由于某种原因,在设备监视器模拟器中,所有选项都被禁用,如下图所示:
有什么想法可以更改坐标吗?
如果需要,请参阅 this answer about debugging your greyed out Location Controls in AVD Manager. Even though its pre Android Studio, the suggested tools/
folder in the SDK folder still applies. (Here's Tips on finding SDK location。)
您也可以尝试 Android API 指南中的 these methods。页面底部附近的第三种方法,在终端中使用telnet,是我最喜欢的。
我正在尝试制作一个简单的 GPS 应用程序,因此我想在我的设备模拟器上进行检查。
因此,我通过工具>android>启用 ADB 集成在 android studio 中启用 ADB 集成,然后我打开设备监视器,然后从那里我从 window>Android 虚拟设备管理器。
然后我按绿色箭头 运行 我的应用程序,它在模拟器上启动,但由于某种原因,在设备监视器模拟器中,所有选项都被禁用,如下图所示:
有什么想法可以更改坐标吗?
如果需要,请参阅 this answer about debugging your greyed out Location Controls in AVD Manager. Even though its pre Android Studio, the suggested tools/
folder in the SDK folder still applies. (Here's Tips on finding SDK location。)
您也可以尝试 Android API 指南中的 these methods。页面底部附近的第三种方法,在终端中使用telnet,是我最喜欢的。