Set reminder in BB

Hi all

I want the reminder for my application...

What is the best between call calendar or task (ToDoList)?

I tried to call ToDoList, but I can not set the reminder for my task... then I try to call the calendar and got exception...

Here is my code to call the calendar

EventList _eventList = null;
try {
    // Creates/Opens an instance of the specified PIM list (Event List) in Read/Write mode.
    _eventList = (EventList)PIM.getInstance().openPIMList(PIM.EVENT_LIST, PIM.READ_WRITE);

    // Creates a new Event
    BlackBerryEvent bbEvent = (BlackBerryEvent)_eventList.createEvent();

    bbEvent.addString(BlackBerryEvent.NOTE, BlackBerryEvent.ATTR_NONE, "tes task");
    bbEvent.addDate(BlackBerryEvent.DATE, BlackBerryEvent.ATTR_NONE, HttpDateParser.parse("2009-11-23"));
    // Checks the Event List to determine if the ALLDAY field is supported
    if(_eventList.isSupportedField(BlackBerryEvent.ALLDAY)) {
    // Checks the event to determine if ALLDAY attribute as already be set
        if(bbEvent.countValues(BlackBerryEvent.ALLDAY) > 0) {
            bbEvent.setBoolean(BlackBerryEvent.ALLDAY,0,Event.ATTR_NONE,true);
        } else {
            bbEvent.addBoolean(BlackBerryEvent.ALLDAY,Event.ATTR_NONE,true);
        }
    }
    Dialog.inform("added");
} catch(PIMException e) {
    Dialog.inform("failed");
}

And this is my code to call the ToDoList (but still I can not set the reminder for my task)

try{
    ToDoList list = (ToDoList)PIM.getInstance().openPIMList(PIM.TODO_LIST, PIM.WRITE_ONLY);
    ToDo newTask = list.createToDo();
    newTask.addString(ToDo.SUMMARY, PIMItem.ATTR_NONE, txtTask.getText());
    newTask.addDate(ToDo.DUE, 0, HttpDateParser.parse("2009-03-13"));
    //newTask.addInt(net.rim.blackberry.api.pdap.BlackBerryToDo.REMINDER,ToDo.ATTR_NONE,0);
    //PIMItem.setDate(BlackBerryToDo.REMINDER,);
    newTask.commit();

    Dialog.inform("Task added");
}catch(Exception e){
    e.printStackTrace();
    Dialog.inform("exception");
}

Help, please

Thank you...

I solved my problem...

Tags: BlackBerry Developers

Similar Questions

  • Impossible to set reminder on Apple Watch

    I find that I can no longer use Siri on Apple Watch to set a reminder.  It is always just said 'a second... '. "and then tells me it cannot set the reminder (no further details given).

    If I try the same thing on the iPhone, it works fine.  Note: I do not geolocation for reminder, just a normal daily reminder.

    I re-pair my Apple Watch to see if it would help.  There can be no.

    What I'm missing here?  Something that "might" be in game is I have Outlook calendar of the work used on my iPhone but is not the default calendar and I do not use Outlook for reminders.  And so that was important, why can I create reminders with the iPhone and not watch?

    Hello

    Restart your watch.

    1. Hold down the side button until you see the cursor off the power.
    2. Drag the slider to turn off your device.
    3. Once your watch turns off, press and hold the side button again until you see the Apple logo.

    And restart your iPhone.

    1. Press and hold the sleep/wake button until the Red slider appears.
    2. Drag the slider to turn off your device completely off.
    3. Once the device turns off, press and hold the sleep/wake button again until you see the Apple logo.

    Then see if Siri can set a reminder.

    Set a reminder. Use Siri on Apple Watch. Press in and hold the digital Crown, then talk. Or just increase your wrist and say 'Hey Siri, set a reminder'. You can also set reminders on iPhone or other iOS or Mac device that is signed using your Apple ID.

    Ask Siri. 'Set a reminder to 05:00.'

  • Reminder of backup password on USB key (listed in HP Support - assistant memory of items completed)

    Regarding the name of the product: HP Pavilion 15 laptop PC - HP support assistant TS, it is a utility built to back up/set reminder with a USB key. I just want to know what password he wants to connect to do this. I tried my MSN psswd, my Simple Pass #, if she wants I used initially to put this in place new, can't remember what it was...? True not much, just thought that I could do this and cannot. Thank you. Mike aka Tararaboomdeay.

    I think what you're referring to is the utility to create a password reset in case you forget your password to connect to Windows. Sounds like it may be too late for that.

  • Specific error of connector for blackBerry Smartphones

    Just upgraded to Curve 9360. Now, when I synch I get an error when it tries to sync the calendar: connector specific error. No other information. It is the synchronization log:

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    22/04/2012 09:23
    Synchronize the device calendar with Microsoft Outlook calendar

    First system: device
    Second system: Microsoft Outlook
    Second file system name: calendar
    Conflict resolution: notify
    Beach of appointment: 04 22, 2012 at 12/31/3099
    Device data source: «BlackBerry calendar»

    --> Records duplicate found!

    Total of the entries of the first system: 0

    Used for the translation field mapping:
    Device Microsoft Outlook
    Description title - subject
    Notes - body
    -Place
    Alarm Date - Date alarm
    Time alarm - the alarm time
    Start date - Date of start
    Start - Start time
    End date - End Date
    End time - end time
    Alarm indicator - Set Reminder indicator
    Free availability - time to see the like
    Participants - the meeting
    Private - private

    Internal error.
    Cancelled translation!

    There is nothing in Event Viewer to suggest what is the problem. I tried to uninstall all Blackberry software by downloading and installing the latest version of the software as an administrator. Can anyone suggest anything else I can try?

    He solved. Go to desktop, device, delete data. Delete everything to do with the calendar. Check your synchronization copy of the Outlook on the device. It synch. All sorted.

    I hope that anyone else who saves the two hours it took me to find!

  • BlackBerry smartphones are in need of an organizer

    Hello

    I have a Storm 9530 and wonder if anyone knows of a desktop organizer that is not the Office of the BB one. I tried the current version twice but it doesn't play well with my pc (windows xp). I tried with the automatic start and turn off at the start of the pc, but it always interferes with my startup. (prevents most of the auto-start things and hangs the pc for several minutes)

    Also, I use not all programs, it is compatible with ie: www.Garmin.com/express MS Outlook or Lotus Notes.

    I just want something on my pc I can plan meetings and set reminder alarms and keep the contact info. A bit like the old Palm Desktop that.

    Any help is greatly appreciated.

    I think you're confused... the BlackBerry Desktop Manager is not an organizer of office and has no function to do so.

    DM is simply the conduit by which you synchronize your smart sur-telephone BlackBerry data to your client application of PIM, such as Outlook. RIM chose NOT to reinvent the wheel yet again with another PIM application since there are so many other good ones out there.

    There is always Google sync if you want, because you have dropped from Lotus and Outlook express.

  • Is there a way to set a follow-up reminder of an e-mail message?

    I want to set a reminder on an e-mail message, so that on a date and time the reminder will activate and tell me about the message on which I put the reminder. I found the tags in Thunderbird, but I'd rather have a reminder pop up. Thank you!

    I would define it as a calendar event. You can convert a message to an event and all you have to do is set the time and date for the reminder. If you synchronize a remotely shared calendar then you will also get reminders on your phone, tablets or other computers, if you wish.

  • How do I set a reminder that reminds several times per day

    How to set a reminder that reminds several times a day as three times for the same drug? is this possible?

    No, not with the native application of reminders. You can see the app store, however. You might also consider to use the alarm in the clock application.

  • How can I set a reminder in reminders for all app everyday except Friday and Saturday?

    I want to put a reminder in the application of reminders for all day except Friday and Saturday for stuff to prepare for the days of work. I can't find a way to set up. I tried every way I could think to get Siri to do, but it did not work. Someone knows how to do this?

    See if defining a works repeat custom. Open your reminder > press more info > repeat > Custom > assign week and choose the days that you desire. It should look like the image below. -AJ

  • How is the setting of control determined reminder ID?

    The reason why I ask, is that I seem to be getting unexpected results in a point of order. I have a Table control, which is then duplicated (multiple times) in the same position as the original. I switch between them by setting the ATTR_VISIBLE attribute on a single at the time, but one that is presented on the GUI I get always the same control passed in the common callback - ID ID is of the latter duplicated, even if it is not visible. I have a workaround, of course, since I know that I made visible: it's just that correct ID would have been more convenient to have the reminder.

    Just guessing, but it seems that any research ICB control including the XY coordinates corresponds to the mouse position and he doesn't know whether or not this control is visible. Probably not the best way to do...

    Mike

    According to my experience, when recall responds to the events EVENT_COMMIT and EVENT_GOT_FOCUS, it receives the ID of control correct even in case of duplication of controls; I've never used EVENT_xxx_CLICK events of manner (which I assume you are using since you're talking about mouse coordinates) so I can't say anything to you, but in my opinion, the system can answer back the control ID of the control in the foreground (which is the last created and second your observations). While I don't know if this is true and agree with you that an invisible control does not respond to any event, I can suggest you to add a simple SetCtrlAttribute statement just after establishing a visible of the tables to make the higher control (I seem to remember that the attribute is ATTR_ZPLANE_POSITION with a value between 0 and leave it to the foreground , but I can't check at the moment. Search detailed documentation online help).

  • set a reminder every two weeks

    I have a HP Pavilion a6500f desktop PC running Windows 7 Home Premium.  I would like to know if there is a way to set up a reminder every two weeks for filing forms.  I have a form that must be filed every two weeks and I don't get reminders to do so.

    Help would be greatly appreciated.

    This maybe... http://Lifehacker.com/5833572/the-best-calendar-app-for-Windows

    Either this... http://Windows.Microsoft.com/en-us/Windows7/looking-for-Windows-Calendar

    Either this... http://www.AddictiveTips.com/Windows-tips/install-Windows-Calendar-in-Windows-7/

  • How to set an alert/reminder in Windows Live Mail 2011

    I have recently installed Windows Live Mail 2011 after the use of Thunderbird, I've set up my calendar with all my events, but although it took a moment for a warning/reminder I've ever received none. In Thunderbird pop up reminders when the program is started. Could you please tell me how to enable the installation of the alert.

    Problems with Windows Live, ask here:

    http://www.windowslivehelp.com/

    HTH

    If I brought you joy, vote! If I answered your question, click, propose as answer! > WT

  • Button: Reminder Set in Reader is gone!

    I send my documents for the signing of player to the client.

    But suddenly the button/link for reminder setting disappeared for awhile now.

    Thank you!

    Peter

    Hi Peter,.

    I can understand your concern, we inform you that the old user interface no more offers the possibility to set the reminder after the sending of the document.

    You will have to set up recall the tab manage in the old interface, or you can switch to the new user interface, where you will be able to set the reminder on the sending page.

    If you see the switch 'to the new user interface"link on the page"send"then you can click it to switch.

    Alternatively, you can open a ticket from your Adobe account Support sign with the request to switch your account Adobe sign to the new user interface.

    Kind regards

    Nicos

  • Anyone had luck setting the reminder flag when creating tasks?

    I tried passing the value of '1' and 'True' when creating the task but no value is being accepted in SFDC when the task is created. I usually use '1' when checking for Boolean fields. Does anyone have any suggestions or experience with this?

    Thank you!

    Hi Mike,.

    Have you tried to use the "recall Date/time" where you can set the DateTime today = as opposed to recall all that is a Boolean field? For date of reminder you also have the option to add additional days for the reminder (i.e. 3 days from when the job is created). Let me know if it works for you.

    Jaclyn

  • Where can I change reminder default setting to yes?

    Whenever you create a calendar item the default reminder is off why can't change that?

    even when is to create a phone nr default name should be mobile nr and no fax?

    Settings > Mail, Contacts, calendars > < CALENDARS > > default alert time

  • Time out of sync - when you set the time to an event calendar Hotmail reminder

    When I took a while to Hotmail calendar event reminders, the time displayed is totally different, e.g. If I put time at 09:00, the time displayed on the grille is 07:00, and recall shows 07:00?

    Hi boraxkarloff,

    Thanks for posting your question in the Microsoft answers Forum. For any questions about the Windows Live Hotmail calendar, please visit the following link:

    http://windowslivehelp.com/forums.aspx?ForumID=287a488c-A111-46E1-B0E8-aa4b311392ef

Maybe you are looking for