Select the "READ_PHONE_STATE" from the AndroidManifest.xml file.
Add the below given codes for respective features.
Add the below given codes for respective features.
Android.Telephony.TelephonyManager mTelephonyMgr;
//Telephone Number
mTelephonyMgr = (Android.Telephony.TelephonyManager)GetSystemService(TelephonyService);
var PhoneNumber = mTelephonyMgr.Line1Number;
//IMEI number
String m_deviceId = mTelephonyMgr.DeviceId;
//Android ID
String m_androidId = Android.Provider.Settings.Secure.GetString(ContentResolver, Android.Provider.Settings.Secure.AndroidId);
//WLAN MAC Address
Android.Net.Wifi.WifiManager m_wm = (Android.Net.Wifi.WifiManager)GetSystemService(Android.Content.Context.WifiService);
String m_wlanMacAdd = m_wm.ConnectionInfo.MacAddress;
//Blue-tooth Address
Android.Bluetooth.BluetoothAdapter m_BluetoothAdapter = Android.Bluetooth.BluetoothAdapter.DefaultAdapter;
String m_bluetoothAdd = m_BluetoothAdapter.Address;Note: Some of the features will not be available from some devices due to security issues and terms and conditions of the manufacturer.
