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)On the Month View, long-press a date, and the above Alert Dialog will display.
1. To recreate this AlertDialog, Add a Title that displays "02/05/14". ** Note, you will ultimately link this up to the day you select on the month view.
2. Add an Icon/Drawable to an AlertDialog.Builder. In API Level 10, I had to copy the ic_dialog_time.png file from the API Level 11 default icons to my drawable directory, and used "R.drawable.ic_dialog_time" to display the icon. Starting in API Level 11, you should be able to call is directly using: android.R.drawable.ic_dialog_time
3. Add an EditText named myEditText to the AlertDialog.
4. Add a Hint on an EditText, after the newly instantiated EditText in step 3 above. The hint should display "Type to create event"
5. Set an AlertDialog.Builder Positive Button Listener. Set the button text to "Save"
6. Set an AlertDialog.Builder Negative Button Listener. Set the button text to "Cancel".
7. Compile and run!