Is it possible to launch an Android Activity from an AlertDialog?

Posted by YYY on Stack Overflow See other posts from Stack Overflow or by YYY
Published on 2009-11-22T01:44:39Z Indexed on 2010/04/28 23:07 UTC
Read the original article Hit count: 178

Filed under:
|
|

I am trying to create a small pop-up in my Android application to let the user choose from one of many items, ala a ListView. I am hoping to make it show up as a translucent box that overlays on the screen, as opposed to completely occupying it like Activities usually do.

One technique for doing this that I've heard is possible is to launch an Activity in an AlertDialog box. This would be perfect - it's the ideal size and has a lot of the mechanical properties I'm looking for, but I'm totally unable to find any more specifics of this technique.

Is this possible? And if not, what is the preferred way of accomplishing something like this?

© Stack Overflow or respective owner

Related posts about android

Related posts about listview