M
Matt
Hi
I'm trying to get the Phone Number that the device uses to make outgoing
calls.
I've found two methods but neither seem conclusive and can return blank on
some devices:
OpenNETCF.Phone.Sim.Sim sim = new OpenNETCF.Phone.Sim.Sim();
if (sim.OwnNumbers.Count > 0)
{
string sMyNumber = sim.OwnNumbers[0].Address;
labelPhoneNo.Text = sMyNumber;
}
else
{
labelPhoneNo.Text =
SystemState.OwnerPhoneNumber.ToString();
Is there a better solution?
Many Thanks!
I'm trying to get the Phone Number that the device uses to make outgoing
calls.
I've found two methods but neither seem conclusive and can return blank on
some devices:
OpenNETCF.Phone.Sim.Sim sim = new OpenNETCF.Phone.Sim.Sim();
if (sim.OwnNumbers.Count > 0)
{
string sMyNumber = sim.OwnNumbers[0].Address;
labelPhoneNo.Text = sMyNumber;
}
else
{
labelPhoneNo.Text =
SystemState.OwnerPhoneNumber.ToString();
Is there a better solution?
Many Thanks!