How to Set the Title in an AlertDialog.Builder

public AlertDialog.Builder setTitle (CharSequence title) was added in API level 1
Set the title displayed in an AlertDialog.
Returns: This Builder object to allow for chaining of calls to set methods


1. Create an AlertDialog with Supplied Arguments

2. After your AlertDialog.Builder is instantiated in step 1, add the following line to set the title of the AlertDialog.

myAlertDialogBuilder.setTitle("The Title. Yep, that's me.");

3. Compile and run!

Next Recommended Article: How to Set the AlertDialog.Builder Non-Cancelable

Resources:
http://developer.android.com/reference/android/app/AlertDialog.Builder.html#setTitle(java.lang.CharSequence)