title: Unable to simulate location data in Android emulator
body: <p>I'm trying to test my app, which uses geolocation using the emulator. Several methods are described <a href="https://stackoverflow.com/questions/2279647/how-to-emulate-gps-location-in-the-android-emulator">here</a>. I'm going to <code>Window-&gt;Open Perspective-&gt;DDMS</code>, then entering lat. and long. one in <code>Location Controls</code> and then I hit "Send".</p>
  
  <p><img src="https://i.stack.imgur.com/OajLm.png" alt="enter image description here"></p>
  
  <p>But it doesn't work. Instead I see the following error: <code>Unable to send command to the emulator.</code></p>
  
  <p>Why is this happening!?</p>
  
  <p>I don't think my app is the problem because I tested with the emulator's default browser and it also cannot access location info.</p>
  
  <p>Details: </p>
  
  <ul>
  <li>OSX 10.9.4 </li>
  <li>AVD_for_Nexus_4_by_Google targeting v4.4.2</li>
  <li>Eclipse IDE for Android Developers    23.0.2.1259578  </li>
  </ul>
  
  <p><strong>Update:</strong>
  I changed to <code>AVD_for_Galaxy_Nexus_by_Google</code> and it still doesn't work, but I no longer see that error. I click send and nothing happens.</p>
  
  <p><strong>Update2:</strong>
  I've tested using Telnet to pass location data to the emulator, and again nothing happens. No errors. Just nothing. Urgh!</p>
  
  <pre><code>telnet localhost 5554
  geo fix 50 50
  </code></pre>
  
  <p>It responds with <code>OK</code> but nothing happens. Still no location data available.</p>
  
  <p><strong>Update3:</strong>
  I notice a stream of the following errors in LogCat</p>
  
  <pre><code>09-20 17:58:59.910: E/eglCodecCommon(1777): glUtilsParamSize: unknow param 0x00000b44
  09-20 17:58:59.910: E/eglCodecCommon(1777): glUtilsParamSize: unknow param 0x00000bd0
  09-20 17:58:59.930: E/eglCodecCommon(1777): **** ERROR unknown type 0x0 (glSizeof,72)
  </code></pre>
  
  <p>The app seems to be running fine, and these errors are supposedly explained <a href="https://stackoverflow.com/questions/22348801/phonegap-eclipse-issue-eglcodeccommon-glutilsparamsize-unknow-param-errors">here</a>.</p>
  
  <p><strong>Update 4:</strong>
  I've seen multiple suggestions to confirm that my AVD has GPS Support enabled, but this option/setting does not appear anywhere. When I open the "Android Virtual Device Manager" and then click "Edit" on one of my devices, this is what I see:
  <img src="https://i.stack.imgur.com/uHOTq.png" alt="enter image description here"></p>
  
  <p>No mention of "GPS Support".</p>
  
  <p><strong>Update 5:</strong>
  I checked the config.ini file for all my AVDs and they are all correctly set to <code>hw.gps=yes</code>. I also created an AVD using a Google API target, however I'm still having the same problem. The app loads but no location data is available, with "Location Controls" as well as telnet. </p>
  
  <p><strong>Update 6:</strong>
  Following Gyebro's suggestions below... trying to load his LocationDemo app...
  <img src="https://i.stack.imgur.com/boGso.png" alt="enter image description here"></p>
  
  <p>Here's what I see in the LogCat:</p>