Saturday, 26 July 2014

GPS Location updates in AOSP Emulator

Mock GPS location values can be set once the emulator is running by connecting to the virtual device via telnet on port 5554 and using the 'geo fix' command to set longitude and latitude values.

$ telnet localhost 5554
$ geo fix <longitude> <latitude>
view raw gistfile1.sh hosted with ❤ by GitHub
More info at http://developer.android.com/tools/help/emulator.html

0 comments:

Post a Comment