Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7547561
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T09:29:05+00:00 2026-05-30T09:29:05+00:00

The ExpandableList View crashed on scrolling more then 30 records only in Nexus running

  • 0

The ExpandableList View crashed on scrolling more then 30 records only in Nexus running “ice cream sandwich Android OS 4.0). This problem only occurred in my Nexus phone. It works fine in my emulator even run it on Andriod 4.0 with more then 30 records.

I have used the android inflate feature (to render the layout from XML file) in getGroupView and getChildView() method of the BaseExpandableListAdapter class. If
If I render the getChildView() and getGroupView() function using the dynamic TextView then it works fine.

The problem only generated during the scroll and also in Android OS 4.0 (nexus) phone otherwise it works fine.

I got following error:

java.lang.OutOfMemoryError
at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:483)
at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:549)
at com.android.myexample.Custom$MyExpandableListAdapter.getChildView(Custom.java:681)
at android.widget.ExpandableListConnector.getView(ExpandableListConnector.java:450)
at android.widget.AbsListView.obtainView(AbsListView.java:2012)
at android.widget.ListView.makeAndAddView(ListView.java:1772)
at android.widget.ListView.fillUp(ListView.java:705)
at android.widget.ListView.fillGap(ListView.java:645)
at android.widget.AbsListView.trackMotionScroll(AbsListView.java:4546)
at android.widget.AbsListView$FlingRunnable.run(AbsListView.java:3813)
at android.os.Handler.handleCallback(Handler.java:605)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4340)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
at dalvik.system.NativeStart.main(Native Method)

the error occured on following code…

childImg.setImageBitmap(BitmapFactory.decodeStream(getAssets().open((childListDataBean.get(groups.get(groupPosition)).get(childPosition).imageId))));
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T09:29:06+00:00Added an answer on May 30, 2026 at 9:29 am

    Finally I fixed this bug by disabling the scrolling catch of the expandablelistview using following…………………………………………………..

    <ExpandableListView 
    android:id="@+id/android:EL1"    
    propertiesandroid:overScrollMode="never"
    android:scrollingCache="false"
    android:transcriptMode="disabled"
    android:fastScrollEnabled="false"
    android:smoothScrollbar="true"
    android:fastScrollAlwaysVisible="false"
    android:animationCache="false"
    android:persistentDrawingCache="none"
    android:alwaysDrawnWithCache="false"
    android:drawingCacheQuality="low"
    />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am playing around with this example. http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/view/ExpandableList2.html I cannot figure out how to
How to implement an ExpandableList in a ViewPager in Android ? This is a
I'm struggling with the ExpandableList View in Android. I'm using the code provided in
There are no controls in Android that provide Tree-like View. There is an ExpandableList
I need to use ExpandableList in my app. I found this example: http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/view/ExpandableList1.html which
I need an ExpandableList in my Android app. By extending ExpandableListActivity whose content view
I am implementing Expandable List view in android and i am getting the above
in my android app i am using expandable list view to display some text.These
I have created a ExpandableList View with some group items and corresponding child items.
I just noticed that some android apps have a list view with a text

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.