Write an application that has a button that raises a list dialog, listing the names of some photos. When the user selects a photo the dialog closes, and a custom dialog is raised showing the corresponding photo, with a "dismiss" button that closes this dialog. Each dialog must be hosted in its own DialogFragment. You must use a standard AlertDialog (built in the fragment's onCreateDialog method) for the list, and a custom dialog (built in the fragment's onCreateView method) for the image.
Use best practices for all aspects of the code!