JDev
JDev

Reputation: 2541

adb "geo fix" command to real device of Android?

How do I test the GPS on a real device?

I connect to the emulator, everything is OK.

jdev@jdev-K ~ $ adb devices
List of devices attached 
4df10455333395f1        device

jdev@jdev-K ~ $ telnet 4df10455333395f1
telnet: could not resolve 4df10455333395f1/telnet: Name or service not known

Which port?

Tell me, and I can not find. thanks!

Upvotes: 4

Views: 8616

Answers (3)

luv
luv

Reputation: 432

Unfortunately geo fix doesn't work on real devices.

Not out of the box, but that's why I wrote an app for that :) - it's open source and provides exactly the same interface as the emulator (telnet to :5554 and run "geo fix ..." or "geo nmea"): in app store MockGeoFix

Upvotes: 6

Chad Bingham
Chad Bingham

Reputation: 33856

You can set it programmatically. If you look at the documentation at the very bottom, it has a setTestProviderLocation(). That may work. I have not used it however.

Upvotes: 0

fweigl
fweigl

Reputation: 22028

Unfortunately geo fix doesn't work on real devices.

Upvotes: 4

Related Questions