how to set a large image in image view
<p>I have an image view and I want to set an image on it. The size of the image is 7,707,446  bytes. Whenever I try to set the layout, the app crashes and the error is <em>out of memory error</em>.can anyone suggest me how to solve it.The xml is:-</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" &gt;

&lt;ScrollView
    android:layout_width="fill_parent"
    android:layout_height="wrap_content" 
    android:scrollbars="none"&gt;

    &lt;RelativeLayout

        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:background="@drawable/image" &gt;
    &lt;/RelativeLayout&gt;
&lt;/ScrollView&gt;
</code></pre>

<p></p>
