How to Instantiate a new AlertDialog.Builder

AlertDialog.Builder was added in API Level 1

1. Declare an AlertDialog.Builder object.

2. After you declare the AlertDialog.Builder object, add this line below to instantiate it.

myAlertDialogBuilder = new AlertDialog.Builder(this);

3. Compile and run!

Next Recommended Article: How to Set a the Message in an AlertDialog.Builder

Resources:
http://developer.android.com/reference/android/app/AlertDialog.Builder.html