08-06-2010 02:52 AM
I have a problem. In my application i have to give a field which accepts a date and want to set a reminder at that date. I have used following codes works fine and inserts a reminder. Now what is the when i am edit details of the record for which i have inserted a reminder, the user should be able to edit the reminder also. I question is how to i get a ID of the inserted Reminder so that when user comes to edit page i would update the respective ID of the reminder.
Thanks in advance
BlackBerryToDoList todoList = (BlackBerryToDoList) PIM.getInstance().openPIMList(PIM.TODO_LIST, PIM.WRITE_ONLY); ToDo todoItem = todoList.createToDo(); todoItem.addString(ToDo.SUMMARY, 0, myname); todoItem.addString(ToDo.NOTE, 0, mynote); todoItem.addDate(BlackBerryToDo.REMINDER, BlackBerryToDo.ATTR_NONE, (new Date()).getTime()); todoItem.commit();
08-11-2010 03:25 AM
I could fix the Issue. Now i have an issue, I want my app to be supported to 4.5 also. but BlackBerryToDoList is supported only after 4.6 and above. is there any way i can generate same build for all the version. i.e put some condition so that for 4.5 the reminder feature would not work and for 4.6 and above it would work....
08-13-2010 11:11 AM
BlackBerryToDoList was added in version 4.6.0 of BlackBerry handheld software. It is not possible to make use of this class in lower versions.