Sounds like you have 2 separate design questions. You won't find a
pre-packaged solution to either.
First, (to answer your first and third questions) you want to intercept any
hardware button presses in your main event handler before you pass the
messages to the OS. When you receive a button press, you can determine if
you want to ignore, pass it to the OS or hold on to it until later for
processing. There is an example in the KB for intercepting the buttons (I
think you can also look at the reptoids source)
Second, restarting your app where the user left off... Haven't done it
personally but you can use a DB to store the location where the user was
last (most apps use the unsaved preferences DB). The address book does
something similar. Take a look at the code. I wouldn't bother saving the
screen geometry and data, just where the user was last. Depending on what
your app is, the underlying data may change while the user is off doing
other things.
----- Original Message -----
From: "S Santoso" <[EMAIL PROTECTED]>
Newsgroups: palm-dev-forum
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Tuesday, July 31, 2001 12:18 PM
Subject: fail safe feature in a application
> Hi,
>
> Is there a way to protect your application from unintentionally tapping
or
> pushing buttons while user is in the middle of data entry? So, when the
> system terminates your apps you still can go back by tapping your
> application icon and go back to the same screen and still have user's last
> data.
> If there is, what function should I call? Do I have to allocated one or
> several database(s) just storing all entries and screen indexes so I can
go
> back to the last screen?
>
> Second, is there any program (shareware) that can lock the application,
and
> frezee all buttons? So there won't be a way a user can get out from the
> application by tapping or pushing the wrong button. The only exit from
the
> application is just from your exit function in the program.
>
> Any idea anyone? Every help is appreciated.
> S Santoso
>
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/