How to emulate GPS location in the Android Emulator?

前端 未结 30 2777
天命终不由人
天命终不由人 2020-11-21 22:15

I want to get longitude and latitude in Android emulator for testing.

Can any one guide me how to achieve this?

How do I set the location of the emulator to

30条回答
  •  暖寄归人
    2020-11-21 22:56

    If you're using Android Studio (1.3):

    • Click on Menu "Tools"
    • "Android"
    • "Android device monitor"
    • click on your current Emulator
    • Tab "Emulator Control"
    • go to "Location Controls" and enter Lat and Lon

提交回复
热议问题