| Reply | « Previous Thread | Next Thread » |
|
I am trying to make an alarm clock using the PIM API, i can create the event and the vcard appears. My problem is how to trigger the event so that the alarm will sound off at the specified time.
here is the method that creates the event public void createAnEvent() { new_event = el.createEvent(); if(el.isSupportedField(Event.START)) new_event.addDate(Event.START, PIMItem.ATTR_NONE, + dateF.getDate().getTime() ); System.out.println("Date: "+ currentDate.getTime() + timeTillAlarm); if(el.isSupportedField(Event.END)){ } if(el.isSupportedField(Event.ALARM)) new_event.addInt(javax.microedition.pim.Event.ALARM, javax.microedition.pim.PIMItem.ATTR_NONE, 0); if (el.isSupportedField(javax.microedition.pim.Event.SUMMARY)) new_event.addString(javax.microedition.pim.Event.SUMMARY, javax.microedition.pim.PIMItem.ATTR_NONE, "Prueba"); try{ new_event.commit(); el.close(); } catch(Exception e){ } System.out.println("Creation Successfull"); } is there a method i need implement to activate the event alarm? thanks in advance |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| PC Suite error: (Code: Init IMediaControl2) HELP?! | chunkyspudmonkey | General Discussion | 29 | 2008-06-30 12:47 |
| FPC Bench, Database API and a lot more... | sblantipodi | Mobile Java Tools & SDKs | 4 | 2008-03-23 02:47 |
| KErrDisconnected event in HTTP's API MHFRunL() after receiving SMS on device | eekisa | Symbian Networking & Messaging | 2 | 2007-11-14 08:39 |
| 6101 Alarm sound set (PIM api) | iea@e-infonor.com | General Browsing | 7 | 2007-06-12 20:27 |
| PIM API QUERY(SERIES 40) | AmeyDeshpande | Mobile Java General | 6 | 2006-02-24 12:41 |