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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T15:32:40+00:00 2026-05-16T15:32:40+00:00

I am having a List View, all the list items(Text) need be to updated

  • 0

I am having a List View, all the list items(Text) need be to updated from a web service. My application can query the web service to fetch all the list items at one go or can query to fetch one list item at a time.
I having following queries
1)If i query the web service to fetch all the list items at once, it takes around 15 secs to download and display it in List. User might think the app is not responding.
2) If i query the web service for each list item, when the user scroll up or down multiple queries are sent. So i am downloading items which the user might not probably see. if the list is scrolled up.

Please suggest a good design pattern for such a scenario.

  • 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-16T15:32:41+00:00Added an answer on May 16, 2026 at 3:32 pm

    What you could do is to have the following

    • A background Android service which downloads fresh items from your webservice in given time intervals
    • A sqlite database and according ContentProvider which stores/fetches the items from the DB
    • A list activity which retrieves a cursor on the items from the registered ContentProvider you wrote

    Basically the background service will store the items in the local sqlite db through the ContentProvider you write. The activity will then retrieve a cursor to the items, again through the ContentProvider.

    This gives you the benefits that

    • it will be fast, working with cursors and standard mechanisms
    • users will still see the items also if they temporaneously loose connectivity
    • your list will automatically refresh the items, being registered as Observer on the ContentProvider
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Having : var Difference: DWORD // difference shows in milliseconds // List.Items.Count can be
I'm having a bit of trouble with knowing how I can save items from
I have a list of items in one view controller. I can select an
I am actually having a list of text boxes. I am using below code
I'm having a dropdown list in my web page. And it contains two lists.
I need to let my users enter a variable length list of items into
We are beginning the process of moving from Web Forms to MVC for all
I've set up a little n-tier web application using MVP (Model View Presenter) in
I am having that problem that I got some items on a list that
I am attempting to pull list Items from a sharepoint server(via python/suds) and am

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.