BlackBerry calendar event creation

Does anyone know how to create a calendar event using an intention? BlackBerry has been touting the availability since December, see ://devblog.blackberry.com/2012/12/android-runtime-for-blackberry-10-gold-release/ http://http. I tried the following, but it does not work.

           Intent intent = new Intent(Intent.ACTION_INSERT);
            intent.setData(Events.CONTENT_URI);
            intent.putExtra(CalendarCompatibility.EXTRA_EVENT_BEGIN_TIME, startMillis);
            intent.putExtra(CalendarCompatibility.EXTRA_EVENT_END_TIME, endMillis);
            intent.putExtra(CalendarCompatibility.EXTRA_EVENT_ALL_DAY, allDayEvent);
            mContext.startActivity(intent);

Thanks in advance,

Lionscribe

DTSTART / dtend aren't in milliseconds, it is in the format of date (apparently).  27 05-2013 FOR EXAMPLE... (YYYY-MM-DD HH).

Move forward in point 10.2 we will support 'beginTime' and 'end' as an extra long.

Tags: BlackBerry Developers

Similar Questions

  • C++ or integration of QML calendar event creation

    Hello

    I am currently trying to add calendar event creation integration in my application.

    I started using QML create here

    actions: [
            ActionItem {
                title: qsTr("Add To Calendar")
                imageSource: "asset:///IMG/ic_add_entry.png"
                ActionBar.placement: ActionBarPlacement.OnBar
    
                onTriggered: {
                    invokeCalendar.trigger("bb.action.CREATE")
                }
            }
        ]
        attachedObjects: [
            Invocation {
                id: invokeCalendar
                query {
                    //According to BlackBerry, this doesn't work so I need to find a workaround
                    mimeType: "text/calendar"
                    invokeActionId: "bb.action.CREATE"
                    invokeTargetId: "sys.pim.calendar.viewer.eventcreate"
                }
            }
        ]
    

    After the application of the above code, I discovered that nothing happened when the actionitem was activated; so, I asked him it with BlackBerry and it turns out that they couldn't make it work either.

    So, last week I tried various methods on how to integrate calendar functionality in my application. I tried the examples here and here , but could not get either to work due to several errors.

    Ideally, I would like to be able to define the: subject, body and the hour of beginning, all QML, but after searching the calendar I don't think I can.

    import bb.cascades 1.0
    
    Page {
        property alias fixtureInfo: fixtureText.text
        property alias dateInfo: dateText.text
        property alias timeInfo: timeText.text
        property alias timeZone: timeZoneText.text
        property alias stadiumInfo: stadiumText.text
        titleBar: TitleBar {
            // Localized text with the dynamic translation and locale updates support
            title: qsTr("Fixture") + Retranslate.onLocaleOrLanguageChanged
            scrollBehavior: TitleBarScrollBehavior.Sticky
        }
        ScrollView {
            id: scrollView
            scrollViewProperties {
                scrollMode: ScrollMode.Vertical
                pinchToZoomEnabled: true
            }
            Container {
                id: mainContainer
                Header {
                    title: qsTr("Teams Playing")
                }
                Container {
                    leftPadding: 20
                    rightPadding: 20
                    Label {
                        id: fixtureText
                        multiline: true
                        textStyle.base: bodyStyle.style
                    }
                }
                Divider {
                }
                Header {
                    title: qsTr("Date")
                }
                Container {
                    leftPadding: 20
                    rightPadding: 20
                    Label {
                        id: dateText
                        multiline: true
                        textStyle.base: bodyStyle.style
                    }
                }
                Divider {
                }
                Header {
                    title: qsTr("Time (GMT - 3)")
                }
                Container {
                    leftPadding: 20
                    rightPadding: 20
                    Label {
                        id: timeText
                        multiline: true
                        textStyle.base: bodyStyle.style
                    }
                }
                Divider {
                }
                Header {
                    title: qsTr("Time (My Timezone)")
                }
                Container {
                    leftPadding: 20
                    rightPadding: 20
                    Label {
                        id: timeZoneText
                        multiline: true
                        textStyle.base: bodyStyle.style
                    }
                }
                Divider {
                }
                Header {
                    title: qsTr("Stadium")
                }
                Container {
                    leftPadding: 20
                    rightPadding: 20
                    Label {
                        id: stadiumText
                        multiline: true
                        textStyle.base: bodyStyle.style
                    }
                }
                Divider {
                }
                attachedObjects: [
                    TextStyleDefinition {
                        id: bodyStyle
                        base: SystemDefaults.TextStyles.BodyText
                    }
                ]
            }
        }
        actions: [
            ActionItem {
                title: qsTr("Add To Calendar")
                imageSource: "asset:///IMG/ic_add_entry.png"
                ActionBar.placement: ActionBarPlacement.OnBar
    
                onTriggered: {
                    invokeCalendar.trigger("bb.action.CREATE")
                }
            },
            ActionItem {
                title: qsTr("Share")
                imageSource: "asset:///IMG/ic_share.png"
                ActionBar.placement: ActionBarPlacement.OnBar
    
                onTriggered: {
                    shareAction.trigger("bb.action.SHARE")
                }
            },
            ActionItem {
                title: qsTr("Search For Live Score")
                imageSource: "asset:///IMG/ic_search.png"
                ActionBar.placement: ActionBarPlacement.InOverflow
    
                onTriggered: {
                    var searchpage = goToSearch.createObject();
                    navigationPane1.push(searchpage);
                    searchpage.searchText("live score for " + fixtureText.text)
                }
            }
        ]
        attachedObjects: [
            ComponentDefinition {
                id: goToSearch
                source: "webView.qml"
            },
            Invocation {
                id: invokeCalendar
                query {
                    mimeType: "text/calendar"
                    invokeActionId: "bb.action.CREATE"
                    invokeTargetId: "sys.pim.calendar.viewer.eventcreate"
                }
            },
            Invocation {
                id: shareAction
                query.mimeType: "text/plain"
                query.invokeActionId: "bb.action.SHARE"
                query.data: fixtureText.text + qsTr(" at ") + timeText.text + qsTr(", ") + timeZoneText.text + qsTr(" in my time zone,") + qsTr(" on ") + dateText.text + qsTr(" in the ") + stadiumText.text + " via @TundraCore #WorldCup2014"
                query.onQueryChanged: {
                    query.updateQuery()
                }
            }
        ]
    }
    

    As you can see I'm using aliases, in the above code and so I want to put the following text:

    -Set the title of the event: "World Cup 2014:"+ fixtureText.text ".
    -Define the body as: fixtureText.text + 'to' + timeZoneText.text + 'on' + dateText.text + "in the" + stadiumText.text
    -Set the release date: dateText.text
    -Set as start time: timeZoneText.text

    Therefore, I was wondering if someone would be able to show me how to do this in QML or C++?

    Thanks in advance

    With the help of two other developers, I managed to get this working through QML my hpp file settings

  • The Q10 Preset blackBerry calendar events

    Hello. Is it possible to permanently delete the predefined calendar events? My Q10 came with daily Stat holidays already in the calendar. I want to delete those that are not relevant for me. I don't like it when day Islander is for PEI or day of heritage for the Yukon et al. I remove and then they show again 30 seconds later. It's pretty boring.

    I doubt that the period of holidays and significant events were originally in the BlackBerry calendar. Many years and many BlackBerry devices I never saw in the calendar in stock. My bet is, either they were added when sync you would with something, or an application put them there.

  • Passport never blackBerry calendar events appear, but are still there, just hidden soomehow

    A new problem has arisen and that's weird.
    Calendar events I add never appear suddenly.
    Before, I would get a green dot on a date indicating a meeting or something has been fixed. No more.
    If I put an event and save it, no green dot.
    If I go on the events button immediately after recording one, it says that my schedule is free.
    If I do a search for the event, I just saved, nothing comes up.
    But:
    I always get the notice on the screen to remind me of the event (it's usually 24 hours before) and my alarm disappears an hour beforehand everything as it has been saved.
    It is a problem.
    I can't check the events that I saved and if necessary change them or know they are coming, because nothing is displayed. It also means that will not be aware if I put an event that is in conflict with one another. I know for sure because when the problem I put the appointment even six times and am not once informed that it conflicted with a recorded event (which has been moved several times before) ultimately I guessed (correctly) was actually saved, appearing simply do not. But this must be corrected.
    It's new. He has not done this a few weeks ago, and I did not anything unusual with my blackberry, unless he updated the operating system w/o my knowledge and it has messed up. I can't be the only one to go through this, but what suits him!
    Crazy problem

    Your default value has been changed. Go to settings from the home screen, and then go to accounts. On the bottom bar is an icon with a check mark between two boxes. Tap on that and go to the drop-down list where it is said calendar. Change the setting of your e-mail account.

  • Q10 guest - zone problem blackBerry calendar event

    Hi all!

    I've just switched back to BlackBerry, iPhone and love everything about it so far except for one thing: calls on the calendar time zone problems.

    My work using an OS X hosted the CalDAV server, and I was able to sync my existing calendars to it without problem.

    My timezone: Eastern

    My colleagues timezone: Central

    Question: I received an invitation from a colleague, and on my Mac, it shows 13:00 Eastern, as it should.  The invitation has been sent to 12:00 Central.  This same invitation appears on my BlackBerry at 07:00 Eastern.

    Completed test:

    I added an invitation on my BlackBerry at 06:00 Eastern as a test and it appeared on my Mac at the right time without problem.

    I added an event on another day of my Mac, and it synced to my BlackBerry without problem.

    So it seems that my problem is that when the receiver event invites others, possibly in different time zones.

    My Mac and BlackBerry are both set to the Eastern time.

    My co-workers Mac and iPhone are set to Central time.

    I looked at all the parameters BB and can't find anything that would explain this strange behavior.

    I tried a battery pull - same results.

    I'm on the latest OS available for a Q10: 10.2.1.2976

    Can anyone help with this?  I'd hate to go back to iOS for a question like this, however, a precise and reliable timetable is essential for my work.

    Another update:

    Only, the lady came back on the line and told me that it is a known problem that is "actively investigated."  When asked how long their ticket has been opened on this subject, I was told since September of 2013...

    It seems that there is no resolution for this problem.  I will go back to iOS

  • Multi day Passport BlackBerry calendar events: Bug or feature?

    I have a three day event.

    The month view shows the event only on the day of departure, that the other two days are not marked.

    In comparison my 10.2.1 device (Z10, Z30): all days are marked by the appointment. And also in the color of the calendar, on 10.3 all appointments are gray.

    It's supposed to be a new feature, or is it just a bug?

    Hi @simon_hain

    I was able to reproduce this problem, and it has connected with our development team. Updates, to bookmark this KB.

    KB36389 appointments that span several days are not properly presented in the monthly view

    Thank you!

  • BlackBerry Smartphones how warns we lost since the former events (BlackBerry calendar and) Outlook calendar

    When syncing BlackBerry with Outlook, I find in the BlackBerry calendar events that are more than 3 months are automatically deleted (and I'm not aware of a setting that causes this) and it syncs with Outlook which the past events are also deleted. I need especially old events on the BlackBerry, but I don't want to keep the old events on Outlook, so I can refer to them.

    How can I prevent the events in Outlook are removed when they say 3 months or more in the past? (Please provide the detailed procedure)

    Are there side effects of doing this might affect me?

    I have looked in the Blackberry desktop Manager, but have not found a way to do this.

    Yes, try the following link:http://www.wallaceit.co.uk/mobile-phones---data-devices/stop-your-blackberry-deleting-old-calendar-i...

    This will allow you to put your Blackberry to keep receipts forever. Click on the calendar on the Blackberry icon and go to menu and go from there.  The link I gave you previously should describe the way to find out where are the old entries, or choose outlook to keep in view at all times.

  • Smartphones blackBerry how to remove all calendar events?

    I am a new BB user (changed of the years as a Palm bigot) who bought just a "BOLD". I do not use a BES to sync but use the BB Desktop Mgr for calendar and contacts.

    After my first couple of USB sync, I have duplicate calendar on my device that must be deleted. My outlook calendar is "free duplication", but the unit needs to be cleaned up clean of the calendar events, so I can start again.

    How can I delete all events in the calendar of my "BOLD" device so I can sync it with a clean Outlook start?

    Thank you.

    Visit this link to delete calendar entries

    http://www.BlackBerry.com/BTSC/search.do?cmd=displayKC&docType=kc&externalId=KB04950&sliceId=SAL_Pub...

  • BlackBerry Smartphones keeping old calendar events in Outlook and Storm2

    Is there a way to keep all appointments, regardless of age on Outlook and my Storm2?

    Just got my Storm2.  Downloaded/installed the latest office software.  Allowed to update the Storm2 OS via USB, the desktop software.  Desktop software configured to synchronize my Outlook 2003 (no Exchange involved, only local server).  I tried all the dates on the calendar (including former appointments, etc) to be both Outlook and the Storm2. On the first synchronization, all the calendar events appeared to transfer fine from Outlook to the Storm2.  However, on subsequent synchronizations, the desktop software apparently wants to delete all appointments of old (about 2 200) in Outlook.

    Here are the details:

    Phone: Storm2 9550
    OS phone: V 5.0.0.71 3

    BlackBerry Desktop Software: 6.0.0.40 (Bundle 42)
    BlackBerry Device Manager: 6.0.0.11
    BBDevMgr: 4.1.0.14
    RIM USB driver: 4.1.0.4
    RIM USB Serial Driver: 2.2.0.3
    Application loader: 6.0.0.36

    PC:
    Windows XP Pro SP3
    MS Outlook: 2003 SP3

    P.S. I'm new in these here.  Should I post this question in another forum?

    For good measure, I did a hard reset on the Storm2 after changing the option «forever» you described. Then I did a synchronization one-way calendar to recover older events calendar on the Storm2.  When I've reconfigured the synchronization two-way calendar, I also did "Remove alarm for items being passed" has not been checked.   So far so good

    Thank you very much.

  • Passport blackBerry calendar - reminder

    Is it possible to set 3 reminders for an event in my calendar?

    I want to be called 2 days before the event, 1 day before the event and finally 2-3 hours before the equivalents.

    is this possible?

    There is just a reminder by calendar with the BlackBerry calendar entry. There may be options for your needs with a third-party app, but I don't know of anyway. Another option is to create additional entries for the same appointment or event, or just an entry that repeats. For example, an entry 2 days before the event, another entry 1 day before and then the third day of the event by an appropriate reminder. The other alternative is an entry 2 days (or whatevery) before which repeats itself each day and ends on the day of the event.

    In addition, depending on what you want to do exactly, you can use tasks in the application do not forget to better meet your needs.

    And then there is the possibility of a third-party application.

  • Create a new calendar event

    Hello

    I am creating the data calendar events in ICS files and let me know how I can configure the Organizer? I was able to add all the participants, but I can't find the option to add the Organizer...

    I also wonder if the BlackBerry supports event Outlook categories?

    Hello

    I got a confirmation from RIM yesterday that it is not possible for the third set the organizer of a calendar event.

    I just wanted you to know.

  • access the blackberry calendar

    Hi friends,

    How can I access blackberry calendar?

    I access to blackberry Messages throgh

    net.rim.blackberry.api.mail.Message
    

    How can I access blackberry calendar?

    Thanks in advance

    public parseCalendarEvent (pimEvent event) survey IncompleteEventException, {PIMException}
    Super();
     
    PIMList pimList = PIM.getInstance () .openPIMList (PIM. EVENT_LIST, PIM. READ_ONLY);
     
    try {}
    try {}
    m_uid = pimEvent.getString (Event.UID, 0);
    }
    catch (Exception e) {}
    throw new IncompleteEventException();
    }
     
    try {}
    If (pimList.isSupportedField (Event.SUMMARY) & (pimEvent.countValues (Event.SUMMARY) > 0)) {}
    m_summary = pimEvent.getString (Event.SUMMARY, 0);
    }
    }
    catch (Exception e) {}
    }
     
    try {}
    If (pimList.isSupportedField (Event.NOTE) & (pimEvent.countValues (Event.NOTE) > 0)) {}
    m_description = pimEvent.getString (Event.NOTE, 0);
    }
    }
    catch (Exception e) {}
    }
       
    BlackBerryEvent film - all-day event
    Boolean allDayEvent = false;
    If (pimEvent instanceof BlackBerryEvent) {}
    If (pimList.isSupportedField (BlackBerryEvent.ALLDAY) & (pimEvent.countValues (BlackBerryEvent.ALLDAY) > 0)) {}
    allDayEvent = pimEvent.getBoolean (BlackBerryEvent.ALLDAY, 0);
    }
    }
       
    If (allDayEvent) {}
    try {}
    long startDate = pimEvent.getDate (Event.START, 0);
    m_startDate is startDate - TimeZone.getDefault () .getRawOffset ();.
    m_endDate = m_startDate + 86400000;
    }
    catch (Exception e) {}
    throw new IncompleteEventException();
    }
    }
    else {}
    try {}
    m_startDate = pimEvent.getDate (Event.START, 0);
    }
    catch (Exception e) {}
    throw new IncompleteEventException();
    }
     
    try {}
    m_endDate = pimEvent.getDate (Event.END, 0);
    }
    catch (Exception e) {}
    throw new IncompleteEventException();
    }
    }
       
    try {}
    If (pimList.isSupportedField (Event.LOCATION) & (pimEvent.countValues (Event.LOCATION) > 0)) {}
    m_Location = pimEvent.getString (Event.LOCATION, 0);
    }
    }
    catch (Exception e) {}
    }
     
    try {}
    If (pimEvent instanceof BlackBerryEvent) {}
    If (pimList.isSupportedField (BlackBerryEvent.ATTENDEES)) {}
    for (int i = 0; i)< pimevent.countvalues(="" blackberryevent.attendees="" );="" i++="" )="">
    m_attendees. AddElement (pimEvent.getString (BlackBerryEvent.ATTENDEES, i));
    }
    }
    }
    }
    catch (Exception e) {}
    }
    }
    {Finally
    try {}
    pimList.close ();
    }
    catch (Exception e) {}
    }
    }

  • Calendar events shows is not in the center of Notifications

    I have an iPhone running on iOS 9.3.5 5s

    I have problems with my notification Center, events calendar, weather summary, view today does not show in the notification Center.

    PS All widgets are activated from the notification Center.

    Hello goodguy17,

    Thank you for using communities of Apple Support. It is my understanding from your calendar events and other widgets are not appearing in the Notification Center on your iPhone. The Notification Center keeps me abreast of all my appointments and important updates, I can understand your concern. I want to help get this resolved with you.

    First of all, I recommend you restart your iPhone. A simple reboot can solve many unexpected behaviours. Follow the steps below to restart if necessary.

    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.

    Restart your iPhone, iPad or iPod touch

    If the problem persists, reset all the settings would be the next option. It takes all the settings back to default, including: Wi - Fi networks and passwords, alerts, notifications, brightness, wallpaper and sounds. Even if no content is lost with this step, it is always a good idea to back up your content first. If you need help with the backup using the link below.

    The backup of your iPhone, iPad and iPod touch

    Once you have argued successfully until you can reset all settings by going to settings > general > reset > reset all settings.

    Have a great day!

  • My iPhone calendar events do not show on macbook

    My iPhone calendar events occur on my MacbookPro. The iPhone is a new one for me - 6 s.

    Any help is appreciated.

    If you want to synchronize the calendar on your Mac and iPhone events, which requires iCloud (Wi - Fi) or iTunes (USB).

    iCloud instructions here > http://www.apple.com/icloud/setup/

    instructions for iTunes here > Calendar: sync calendars between devices

  • Lost all calendar events

    Dummy here. I disconnected (e) an "inactive account" in iCloud and all my calendar events disappeared. I tried to restore the calendar via Time Machine, but received a message that I couldn't do it because it was required by the system or something like. Same result in an attempt to restore a while before I made the deletion. I did a search on similar issues, but what I'm watching on the screen coincide with the answer of the forum.

    I also lost all my contacts, but they reappeared in somehow magically, but not all dates calendar.

    In addition to a strong slap on the side of the head, any suggestions on how I can fix this?

    Bucky,

    Check out these two items for a possible solution:
    1 iCloud: restore your contacts, calendars and reminders, or bookmarks

    2 If you have accidentally deleted your calendars, reminders, or contacts to iCloud - Apple Support

Maybe you are looking for