Hi,
I'm trying the simple SMS sample on Handspring visorphone. One thing very strange is
after the simple SMS take over receiving SMS message, even if I unregister simple SMS
to gsm library or register visor's native SMS, it is still the simple SMS to receive
SMS message. After I unregister the simple SMS, the data button is back to
visorphone's SMS. I even tried to make another application to register for receive
SMS, but every time still the simple SMS will take over. Only way I can make
visorphone's native SMS take over is delete simple SMS, then when next time a SMS
message arrive, system will crash and then reset.
Here is the register function:
static Err
SMSRegister(Boolean bReg)
{
Boolean libLoaded = false;
Err error = 0;
UInt16 libRef = 0;
error = LoadGSMLibrary(&libRef, &libLoaded);
if (!error)
{
// This call will register this application with the SMS button on
VisorPhone
// This is not applicable for Treo as they have a standard Palm OS
button for the SMS Application
GSMLibSetDataApplication(libRef, bReg ? appFileCreator :
appVisorPhoneSMSCreator);
// Register this application with the GSM library so it will receive
the appropriate events
if (bReg)
error = GSMLibRegister(libRef, appFileCreator,kData);
else
error = GSMLibRegister(libRef, appVisorPhoneSMSCreator,kData);
}
return error;
}
The visorphone creator is 'SMSa', but I also tried 'SMS!' still not work.
Anyone has any idea? Thanks!
Yan
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/