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 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 10 icons, all arranged in the shape of a circle with
I have about 7 textarea s on a web page, all of them are
I have about 650 gif files with sprites, but I can't display them animated
I currently have about 650,000 items in memcached (430MB memory used) and the number
I have about 50 RadioButtonList on a form with a checkbox next to them.
I have about 70k nodes, and 250k edges, and the graph isn't necessarily connected.
I have about 100 jobs on my hudson CI, possible to mass delete them
I have about 150 QGraphicsLineItems in a QGraphicsScene, and I want to rotate them,
I have about 90 images in my app what size i should pick for
I have about 2200 different files in a few different folders, and I need

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.