How to Create AlertDialog: Calendar: Repeat

This example will create an AlertDialog similar to the Alert Dialog that displays on the default Google Android Calendar app (Version 1.1)
This was tested on a: Samsung YP-G0, API Level 10, Version 2.6.35


How to Get to the Alert Dialog we are creating
Open Calendar (Version 1.1) (default Google Android app)
Menu-Create
Scroll down to Repeat option and select.

1. To recreate this AlertDialog, Add a Title that displays "Repeat"

2. Add a List of Items with Radio Buttons, with the CharSequence array of "One-time Event, Daily, Every weekday (Mon-Fri), Weekly (every Wednesday), Every 2 weeks (Wednesday), Monthly (every first Wed), Monthly (on day 5), Yearly (on February 5)". Add a dismiss() to the onClick.
** Actually, the CharSequence items will change depending on the day of the week and day of the month). So it will NOT be a static array.

3. Compile and run!