Oh, I forgot a critical detail. In some cases, the phone number is not
available if the phone is turned off, or for the first 30 seconds after
powering the phone. You may consider stashing a copy, updating your stash as
appropriate.

--------------------
Jeff Loucks
Work 425-284-1128 [EMAIL PROTECTED]
Home 253-851-8908 [EMAIL PROTECTED]
Mobile 253-691-8812


-----Original Message-----
From: Jeffry Loucks [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 09, 2005 1:17 PM
To: Palm Developer Forum
Subject: RE: How to get Palm Phone Number


There are several ways, depending on the device and telephony support.

Handspring uses the PhnLib. First, use PhnLibGetOwnNumbers() to get the list
of phone numbers. Then, depending on phone type CDMA or GSM, extract the
number (phnAddrFldPhone) from the first entry in the list. For CDMA, use
PhnLibAPGetNth() and PhnLibAPGetField(). For GSM, use PhnLibGetNth() and
PhnLibGetField().

Kyocera uses PDQModGetPhoneNumber().

On the old Tungsten-W, you had to read it from the Mobile Panel preferences
using PrefGetAppPreferences() to retrieve
kFileCMobilePanel/kMobilePanelPrefsId into a MobilePanelPrefsType.

There may be other methods, but I've not used them - yet.

--------------------
Jeff Loucks
Work 425-284-1128 [EMAIL PROTECTED]
Home 253-851-8908 [EMAIL PROTECTED]
Mobile 253-691-8812


-----Original Message-----
From: imran baig [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 09, 2005 6:42 AM
To: Palm Developer Forum
Subject: How to get Palm Phone Number


Hi All, 

Does any know how to get Palm Phone Number?

Cheers,

-- 
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/

-- 
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/

-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to