rainbowsprinkles
rainbowsprinkles

Reputation: 257

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.

Upvotes: 6

Views: 8738

Answers (1)

rainbowsprinkles
rainbowsprinkles

Reputation: 257

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 screenshot Google Settings location access setting screenshot

Upvotes: 1

Related Questions