I am having a problem with sysAppLaunchCmdSyncNotify.  As I understand the
documentation, when my App is installed (either via HotSync or beaming), my
App will receive this launch code.  I have been working with this for quite
a while and it is not working.  I have looked thru the archives and I see
some posts indicating other people are having problems as well.  In fact, in
one post, the author says that having problems with it is a "rite of
passage".  Following are the comments made by Philip Sheard on 4 Jan. 2001
regarding sysAppLaunchCmdSyncHotify:

> > Does anyone know what launch code is loaded AFTER hotsynch on a new app?
>
> of course it only occurs if one of the app's databases has been modified
> during the hotsync process. for a new app, this might not happen. it is a
> rite of passage to get caught out by this one.

My application doesn't have any databases.  But I was under the impression
that the application itself was a database and would receive notification
whenever it was HotSynced.  The only thing I can think of is that my
application type is "tdpi" instead of "appl".  It is a "plug-in" to another
application and must not show up in the applications menu.  Following is a
snippet of the code I use - note I put a SndPlaySystemSound just to see if
that portion of the code is ever run and it isn't.

UInt32 PilotMain( UInt16 cmd, MemPtr cmdPBP, UInt16 launchFlags)
{
 switch (cmd)
  {
  case sysAppLaunchCmdSyncNotify: // when plug-in is installed, set
intialization & expiration dates
   //
   SndPlaySystemSound(sndStartUp);
    // do some initialization here
   break;

Anyone have any ideas?
Thanks,
Dave



-- 
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