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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:35:30+00:00 2026-05-26T05:35:30+00:00

I have a sqlite database that has over 2000 low res thumbnails of pictures.

  • 0

I have a sqlite database that has over 2000 low res thumbnails of
pictures. The database itself is over 100MB in size. The project
requires me to have the photos residing in the database instead of the
file path.

This is what I would like to do and need help with as this
is my first time dealing with images. I have a horizontal GalleryView
in my App UI that I want to populate with images pulled from this
database dynamically. I don’t mind if these images are lazy loaded on
to the gallery view in the background. I read somewhere that I will
have to use an ImageAdapter to bind the images to the UI element
dynamically. I need in understanding how this is done. I have never
used the BaseAdapter class.

Thanks,
AB

  • 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-26T05:35:31+00:00Added an answer on May 26, 2026 at 5:35 am

    You will indeed be subclassing an Adapter to pull the images out of your db turn them into Bitmaps or Drawables then set your picture to an ImageView and add it to your Gallery.

    I would suggest you switch away from using a Gallery right now before you get going though. Gallery has a bug where it will not allow your Adapter to recycle views properly. This means while the user is scrolling the gallery every time a new Image enters the screen a new ImageView object is getting created. This is wasteful and will lead to noticeable performance drop while your gallery is being scrolled due to garbage collection constantly running.

    To get started with your adapter check out SimpleCursorAdapter and search around online for examples of how to extend SimpleCursorAdapter. Inside your getView method you’ll pull your image out of the db and set it into a view to be shown to the user.

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

Sidebar

Related Questions

I have a Sqlite database that has a table consisting of company information (Companies)
I have an sqlite database that has a blob column with blob data. I
Background I have an Android project that has a database with two tables: tbl_question
In my app I have SQLite database that has one table with date rows
I have a SQLite database that has pretty intensive repeated reads and occasional writes.
I have a SQLite database that has a time field set as a text
I have an app which has an SQLite database that is stored in ./Library/Caches
I have a SQLite database that contains a huge set of log messages. I
I have a component that i want to store to an SQLite database. public
I have an app that must get data from the Sqlite database in order

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.