How to emulate GPS location in the Android Emulator?

前端 未结 30 2388
天命终不由人
天命终不由人 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:53

    I was looking for a better way to set the emulator's GPS coordinates than using geo fix and manually determining the specific latitude and longitude coordinates.

    Unable to find anything, I put together a little program that uses GWT and the Google Maps API to launch a browser-based map tool to set the GPS location in the emulator:

    android-gps-emulator

    Hopefully it can be of use to help others who will undoubtedly stumble across this difficulty/question as well.

提交回复
热议问题