No enclosing instance of the type is accessible in scope
<p>I have this code:</p>

<pre><code>Thread thread = new Thread(null, vieworders, "MagentoBackground");
thread.start();
m_progressDialog = ProgressDialog.show(SoftwarePassionView.this, 
    "Please wait...", "Retrieving data...", true);
</code></pre>

<p>This gives the following compilation error:</p>

<blockquote>
  <p>No enclosing Instance of the type SoftwarePassionView is accessible in scope</p>
</blockquote>

<p>How is this caused and how can I solve it?</p>
