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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T03:49:53+00:00 2026-06-17T03:49:53+00:00

I want to save a ListView on the cache, but I don’t know how

  • 0

I want to save a ListView on the cache, but I don’t know how to do. The List is read from SQL and arranged alphabetically. It has separators, so it has to read all entries and classify them by letter for add the spacer to the right place.
I think is faster to save the list in the cache than build it everytime. It’s right? How can I save a View in cache?

  • 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-06-17T03:49:55+00:00Added an answer on June 17, 2026 at 3:49 am

    I think is faster to save the list in the cache than build it everytime. It’s right?

    not necessarily true, assuming saving the list = saving the entire View and it’s drawing cache. anyway I don’t think there’s a trivial way doing such a thing.

    but the good news are that you really don’t need to do that!

    if you’re list does not load’s fast it’s probably because you’re doing lot’s of operation’s inside the getView() method, such as decoding Bitmaps, parsing heavy data, or something like that.

    if you want to do it in the right way – cache the images if you’ve got ones, then next time load them from the cache and do the decoding in a separate thread (by using AsyncTesk or one of other’s API components for such purposes). if you are heaving some heavy calculations or parsing you are doing – cache the result’s in the database also, and load them next time (save the data in alphabetical arranged in the database for instance)

    there is really no reason you feel any slowness in the user experience using such approach.
    views not suppose to be “saved” in the way you described, and I really believe there is no reason to do so because Android’s mechaniszem for “loading” views working just great if using it properly

    hope it helped you, and good luck.

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

Sidebar

Related Questions

I want to save a remote img-file to my server, but I don't know
I want to save and load my xml data using XmlReader. But I don't
I want to allow users to save a list of favourite items from a
I want to save a matrix to a text file, so I can read
How can i save the info from a multiple choice listview into the database?
I want to pass the integer (id) from listview (when it is clicked) to
I want to save the state of a multiple choice listview checkbox's. I have
I want to save my downloaded ListView items so that for example next time
I have a form which has a ListView and buttons to add/edit/delete items from
I want to save an image that I draw, but a failure is always

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.