public string GetIdentifier()
{
Android.Telephony.TelephonyManager mTelephonyMgr;
mTelephonyMgr = (Android.Telephony.TelephonyManager)Forms.Context.GetSystemService(Forms.Context.TELEPHONY_SERVICE);
return mTelephonyMgr.DeviceId;
}
Trying to get DeviceId through above code but TELEPHONY_SERVICE is giving compile time error in Visual Studio(Xamarin +Android).How to correct this? Please see the image attached for reference.ErrorImage