Custom progress dialog showing error
<p>I have an application in which i have to show a progress dialog without the title and message. I only need to show the progressbar animation that comes, but in the center. </p>

<p>I am trying to put the following code:</p>

<pre><code>        ProgressDialog pd = new ProgressDialog(this);
    ProgressBar pb = new ProgressBar(this);
    pd.setContentView(R.layout.customprogressdialog);
    pd.show();
</code></pre>

<p>but i am getting the error that request Feature must be called before `setContentView'. i have tried doing this also but still i am getting an error.</p>

<p>How do i achieve what i want? What is the logic behind calling requestfeature before setcontentview?</p>

<p>thank you in advance.</p>
