ProgressDialog not responding
<p>Hello guys why when i add ProgressDialog it become not responding</p>

<pre><code>            ProgressDialog dialog = ProgressDialog.show(AppsInspectorActivity.this, "", 
                    "Scanning package " + pkgInfo.packageName, true);
            dialog.setCancelable(true);
            dialog.show();
</code></pre>

<p>at above <code>Log.v(TAG, "Scanning package " + pkgInfo.packageName);</code></p>

<pre><code>private List&lt;PackageInfo&gt; getAdPackages() {
</code></pre>

<p>[HEAVY STUFF]</p>

<pre><code>    return new ArrayList&lt;PackageInfo&gt;(adPackages);
}
</code></pre>

<p>}</p>
