Problem in creating thumbnails in android application
<p>I am working on a file manager kind of application in android in which i want to create thumbnails of the images.Thumbnails are getting created but the application often force closes giving out Out Of Memory Exception...</p>

<p>i tried out following code</p>

<pre><code>icon.setImageURI(Uri.parse(path));
                icon.setScaleType(ScaleType.FIT_XY);
                icon.setLayoutParams(new     LinearLayout.LayoutParams(30,30));
</code></pre>

<p>addView(icon);       </p>
