title: Can i get satellites names in android?It shows me in their SNR,PNR,elevation,azimuth but i don't know if the data that it shows me is correct
body: <pre><code>  package my.pack;
  
    import java.util.Iterator;
  
    import android.app.Activity;
    import android.content.Context;
    import android.location.GpsSatellite;
    import android.location.GpsStatus;
    import android.location.GpsStatus.NmeaListener;
    import android.location.Location;
    import android.location.LocationListener;
    import android.location.LocationManager;
    import android.os.Bundle;
    import android.util.Log;
    import android.widget.Toast;
  
    public class SatellitesActivity extends Activity {
  LocationManager locMgr;
  double lat;
  double lon;
    /** Called when the activity is first created. */
    @Override
     public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.main);
  
       locMgr = (LocationManager) getSystemService(Context.LOCATION_SERVICE);
       MyGpsListener listener = new MyGpsListener();
       MyLocationListener locListener = new MyLocationListener();
       locMgr.addGpsStatusListener(listener);      
       locMgr.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, locListener);
       locMgr.addNmeaListener(new NmeaListener() {
  
          @Override
          public void onNmeaReceived(long timestamp, String nmea) {
              // TODO Auto-generated method stub
              Log.e("Test!", nmea);
          }
      });
  
     }
  
  
  
    public class MyGpsListener implements GpsStatus.Listener{
      @Override
      public void onGpsStatusChanged(int event) {
          // TODO Auto-generated method stub
          switch(event){
          case GpsStatus.GPS_EVENT_STARTED:Log.e("Started", "");
              break;
          case GpsStatus.GPS_EVENT_FIRST_FIX:Log.e("FirstFix", "");
              break;
          case GpsStatus.GPS_EVENT_STOPPED:Log.e("Sopped", "");
              break;
          case GpsStatus.GPS_EVENT_SATELLITE_STATUS:GpsStatus xGpsStatus = locMgr.getGpsStatus(null) ; 
          Iterable&lt;GpsSatellite&gt; iSatellites = xGpsStatus.getSatellites() ; 
          Iterator&lt;GpsSatellite&gt; it = iSatellites.iterator() ; 
          while ( it.hasNext() ) 
          { 
                  GpsSatellite oSat = (GpsSatellite) it.next() ; 
                  if(oSat.usedInFix()){
                      Log.e("A fost folosit ", "int fix!");
                  }
                  if(oSat.toString()!=null){
  
                      Log.e("Test", "SNR:"+oSat.getSnr()+"; Azimuth:"+oSat.getAzimuth()+"; Elevation:"+oSat.getElevation()+" "+oSat.toString()+"; PRN:"+oSat.getPrn());
                  }
          } 
          break ; 
  
  
          }
      }
      }
  
  public class MyLocationListener implements LocationListener{
  
      @Override
      public void onLocationChanged(Location location) {
          // TODO Auto-generated method stub
  
          if(location!=null){
              lat = location.getLatitude();
              lon = location.getLongitude();
              Toast.makeText(getApplicationContext(), ""+lat+"\n"+lon, Toast.LENGTH_LONG).show();
          }
      }
  
      @Override
      public void onProviderDisabled(String provider) {
          // TODO Auto-generated method stub
  
      }
  
      @Override
      public void onProviderEnabled(String provider) {
          // TODO Auto-generated method stub
  
      }
  
      @Override
      public void onStatusChanged(String provider, int status, Bundle extras) {
          // TODO Auto-generated method stub
  
      }}
  </code></pre>
  
  <p>}</p>