devinefergal
devinefergal

Reputation: 287

When I try to send a location update to the emulator I get an error message

When I am in the emulator control view in the DDMS I am attempting to send a Mock Location to my emulator. However when I try this I get the following error message, "Unable to send command to the emulator". I cannot understand why this is not working as it was fine yesterday and I havent made any changes to my application. Please help?

Upvotes: 1

Views: 4747

Answers (2)

Firnaz
Firnaz

Reputation: 552

If you use mobile device for checking results, I think in your code, you would have mentioned the NETWORK_PROVIDER in location manager. If it is, then change it to GPS_PROVIDER and dont forget to add the permissions in your manifest file(android.permission.ACCESS_FINE_LOCATION). And now send the command through emulator control. it will work.

Upvotes: 3

Tushar
Tushar

Reputation: 56

I was facing same problem. After restarting process of adb.exe from task manager it worked.

Upvotes: 3

Related Questions