.NET Components for Mobility

Discovery the phone number

Last post 09-26-2008 8:12 AM by Iban.martinez. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 08-05-2008 2:16 PM

    Discovery the phone number

    Hello people

    Is there a way to discovery a phone number from a device using In the Hand´s API?

    thanks

  • 08-08-2008 3:40 AM In reply to

    Re: Discovery the phone number

    You can use the PhoneNumber property on the SmsAccount e.g.

     

    session = new OutlookSession();

    string number = session.SmsAccount.PhoneNumber;

     

    Peter

    Peter Foot
    Microsoft Device Application Development MVP
    www.peterfoot.net | www.inthehand.com
  • 08-08-2008 10:58 AM In reply to

    Re: Discovery the phone number

    Thanks by the answer peter.

    Sérgio Cristiano

     

  • 08-11-2008 8:28 AM In reply to

    Re: Discovery the phone number

     Hello people

     Peter, i have tested your code to discovery the device number in emulator and works fine. So, i have tested too in a real device, HTC tyntn II with Windows Mobile 6 and the code always return a empty String. Do  you have any ideia why this happened?

     

    thanks a lot

     

    Sérgio Cristiano

  • 09-26-2008 8:12 AM In reply to

    Re: Discovery the phone number

     I have the same problem.

    Using ITHM 3.2 WM 5 on a HTC 3300.

    session.SmsAccount.PhoneNumber is empty.

     Any update about this issue ?

Page 1 of 1 (5 items)
Copyright © 2001-2008 In The Hand Ltd. All rights reserved. Terms of Use and Privacy Policy.