Under Prefs->Buttons->Hotsync... , I can change 
the application that is launched by the HotSync 
button (either cradle or modem).  That works great
and when I set it to my app, my app launches.  
But, how do I know in my app that the button 
was pushed?  I was looking at the launch code,
and it is 0.  I was expecting 9, as it says 
in the header: 

#define sysAppLaunchCmdSyncRequestLocal         9  // Sent to the HotSync
application to
// request a
        
// local HotSync.  ("HotSync" button was
// pressed.)

I guess that means that _only_ the HotSync app will
get this message?  Or am I doing something completely
wrong and somehow getting the wrong launch code or 
reading it wrong?  How can I tell that my app was 
launched by the user pushing the HotSync button?

A related question:  What is a good way on the device
to keep track of what my launch code was?  I tried 
writing it to a little log, but that got very ugly.  
After syncing to put my app on the device, apparently
a notification goes to all the apps that a sync has
been done (that's good).  But, my logging apparently
was accessing some globals or something, and so it 
locked up the device at the end of the hot sync 
(requiring a hard reset).

Clark

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

Reply via email to