java.lang.OutOfMemoryError: bitmap size exceeds VM budget while Executing Android Expandable List
<p>Based on the String in my activity iam executing   expandable list (Am retrieving all child content from the raw folder(data.txt) ) but the problem was coming while setting adapter</p>

<pre><code>   public void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);


              String s11="friendly-lovable";


            temp=s11.split(delimeter);  
            for(i =0; i &lt; temp.length ; i++)
                System.out.println(temp[0]);
            System.out.println(temp[1]);
            System.out.println(temp.length);


                DataGetting();//this method for adding items to expandable List.it is running successfully
            DataGetting1();//calling all values from  raw data.txt file for first word temp[0] .it is also executing successfully 
            childAdding();//calling all values from  raw data.txt file for first word temp[1] .it is also executing successfully 

      elasricadapter=new MyExpandableListAdapter();
      //up to this executing successfully .


      setListAdapter(elasricadapter); //from this line am getting error in log cat .
</code></pre>

<p><strong>error is:</strong></p>

<pre><code>ERROR/dalvikvm-heap(598): 355200-byte external allocation too large for this process.
 ERROR/GraphicsJNI(598): VM won't let us allocate 355200 bytes 
 ERROR/AndroidRuntime(598): FATAL EXCEPTION: main
 ERROR/AndroidRuntime(598): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.gini/com.gini.Mainactivity}: android.view.InflateException: Binary XML file line #20: Error inflating class android.widget.ExpandableListView
ERROR/AndroidRuntime(598): Caused by: android.view.InflateException: Binary XML file line #20: Error inflating class android.widget.ExpandableListView
: ERROR/AndroidRuntime(598): Caused by: java.lang.OutOfMemoryError: bitmap size exceeds VM budget
ERROR/AndroidRuntime(598):     at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
 ERROR/AndroidRuntime(598):     at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:450)
 ERROR/AndroidRuntime(598):     at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:326)
</code></pre>

<p>So please help me any one AASP</p>

<p>T&amp;R
Rajinikanth</p>
