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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T18:15:08+00:00 2026-05-21T18:15:08+00:00

I apologize in advance if this question is too broad or too it-depends. Basically,

  • 0

I apologize in advance if this question is too broad or too “it-depends.”

Basically, I need to make a decision about how to store and access data in my app. The app works very much like flashcards; the “front” of the card presents the topic and the “back” presents the details/explanation. At first it seemed like a SQLite database would work best for this type of structure (and maybe it really is, I just don’t know) because the data is static and this model works well with the rows and columns structure of a db. (btw, as of now, I’m using openCSV to parse the csv files containing my cards. Thought it was easier than SQLite…)

My issue (finally) is that I want to be able to display images for some of the data items. Some cards, for example, should display a corresponding image. Is this something that I can do with a SQLite db? Like, have one column store the path to an image….? Maybe what I’m asking is really basic, but I just haven’t seen too many examples to really have a good sense of the design options out there.

I might also be confused about how I would dynamically change my views based on whether there is an image available. Maybe that’s just an issue of dynamically creating an imageview whose source is the file that the db points to…

In summary, I’d really appreciate some guidance on how I can fetch and display text data along with images when they’re available, whether it be in SQLite or some other way.

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-05-21T18:15:09+00:00Added an answer on May 21, 2026 at 6:15 pm

    If all this data is being shipped with the app, I’d suggest just keeping everything stored as resources. You can have string arrays for the topics and details, and you can store images either as drawable resources or as assets. In the latter case, you could store the asset names as another string array resource. (In the former case, you’d have to build a map from each card to the resource identifier. This is, unfortunately, one area in which the Android resources architecture doesn’t shine.)

    If you want to use SQLite, it has BLOB fields in which you could store the images themselves, or int fields in which you could store image resource identifiers. Take a look at the searchable dictionary sample project for how to build an SQLite data base from resource data.

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

Sidebar

Related Questions

I apologize in advanced if this question is too broad. In fact it's 4
I apologize in advance as this question is quite vague. About a month ago,
I apologize in advance if this question seems remedial. Which would be considered more
Let me apologize in advance for the simplicity of this question (I heard Jeff's
I apologize if this question is too basic, but I just can't figure out
I'm new to SSRS, so I apologize if this question is too simple: I
This is my first time here so I apologize in advance if this question
I apologize in advance if this is really a Super User question... I just
I apologize in advance for asking this question, I know similar questions have already
I'd like to apologize in advance, because this is not a very good question.

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.