1

I am trying to enter "location controls" for my device in android eclipse. The problem is that the input fields for this is disabled so I can't enter anything. I HAVE selected my device.

btw. i have tried to enter location controls for a physical device and a virtual device (GenyMotion), but i's the same either way.

I hope anyone have a solution for this

Langkiller
  • 3,377
  • 13
  • 43
  • 72

2 Answers2

1

Genymotion provides a shell that enables you to script the modification of sensor states.

  • gps activate Activate the GPS sensor (if not already activated)
  • gps setlatitude Set latitude (and activate GPS if not allready activated)
  • gps setlongitude Set longitude (and activate GPS if not allready activated)

Or you can open the GPS widget that comes with it :

  • The GPS widget allows real time activation and modifications of the position,accuracy and orientation.

More info here

Dyna
  • 2,304
  • 1
  • 14
  • 25
  • Well, I already have the Emulator Control open.. The problem is that I can't enter anything in the "Location Control" section... these fields are disabled – Langkiller Oct 17 '13 at 13:31
  • I think you have to enable it on the device! – Dyna Oct 17 '13 at 13:33
  • Im sorry, what do I have to enabled? And where/how? – Langkiller Oct 17 '13 at 13:36
  • have you selected the manual tab in your location control ? Forget the other comment, I was thinking about real devices. – Dyna Oct 17 '13 at 13:42
  • what are the specifications of your AVD? Can you take snapshots and post them?you have to make sure you created an emulator with Google APIs. – Dyna Oct 17 '13 at 13:45
  • Actually i can't select any of those tabs at all (manual, GPX or KML). I don't know how to make sure it has Google APIs because im using the Genymotion emulator. The standard Android emulator is running way too slow on my computer. anyways, here are the specs for the AVD im using: https://docs.google.com/file/d/0B2_2oeJkE3xAMnBaV3B5bVVsVEU/edit?usp=drive_web – Langkiller Oct 17 '13 at 17:17
  • Any idea how to remove the location (lat/long) sent via eclipse to the emulator? – SleepNot Jul 31 '14 at 10:10
0

Try this

  1. open a command shell

  2. conect to the emulator with the command: telnet localhost

  3. to enter a fixed location execute the command: geo fix <longitude> <latitude> [<altitude>]

Changdeo Jadhav
  • 706
  • 9
  • 23