You Are Here:

Community: Developer Discussion Boards

#1 Old PIM API event - 2008-03-05, 05:05

Join Date: Mar 2008
Posts: 2
rylagrace
Offline
Registered User
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 With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
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

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia