How do I run the GPS function on the Android emulator?

Asked 2 years ago, Updated 2 years ago, 162 views

Hardness and latitude in an Android emulator are required for a simple experiment. Is there a good way to get hardness and latitude? How do I position the emulator to test the location information?

android geolocation testing android-emulator

2022-09-22 21:27

1 Answers

You can use Telnet to connect to the emulator. The emulator console then provides access to coordinate information, network, and other data.

Instructions for using the console are detailed in here. To connect the console, type in the command line as follows.

telnet localhost 5554

You can then use the geo command to set the hardness and latitude. If necessary, up to the instrument's altitude (which is passed to all programs using the gps location provider). Please refer to the link above if you are curious about the details.

Enter the command below to run on the console.

geo fix <longitude value> <latitude value>

Useful link to find the actual hardness and latitude: http://itouchmap.com/latlong.html

If you need data from multiple coordinate systems, you can use the kml file. https://developer.android.com/studio/profile/ddms.html#ops-locationSee this article. I think it's the most explained data so far.


2022-09-22 21:27

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.