如何在Android Studio模拟器中手动设置位置 [英] How to set the location manually in Android Studio emulator

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

问题描述

我有一个项目,我需要在该项目中获得印度的位置.但是在我的模拟器中,我找不到位置.

I have a project in which I need to get the location as India. But in my emulator I am not getting the location.

  • 我需要获得印度的位置
  • 当我从模拟器中获取Google地图时,它会显示当前在海中的位置.

  • I need to get the location as India
  • when I take the google maps from my emulator, it is showing the current location in middle of the sea.

API level I am using is 27.
Emulator I use is Nexus 5x.

如何以及手动获得此模拟器中的当前位置.

how to get the current position in this Emulator and also manually.

我试图在模拟器中编辑位置,并尝试给出纬度和经度,但是它不起作用.

I tried to edit the location in Emulator and tried to give the latitude and longitude but it is not working.

推荐答案

首先,

  • 重新启动模拟器.
  • 转到更多">位置".输入您的经纬度>按发送

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

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