Yes, and sometimes it even works! Here's what I've done:
// Try to get our phone number - sometimes this even works! // The "own" phone number is the first in the "own numbers" list. // NOTE: The phone number is not always available right away. // For example, a GSM phone number may not be available until 30-60 seconds // after the phone is powered. Depends on when in the startup sequence // such attributes are read/initialized.
Thanks for the code.
I can understand the number not being available for 30-60 seconds after powering on the phone. It must contact the operator and register with the network before being fully functional.
Have you thought about registering for the phnEvtRegistration events? This is sent whenever the network registration state has changed. We wait for the first of thease events before trying to use netlib..
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
