title: how can I Get MAC ADDRESS android 7.0
body: <p>I can't get the mac address 
  can anyone help me please 
  I am newbies in android development please help me 
  <strong><code>manifest.xml</code></strong> </p>
  
  <pre><code>    &lt;receiver
          android:name="com.example.v3rlu.authentification.DeviceAdmin"
          android:permission="android.permission.BIND_DEVICE_ADMIN"&gt;
          &lt;meta-data android:name="android.app.device_admin"
              android:resource="@xml/xml" /&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.app.action.DEVICE_ADMIN_ENABLED" /&gt;
              &lt;action android:name="android.app.action.ACTION_DEVICE_ADMIN_DISABLE_REQUESTED" /&gt;
              &lt;action android:name="android.app.action.ACTION_DEVICE_ADMIN_DISABLED" /&gt;
          &lt;/intent-filter&gt;
      &lt;/receiver&gt;
  </code></pre>
  
  <p>launch activity checkact</p>
  
  <pre><code>@Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_check);
      mac=(TextView) findViewById(R.id.textView) ;
      DeviceAdminReceiver admin = new DeviceAdminReceiver();
      DevicePolicyManager devicepolicymanager = 
      admin.getManager(getApplicationContext());
      ComponentName name1 = admin.getWho(getApplicationContext());
      if (devicepolicymanager.isAdminActive(name1)){
          mac_address = devicepolicymanager.getWifiMacAddress(name1);}
  
  mac.setText(mac_address);
  }}
  </code></pre>
  
  <p>for the <strong>receiverclass</strong> I got the code from android site</p>