How to Create Alert Dialog: Calendar: Vibrate

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-Settings
Select Vibrate option, and the above Alert Dialog displays.

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

2. Add a List of Items with Radio Buttons, with the CharSequence array of "Always, Only in Silent mode, Never". Add a dismiss() to the onClick.

3. Add an AlertDialog.Builder Negative Button Listener with the text set to "Cancel"

4. Compile and run!