New pattern using activity as a dialog.

New pattern using activity as a dialog.