Hi all,
In my application I use JSR75 for adding a new Event(Anniversary alarm) to phone calendar.
Here I can add new entry but I colud not set the date and time;
following code I used to insert new event.
Event newEvent = eventlist.createEvent();
if (eventlist.isSupportedField(Event.SUMMARY))
{
newEvent.addString(Event.SUMMARY,PIMItem.ATTR_NONE,exfile);
}
if(eventlist.isSupportedAttribute(RepeatRule.FREQUENCY,RepeatRule.DAILY)){
newEvent.setInt(RepeatRule.DAILY,0,0,0);
}
if(eventlist.isSupportedField(Event.ALARM)){
newEvent.addInt(Event.ALARM,PIMItem.ATTR_NONE,1);
}
if (eventlist.isSupportedField(Event.START))
{
newEvent.addDate(Event.START,PIMItem.ATTR_NONE,EventDate.getTime());
newEvent.commit();
}
The variable EventDate contains the date and time but the new event is created with default date and time.
how can I solve this problem.
awiting for reply...
remyag

Reply With Quote

