Sample code for using a DialogFragment