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

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

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

<p>Thanks,<br>
PP.</p>
