How I can get mobile operator name (UWP)? - windows-10-mobile

I need to get information about mobile operator( if device is phone or if i got device with sim slot). I couldn't find any similar code to this:
textBlock1.Text = "Mobile Operator :- " + DeviceNetworkInformation.CellularMobileOperator.ToString();
which only works on Windows Phone 8.1 .

Currently this is not possible to retrieve such information on the UWP.
Even if you use Windows.Networking.Connections API.
Maybe in the future this will be included.

Related

Check for sim is available or not in windows phone 8.1?

Is there any api or class to check whether sim is available in the phone . I'm working windows phone silverlight application.
Thanks & Regards,
Pallam Madhukar
Not possible with the current API.
I'm using SilverLight Application so we can get
DeviceNetworkInformation.CellularMobileOperator
if it returns empty string sim is not available else sim is available.

Unity send SMS message

I'm currently using Unity for developing an application for Android and IOS and I'm able to use the function: Application.OpenURL("mailto:" + email_address + "?subject=Email&body=msg from Unity");
to send emails from within my application, and I know you can use a similar function to open up the mobile devices SMS system however I'm unsure on how to actually go about this.
If anyone can please advise how I can open up the native SMS system through "Application.OpenURL()" that'd be fantastic. I'm also open to using an alternative solution if anyone's aware.
You can use a variety of OpenURL commands to open up numerous apps in iOS. Android has a comparable nomenclature too. Of course I don't know if below will work in Android but it's worth a shot.
var sms_number : String = "+17032129831"
Application.OpenURL("sms:" + sms_number);

How do you detect the windows phone 7/8 device brand version programmatically?

I know how to get the OS version, but I'm looking for something that can tell me what the device is (brand, version, etc). Example: Nokia Lumia 920 Anything close to it will be helpful!
Use Mango's DeviceStatus class to get information about the device.
MessageBox.Show(DeviceStatus.DeviceManufacturer + " " + DeviceStatus.DeviceName);
From the DeviceExtendedProperties class, the DeviceManufacturer and DeviceName properties.

How to get user's own mobile number from windows phone 7 or 8

I want to extract "user own mobile number", not his whole phone book. i am using c# as the developing language. thank you
If you want to get device's own phone number, then it's not currently possible.
As far as I know, it is not possible to get the own cell number in Windows Phone.

WP7 any way to get the pic of the contact

i look at the list of choosers for windows phone 7 and i miss one where i can read the avatar-pic fo the contact. am i missing something here or is this just not possible yet?
thx
sargola
This isn't possible through the phone SDK at the moment.
What is exposed is being able to retrieve the email address or the phone number from a chooser. Details on that here for reference.
How to: Use Choosers for Windows Phone

Resources