title: Equivalent of wifiReceiver for 3G connection
body: <p>I have a class called WifiReceiver that extends the BroadcastReceiver:</p>
  
  <pre><code>class WifiReceiver extends BroadcastReceiver 
  {
  
      public void onReceive(Context c, Intent intent) 
      {
          wifiList = mainWifi.getScanResults();
  
          int size=wifiList.size();
          for(int i = 0; i &lt; size; i++)
          {
              Log.i("test","BSSID = "+wifiList.get(i).BSSID);
              Log.i("test","SSID = "+wifiList.get(i).SSID);
          }
  
      }
  
  }
  </code></pre>
  
  <p>/////////////////////</p>
  
  <p>and this class is invoked from the onCreate() method, by doing:</p>
  
  <pre><code>mainWifi = (WifiManager) getSystemService(Context.WIFI_SERVICE);
  receiverWifi = new WifiReceiver();
  registerReceiver(receiverWifi, new   IntentFilter(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION));
  mainWifi.startScan();
  </code></pre>
  
  <p>////////////////////</p>
  
  <p>Basically, I want to be able to get the BSSID and the SSID from any network available...
  It works fine, but only for WIFI connections. As soon as I swap in my phone from WIFI to 3G, the class WifiReceiver is not called...</p>
  
  <p>Does anybody know what I am missing?</p>
  
  <p>Thanks</p>