Steve Mann wrote:
>
>
> You don't have to. If you set GSMEventRecord->acknowledge to true,
> you indicate to the GSM library that you are claiming ownership of
> the message and it doesn't get passed to anyone else. If you don't,
> it gets passed to every other registered application. If it gets to
> the default SMS application and no one else has claimed it, the
> default application should display the dialog.
>
> Are you seeing some other behavior?
>
Yeah. I have the following bit of code. The HandleMessage routine looks
at the first couple of bytes of the message to decide if its one that my
app is interesting in. If so it returns true. However I'm not seeing the
alert from the default sms app which I guess indicates that something is
ignoring the acknowledge in the GSM record. Or do I need to do something
else to the GSM Record after setting the acknowledge ?
Thanks for your help.
Steve
static UInt32
HandleGSMLibraryEvent(MemPtr cmdPBP, UInt16 launchFlags)
{
GSMEventRecord* eventP = (GSMEventRecord*)cmdPBP;
Boolean result = false;
switch (eventP->event)
{
case kMessageInd:
// a message has been received. We've nicked it off the
default sms
app
result = HandleMessage(eventP->data.params.id);
// if result is true then it was a provisioning message
if(result){
eventP->acknowledge = true;
} else {
eventP->acknowledge = false;
}
break;
case kSegmentInd:
// a segmented message. Do nothing with it at the moment.
eventP->acknowledge = true;
break;
default:
break;
}
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/