Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android emulator cannot recognize that GPS is enabled

I'm having trouble getting the emulator to enable GPS. It's targeted to Google APIs 4.2.2 (hw.gps = yes). Emulator AVD settings

In Settings > Location access, access is turned on and GPS and wi-fi are both checked. Location access settings screenshot

When I telnet localhost 5554 and send a geo fix, I get an OK from the Android Console.

lkung$ telnet localhost 5554
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Android Console: type 'help' for a list of commands
OK
geo fix 50 50
OK

Yet if I open Maps, it says "Please enable Google apps location access." Maps fails to recognize GPS

I'm trying to test an app that is location-dependent using the emulator.

like image 264
rainbowsprinkles Avatar asked Aug 15 '13 03:08

rainbowsprinkles


1 Answers

So, there is actually another settings just for Google apps...which is why the error message in Maps said Please enable Google apps location access. There's a separate Google Settings app separate from regular Settings. Classic misunderstanding of the error message...

Google Settings screenshotGoogle Settings location access setting screenshot

like image 179
rainbowsprinkles Avatar answered Oct 21 '22 22:10

rainbowsprinkles