At 11:10 AM 5/31/2003 +0300, you wrote:
I want to launch the hotsync and then return back to the application..
I know how to launch the hotsync but I don't know how to return back again..
I checked all of the related messages in the archive, but some of the answers made my application crash and the others couldn't solve my issue!!

You probably saw the numerous ways to invoke the hotsync process:


http://makeashorterlink.com/?I2F3213C4

Once a Hotsync has been invoked, though, your app is not running. To get back to it, you could have it register for and act upon the sysNotifySyncFinished event. Your action upon being notified would be a SysUIAppSwitch() to get back to your app (don't access globals when processing this notification or you will crash). Or, you may find that it works better to set an Alarm notification that goes off seconds after you see the sysNotifySyncFinished event. Once your app gets the alarm, you app SysUIAppSwitch()-es to itself.

I would try it w/o the alarm first. If things crash, try it with the alarm. :)

On older versions of the OS that do not support Notification Manager, you must instead work with the sysAppLaunchCmdSyncNotify launch code to signal you that it's time to SysUIAppSwitch() to yourself.

-Jeff Ishaq


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

Reply via email to