Did you look at using the **showDialog()** API, or even better, **DialogFragment**?