no dobra nikt nie chce odpowiedzieć to ok coś już znalazłem. Dostać się do tego co chcę można poprzez tzw PIM tylko mam pewien problem komórka moja wywala się na takim czymś
public void startApp()
{
EventList events = null;
try
{
events = (EventList) PIM.getInstance().openPIMList(PIM.EVENT_LIST, PIM.READ_WRITE);
}
catch (PIMException e)
{
// An error occurred
return;
}
Event event = events.createEvent();
try
{
Date aDate = new Date();
System.out.println(aDate.getTime());
event.addString(Event.SUMMARY, PIMItem.ATTR_NONE, "Meeting with John");
event.addDate(Event.START, PIMItem.ATTR_NONE, aDate.getTime());
event.addDate(Event.END, PIMItem.ATTR_NONE, aDate.getTime());
event.addDate(Event.ALARM, PIMItem.ATTR_NONE, aDate.getTime() - 60000);
event.addString(Event.NOTE, PIMItem.ATTR_NONE, "I phoned on Monday to book this meeting");
//event.addToCategory("Work");
}
catch (UnsupportedFieldException e)
{
// In this case, we choose not to save the contact at all if any of the
// fields are not supported on this platform.
System.out.println("Event not saved");
return;
}
try
{
event.commit();
}
catch (PIMException e)
{
// An error occured
}
try
{
events.close();
}
catch (PIMException e)
{
}
}</i>
i zwraca mi taki błąd "Illegal Argument java/lang/IllegalArgumentException Wrong Data Type" ktoś wie może gdzie jest błąd?
Sprawdzam na nokii 6230i
Czy ktoś mógłby mi pomóc?
Dzięki