i am new to windows phone develpopment .
I want to retrieve IMSI and MSISDN number in my code. I am developing using Visual Studio 2010.
Please help me
i am new to windows phone develpopment .
I want to retrieve IMSI and MSISDN number in my code. I am developing using Visual Studio 2010.
Please help me
As far as I know you can not get either one of these with any WP API. Also in future please ask under the most appropriate category section in this dibo. This time I moved this from the general feedback section to here.
What you have instead are the User/DeviceExtendedProperties in Microsoft.Phone.Info: http://msdn.microsoft.com/en-us/libr...v=vs.105).aspx
Yes currently windows phone 8 sdk does not have any api for retrieving IMSI,IMEI, MSISDN,SIM country and region details , SIM card contact details etc.
What do you need that for exactly ? Did you consider using DeviceUniqueId or ANID ?
Hi,
In addition to wizard_hu & symbianyuccav, you can use the following code snippet.
Namespace for the following code.
Microsoft.Phone.Info
Hope it helps.Code:public static void GetHardwareDetails() { byte[] myDeviceID = (byte[])Microsoft.Phone.Info.DeviceExtendedProperties.GetValue("DeviceUniqueId"); string idAsString = Convert.ToBase64String(myDeviceID); string Manufacturer = (string)Microsoft.Phone.Info.DeviceExtendedProperties.GetValue("DeviceManufacturer"); string DeviceName = (string)Microsoft.Phone.Info.DeviceExtendedProperties.GetValue("DeviceName"); MessageBox.Show("myDeviceID:" + idAsString + "\nManufacturer:" + Manufacturer + "\nDeviceName:" + DeviceName); }
Pavan Pareta
Sr. Software Engineer
http://windows-mobile-dev.blogspot.com