Discussion Board

Results 1 to 1 of 1
  1. #1
    Registered User
    Join Date
    Mar 2008
    Andhra Pradesh (India)

    Calendar remainder's alarm no sound

    Hi all,

    I am developing an application wherein I need to set events to phones calendar (specifically remainder). I can able to set the events properly as per the below mention code and even the remainder pop up perfectly, but the problem here is when it pop up it does not play the remainder sound, and i have also checked that my mobile is not in silent mode. When i set the remainder manually it plays sound.

    Is there any specific coding which i am missing here in my code to set the tone?

    It will be a great help for me if any one can provide some code or information regarding this problem

    public void setToNative(String a_dateTime)
    EventList eventList;
    eventList = (EventList) PIM.getInstance().openPIMList(PIM.EVENT_LIST, PIM.READ_WRITE, "Reminder");

    Calendar c = Calendar.getInstance();

    c.set(Calendar.DAY_OF_MONTH, Integer.parseInt(a_dateTime.substring(0, 2)));
    c.set(Calendar.MONTH, Integer.parseInt(a_dateTime.substring(3, 5)) - 1);
    c.set(Calendar.YEAR, Integer.parseInt(a_dateTime.substring(6, 10)));
    c.set(Calendar.HOUR_OF_DAY, Integer.parseInt(a_dateTime.substring(11, 13)));
    c.set(Calendar.MINUTE, Integer.parseInt(a_dateTime.substring(14, 16)));
    c.set(Calendar.SECOND, Integer.parseInt(a_dateTime.substring(17, 19)));

    Event event = eventList.createEvent();
    // Get data from controls
    if(eventList.isSupportedField(Event.SUMMARY) == true)
    event.addString(Event.SUMMARY, PIMItem.ATTR_NONE, a_text);
    if(eventList.isSupportedField(Event.START) == true)
    event.addDate(Event.START, PIMItem.ATTR_NONE,c.getTime().getTime());

    if (eventList.isSupportedField(Event.ALARM))
    event.addInt(Event.ALARM, PIMItem.ATTR_NONE, 0);


    } catch(Exception pimExc) {

    Rajesh Chandra.
    Last edited by jsm_rajesh; 2010-08-12 at 15:43.

Similar Threads

  1. Setting alarm in Calendar
    By Tiger79 in forum Mobile Java General
    Replies: 2
    Last Post: 2008-09-05, 08:29
  2. Calendar Alarm Notification
    By nair.shanker in forum Symbian User Interface
    Replies: 1
    Last Post: 2008-08-07, 09:32
  3. Replies: 0
    Last Post: 2008-06-17, 12:21
  4. 6600 : Calendar alarm can't vibrate
    By Jingo Saputra in forum General Development Questions
    Replies: 1
    Last Post: 2008-01-06, 19:51
  5. Calendar alarm sound
    By pgivy in forum Symbian
    Replies: 1
    Last Post: 2007-02-05, 03:28

Posting Permissions

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