A sample about to use the dialog fragment in Android