I need to create a popup window in android. My requirement is in page1 I will keep a hyperlink and when I click on that it should open a popup window. I have gone through many tutorials and tried them but none of them worked for me. Please help me on how to create a popup window in android.

Hi thanks for the sample code..it is working fine I need to place textview and buttons to that popup window. Can we create those buttons and textviews in xml layout and can we use it for that popup window?
–
hemanth kumarSep 27 '11 at 9:47

yup why not...........any widget of android you can use in popup window
–
Samir MangroliyaSep 27 '11 at 9:50

ok thank you..I have created a layout main1.xml and now how to add that to pop up window? I mean in general we give like setContentView(R.layout.main1);...similarly how to add the xml file to popup window?
–
hemanth kumarSep 27 '11 at 9:52