Hi Henk, Now i checked the error code which gives me errNone and then the after setting alarm the no. of seconds returned is correct. I took on an average 365 days in a year and then made calculation which is correct as effectively it returns me 99.30 years after converting the returned no of seconds into year. one thing is sure that sysAppLaunchCmdSyncNotify is launched which creates two pdbs coz i am creating those inside that SyncNotification function itself. Now i have given 60 seconds of alarm. I am ding time calulation like this . First get the TimTimeSeconds() which returns me 3131536490 seconds and then i add 60 into it and then set the alarm. So after that when i get the AlmGetAlarm() it returns me 3131536550 seconds. But after 60 seconds when i check my device the two pdbs which i am creating dint get deleted as that deletion logic i am writing inside that sysAppLaunchCmdAlarmTriggered laucher code. May i know do i need to do something on device also for setting the alarm ? Would you like to see the whole code , in that case i can send the zip too , to your mail address. Thanks for your help so far but i am still stuck, so please guide. Best Regards,
--- Henk Jonas <[EMAIL PROTECTED]> wrote: > Rahul, > > > > Rahul Shukla wrote: > > Err error = > > > DmGetNextDatabaseByTypeCreator(true,&state,0,myCreator,true,0,&dbID); > > Why do you use 0 for the TypeID? You want to set the > alarm to your > application -> sysFileTApplication. > And you will get a cardNo, it's a nice programming > style to receive this > number (even if ti will 0 for almost every case). > Imho, you don't have to clear the pending alarm, > just overwrite it with > the new alarm. Have you checked the error codes and > do you get the right > time from the last AlmGetAlarm? > > Henk > > > > > oldalarmTime = AlmGetAlarm(0, dbID, &refP); > > // Clear the pending alarm > > AlmSetAlarm(0, dbID, 0, 0, true); > > alarmTime = TimDateTimeToSeconds(dateTimeP); > > alarmTime+=60; > > // Set the new alarm > > AlmSetAlarm (0, dbID, 0, alarmTime, true); > > NewalarmTime = AlmGetAlarm(0, dbID, &refP); > > } > > > -- > ------------------------------------------------------------------------- > [EMAIL PROTECTED] > www.metaviewsoft.de > > <A > HREF="http://www.handango.com/PlatformTopSoftware.jsp?authorId=95946"> > <IMG > SRC="http://user.cs.tu-berlin.de/~jonash/werbung_palmos.jpg"></A> > ------------------------------------------------------------------------- > > > -- > For information on using the Palm Developer Forums, > or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ ________________________________________________________________________ Missed your favourite TV serial last night? Try the new, Yahoo! TV. visit http://in.tv.yahoo.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
