03-11-2009 12:09 AM - edited 03-11-2009 12:22 AM
With regard to 4.7, To-do Reminders and Event Reminders work differently from each other:
Event reminders use the ALARM field and the value returned is always in seconds, for example a 5 minute Reminder returns as a "long" set to 300 seconds. Not Milliseconds.
ToDo reminders are returned on the REMINDER field and can be either Relative or Fixed-date.
If the DUE date is NOT set, the Reminder can be only Fixed date. If the Due date exists both relative and fixed date can be set by the user.
The documentation shows NO WAY to tell the difference. When receiving the "long" number you can guess that the value, in milliseconds (that's different than the Event reminder's seconds), is either a very OLD date, close to Jan 1 1970, OR is a relative value. If you wish to set the REMINDER, I don't know how you are supposed to tell the API that you want to set a Relative or a fixed date value. VERY POOR DOCUMENTATION OF THIS FUNCTION..
How to tell if the reminder is set at all? use the field count test of :
if (myBlackBerryToDo.countValues(BlackBerryToDo.REMINDER)>0) If it is not >0 then it is not set at all.
Ken J Kelly
available for development...