Android - crash during phone orientation in asynctask
<p>When orientation of phone changes during loading of images from sdcard the application crashes due to</p>

<pre><code>java.lang.RuntimeException: An error occured while executing doInBackground()
</code></pre>

<p>I am using the code from 
<a href="http://mihaifonoage.blogspot.com/2009/11/displaying-images-from-sd-card-in.html" rel="nofollow">http://mihaifonoage.blogspot.com/2009/11/displaying-images-from-sd-card-in.html</a></p>

<p>can any one Please help me</p>
