(Beginner) Keep Your Program Single Instance

Postby Admin on Sun Jan 14, 2001 3:14 pm

Keep Your Program Single Instance
------------------------------------
On Palm PC and PocketPC, while your applet is running, if user decided to switch to another application, there is no easy to switch back to the current running applet. On Handheld PC, you have TaskBar to switch applications.

In order to solve this problem, I came up a simple solution. If you want to keep your applet single instance at all time, just make sure you use

title("put your applet name here");

When a second applet is launching, it will check if there are any existing applet with the same title. If it found one, it will exit automatically, and bring the previous applet window upfront into focus.
Admin
 
Posts: 86
Joined: Fri Oct 06, 2000 6:00 am
Location: USA

Return to PocketC for CE KB

Who is online

Users browsing this forum: No registered users and 0 guests

cron