How can I pass a Context object to a thread on call
<p>I have this code fragment:</p>

<pre><code>public static class ExportDatabaseFileTask extends AsyncTask&lt;String, Void, Boolean&gt; 
{
    private final ProgressDialog dialog = new ProgressDialog(ctx);

    protected void onPreExecute();
    protected Boolean doInBackground(final String... args);
    protected void onPostExecute(final Boolean success);
}
</code></pre>

<p>I execute this thread as</p>

<pre><code>new ExportDatabaseFileTask().execute();
</code></pre>

<p>As you see I use a ctx as Context variable in the new ProgressDialog call, how do I pass a context to the call method?</p>

<p>to this one:</p>

<pre><code>new ExportDatabaseFileTask().execute();*
</code></pre>
