How to start an activity Dialog.

Posted by PP on Stack Overflow See other posts from Stack Overflow or by PP
Published on 2011-01-05T09:14:51Z Indexed on 2011/01/05 11:53 UTC
Read the original article Hit count: 122

Filed under:

I have one activity which i am using for displaying Dialogs and as a normal layout.
So what i want to do is, sometimes i want to start activity as Theme Dialog and some times using setContentView.

I can't use <activity android:theme="@android:style/Theme.Dialog"> in manifest file as it will always display activity as dialog.

So can we do it programmatic, i have also tried setTheme() method but it did't work.

Thanks,
PP.

© Stack Overflow or respective owner

Related posts about android