Hi
i wanted to know that how to get calendar memos and anniversary .i m currently trying to make a backup for calendar but i m not able to get this both items in to my eventlist.
pls help me...
thank u
Hi
i wanted to know that how to get calendar memos and anniversary .i m currently trying to make a backup for calendar but i m not able to get this both items in to my eventlist.
pls help me...
thank u
i don't understand what you are trying to do here. are you coding a calendar java me application?
ya i am coding calendar backup java me application. but when i do so, i m only getting meetings and todo but i m not getting memos and anniversary. that's what i actually meant.
can you post the part of the code where you load the mettings and todos?
while(eventEnum.hasMoreElements()== true)
{
event = (Event)eventEnum.nextElement();
PIM.getInstance().toSerialFormat(event,outStream, "UTF-8",str);
}
this code is used to retrive meetings.
how about how you obtain this eventEnum?
something like that:
events = (EventList) PIM.getInstance().openPIMList(PIM.EVENT_LIST, PIM.READ_WRITE);
events.items()
?
did you listed the available lists? did you tried to open all of these?
ya i have done all this stuff .
this given code works properly for meetings only..
what about memos and anniversary.?????
according to this :
http://www.forum.nokia.com/info/sw.n..._0_en.zip.html
4.2.2 Event list database
The calendar has several different types of entries. There is no explicit field for the entry type in the PIM API; instead there must be a separate list for each type of calendar entry. Both Series 40 and S60 devices support several events list databases whose names are localized, representing different categories of events. However, in an abstract way the following lists are returned by listPIMLists:
• Series 40: {"Meeting", "Call", "Birthday", "Memo", "Reminder"}
• S60: {"Appointment", "Event", "Anniversary"}
The order of these lists is preserved when calling listPIMLists, so although the first entry can have a localized name of "Meeting" in a Series 40 device, the logical meaning of the first entry is the same.
For the supported fields and attributes, see PIM API Implementation notes at http://www.forum.nokia.com/ main/resources/technologies/java/documentation/Java_ME_developers_library.htm.