Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Android™ Development

Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.

Posts: 140
Registered: ‎04-19-2013
My Device: BlackBerry Z10

Re: Calendar API - Insert is Weird and Cannot Query Calendar

The format for dtstart / dtend is probably key, are you sure you've got that data formatted correctly?


Could you perhaps post some sample code?

Posts: 22
Registered: ‎02-26-2013
My Device: Z10
My Carrier: None

Re: Calendar API - Insert is Weird and Cannot Query Calendar



Got the calendar to show up, the formatting was the trickiest part to find with the right field name,

Start/End date format needs to be of the form yyyy-MM-dd HH:mm:ss


So this code brings up the calendar with the right start time and date



SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.getDefault());

Intent calendarIntent = new Intent("android.intent.action.EDIT");


calendarIntent.putExtra("dtstart", sdf.format(calStart.getTimeInMillis()))
.putExtra("dtend", sdf.format(calEnd.getTimeInMillis()))
.putExtra("title", calEvent.get("SUMMARY"))
.putExtra("description", calEvent.get("DESCRIPTION"))
.putExtra("start", calEvent.get("RRULE"));



This is great progress! Now if we could only get the RRULE field to work, I think we could call it success and a great day for everyone who is/will be in my shoes and your shoes.


Any hints for getting RRULE to work?


  • The dilemma is that the event being booked lasts, say, for 2 months, and every week on Friday at 10pm people can attend the event.
  • If someone was to book this event after the 1st month, with the current limitations that I'm facing, the event will be shown to start in the previous month because there is no recurrence RRULE to the event to repeat the date for the current month.


As you can see this is quite the dilemma. Any workarounds you can suggest?