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

  • Home
  • SEARCH
  • 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 8814751
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T04:12:29+00:00 2026-06-14T04:12:29+00:00

I have a directory in my assets folder that has a large number of

  • 0

I have a directory in my assets folder that has a large number of png files in it (600+). When I make a call to “assetManger.list()” on older devices, I get a “ReferenceTable overflow (max=512)” warning, and then a “Failed adding to JNI local ref table (has 512 entries)” error, which crashes the app essentially.

On newer devices this doesn’t ever happen.

Is there a different way to list/loop over files in a directory on Android?

Thanks!

  • 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-06-14T04:12:30+00:00Added an answer on June 14, 2026 at 4:12 am

    I had to scrap this approach and do something completely different. Looks like there is simply no other way to list files in an assets folder other than using the .list method. Oh well.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Lets say that I have a directory /var/www/assets/ and within that directory I have
I have multiple audio files in the assets directory of my application. When the
So, I have an app/assets/stylesheets/ directory structure that looks something like this: |-dialogs |-mixins
I have a templates directory in my assets folder on my Rails setup which
So I have a folder in my assets/javascripts folder that runs an image slideshow
I have directory a that is symlinked somewhere. I want to copy its contents
I have directory with > 1000 .html files, and would like to check all
I have directory A with files matching directory B. Directory A may have other
Let's say I have Directory 1 and Directory 2, and each can have files
I have a directory with around 50,000 .jpg images. Let's call this directory imageDir,

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.