Reputation: 287
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
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
Reputation: 56
I was facing same problem. After restarting process of adb.exe from task manager it worked.
Upvotes: 3