How to hide blank/black activity window behind the Dialog

I have one Activity which displayed some Dialog boxes and Progress bars.
This activity does not have call to setContentView as this Activity does not have Screen Layout. It has been just used for displaying Dialogs and progress bar dialogs.

Now what happens is that Activity Displays Dialog box along with the Blank Activity Window on back of the Dialog, So i want to hide make it transparent so it will look like we are just displaying Dialog.

Thank, PP.


Use this attribute for your activity

<activity android:theme="@android:style/Theme.Translucent">

This will make activity background transparent. In your activity tag(in manifest) which is displaying progressbar or dialog put this above attribute android:theme="@android:style/Theme.Translucent This will work…