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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T12:44:31+00:00 2026-05-16T12:44:31+00:00

my goal: create an image gallery with each image having a description, name, title,

  • 0

my goal:
create an image gallery with each image having a description, name, title, other possible misc info. as the user navigates through the gallery, image info will be displayed. i plan to store the data in an arraylist of maps ArrayList<Map<String, String>> which is filled from the database. the list will include resource ID values among image info.

problem:
I am saving drawable resource ID values in an SQLite database when the app is opened for the first time. from then on, i will be referring to the sqlite stored resource ID values, and not directly retrieving resources by this R.drawable.drawable_name fashion. can i guarantee that the resource ID values will never change after the app is installed?

  • 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-16T12:44:31+00:00Added an answer on May 16, 2026 at 12:44 pm

    The Resource IDs are generated when your application is compiled so they won’t change after the application is installed.

    However if you release a new version of your application the Resource IDs almost certainly will change. So you will need to detect an upgrade and rebuild your DB or just not access resources this way.

    If you say what problem you are solving by putting Resource IDs in the database someone may be able to give you a less brittle solution.

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

Sidebar

Related Questions

I'm new to Silverlight PivotViewer. My goal is to create an image for each
In my application the user can create multiple objects (so called drawings) each of
Possible Duplicate: Android create shortcuts on the home screen I am having one TextView
My goal is to create a texture from a webcam image. I get the
I'm trying to create a simple interactive image map where the user would be
GOAL: Create element which will display current big image and few thumbnails. When somebody
I have an android app with an background image. My goal is to create
My Goal: i want to create an horizontal list of images. when mouse is
Goal: to create a percentage column based off the values of calculated columns. Here's
Duplicate: PHP validation/regex for URL My goal is create a PHP regex for website

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.