I really don't understand how to use notifications with launch codes. 
I've been using procedure pointers to this point, since the notification 
is only supposed to run when my application is running. However, I've 
found that if my application crashes and the user has to reset the Palm 
device, it gets caught in an infinite loop of crashing as it is trying 
to restart itself. It probably isn't really necessary to go this far, 
but I've been doing factory default restarts to get out of this. I do 
not want users having to do this!

Now, obviously I'm going to fix all the crashes in my application. But 
at the same time, there's no way I want to leave the Palm in this state 
under any circumstancs. So I have to use launch codes.

So... when I get a new launch code, that's really a new instance of my 
application, right? How do I tell if there's another instance of my 
application running? (If I do this blindly, I'll be no better off than 
before.) How do I "get to" the old instance? What exactly does "get to" 
mean in this context?

I have three notifications:

The first is for device wake up; it presents a password entry screen if 
Palm OS password protection is off. This is intended to bglock users 
from using my app, but not others.

The other two are for card insert/eject. I want to change what is on one 
of my forms depending on the contents of the card (or the lack of a card).

How do I do these? If anyone has some sample code that could help me 
along I'd be grateful. I know I'm probably being annoyingly vague here, 
so I'm more than ready to supply more information. I'm just not at all 
sure what's useful. :)

Thanks in advance!


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

Reply via email to