Hi,
I'm trying to use card remove notification in the start.prc
application. In the handler of the notification I'm removing some
files from device.
I'm able to get this notification only when the start.prc is running,
but I do not get it when the start.prc is not running. Documentation
says that the notification could be handled in start.prc.
Below is my registration function:
Err RegisterAppForNotification(void)
{
Err err = errNone;
UInt16 cardNo;
LocalID dbID;
SysNotifyParamType notifyParam;
if ( (err = SysCurAppDatabase(&cardNo, &dbID)) != 0 )
return err;
// Register application for remove card event
notifyParam.notifyType = sysNotifyCardRemovedEvent;
notifyParam.broadcaster =sysNotifyBroadcasterCode;
notifyParam.notifyDetailsP= NULL;
notifyParam.handled = false;
SysNotifyRegister( cardNo, dbID, sysNotifyCardRemovedEvent,
NULL, sysNotifyNormalPriority, NULL);
return err;
}
Let me know if you see any problems that can generate this behaviour
in the cod above.
Thanks,
Gabi
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/