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 4558198
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T17:36:56+00:00 2026-05-21T17:36:56+00:00

I have about 650 small icons I need to reference in my android project.

  • 0

I have about 650 small icons I need to reference in my android project. The total size of all of them is about 70 k/b’s, so size isn’t an issue.

The app I’m building simply lists all 650 of these icons along with a label for each. The labels are stored in a String array, and each of these icons has the labels index in it’s file name for easy reference (so index 0 in the labels array co-ordinates with file p0.png in the drawable folder of my android project).

This works fine, but the problem is that I can reference these images without using the R.class. The R class sets up the variables and everything, but it’s messy as hell to reference the the images through the R class when I can just loop through them and use their files names as indexes.

Is there a way to access these images without using the R.class? I’d also like to avoid using the SD card for this, as these images will be quite annoying to see in the SD card.

Suggestions?

  • 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-21T17:36:56+00:00Added an answer on May 21, 2026 at 5:36 pm

    Put the icons into the /assets directory and use AssetManager to access them. Resources in the assets directory won’t be indexed in the R file.

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

Sidebar

Related Questions

I have about 10million values that I need to put in some type of
At my house I have about 10 computers all different processors and speeds (all
Greetings. 1 - Let's say I have about 500 folders of variable size with
I currently have about 650,000 items in memcached (430MB memory used) and the number
I have about 30 picture boxes in my form. all pictures are the same.
I have about 20,000 records (coming from an SQLite db) that I need to
I have about 50 html documents and I need to replace the text between
I have about 5000 records in a table in SQL Server 2008 I need
I have about 60 images uploaded to my site. I'd like to resize them
We have about 7-8 tables in our Android application each having about 8 columns

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.