title: Getting the MAC address of the device- when wifi is off
body: <p>I am finding the MAC address of the Android Device using the following code:</p>
  
  <pre><code>WifiManager manager = (WifiManager) getSystemService(Context.WIFI_SERVICE);
  WifiInfo info = manager.getConnectionInfo();
  String address = info.getMacAddress());
  </code></pre>
  
  <p>But in this case I am unable to get the MAC address when the Wifi is off. How can I get the MAC address of the Android Device even when WIFI is off.</p>
  
  <p>Thanks</p>