Android Getting the GPSStatus always return nothing, why?
<p>my code is:</p>

<p>android.location.GpsStatus.Listener gpsstatusListenerGps = new android.location.GpsStatus.Listener() {
        public void onGpsStatusChanged(int event) {</p>

<pre><code>    GpsStatus gpsStatus             = lm.getGpsStatus(null);                    

    switch (event) {
            case GpsStatus.GPS_EVENT_SATELLITE_STATUS:
                locationResult.gotSatellites(gpsStatus);
                Log.e("gpsStatus", "gpsStatus");

                lm.removeGpsStatusListener(gpsstatusListenerGps);

            for (GpsSatellite sat:lm.getGpsStatus(null).getSatellites()) {
                Log.e("STATUS", "gpsx.GpsStatus.Sat.fixed: " + sat.usedInFix());
            }

                break;
            case GpsStatus.GPS_EVENT_FIRST_FIX:
                locationResult.gotSatellites(gpsStatus);
            Log.e("FIX", "gpsx.fixed.");

            lm.removeGpsStatusListener(gpsstatusListenerGps);


            for (GpsSatellite sat:lm.getGpsStatus(null).getSatellites()) {
                Log.e("FIXX", "gpsx.GpsStatus.Sat.fixed: " + sat.usedInFix());
            }


                break;
    }

    }
};
</code></pre>

<p>...
            Log.e("sat.hasNext()",""+sat.hasNext());   </p>

<pre><code>        while (sat.hasNext()){
           GpsSatellite oSat = (GpsSatellite) sat.next();
           Log.e("gps",""+oSat.getSnr());   
       }
</code></pre>

<p>sat.hasNext is always false.</p>

<p>i always getting nullstring, so i cant get gpsstatuses, why?</p>
