title: Cannot get satellite count Android
body: <p>I cannot seem to get the satellite count when using the geo fix command though the adb.</p>
  
  <p>The geo fix help reads:</p>
  
  <pre><code>geo fix &lt;longitude&gt; &lt;latitude&gt; [&lt;altitude&gt; [&lt;satellites&gt;]]
  allows you to send a simple GPS fix to the emulated system
  The parameters are:
  
  &lt;longitude&gt;   longitude, in decimal degrees
  &lt;latitude&gt;    latitude, in decimal degrees
  &lt;altitude&gt;    optional altitude in meters
  &lt;satellites&gt;  number of satellites being tracked (1-12)
  </code></pre>
  
  <p>I use the following command to set the geo location to trigger OnLocationChanged to execute:</p>
  
  <pre><code>geo fix -106.1221 52.1311 514 5
  </code></pre>
  
  <p>In the OnlocationChanged:</p>
  
  <pre><code>Location newestloc = loc; 
  Bundle sats = newestloc.getExtras();
  int satcount = 0;
  satcount = sats.getInt("satellites");
  </code></pre>
  
  <p>However whenever I call satcount, I always get 0. is the number of satellites being passed through the geo fix not counted?</p>
  
  <p>Are there any other methods to getting the number satellites that are currently seen by the phone's GPS?</p>
  
  <p>Edit: 
  I have also tried the following code as well:</p>
  
  <pre><code>GpsStatus gpsstat = mlocManager.getGpsStatus(null);
  Iterable sats = gpsstat.getSatellites();
  Iterator satI = sats.iterator();
          int count = 0;
          while(satI.hasNext()){
              GpsSatellite gpssatellite = (GpsSatellite) satI.next();
              if (gpssatellite.usedInFix()){
              count++;
              }
          }
  </code></pre>
  
  <p>This should at minimally return 1 every time I get a fix, but it never changes from 0.</p>