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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T04:07:28+00:00 2026-06-13T04:07:28+00:00

I have managed to successfully write a service that downloads data from an RSS

  • 0

I have managed to successfully write a service that downloads data from an RSS feed, parses it, and save it to a database. I also have an activity fragment which uses the cursor loader technique to retrieve all data rows and displays them on screen in a horizontal listview I scavenged off the internet.

My next mission is to modify the activity so that I can continually query for the next x number of rows every time the user scrolls to near the end of the listview and add them to the listview. Technically my data is small enough that if I showed 10 rows at startup, I could probably just query for 20 and reset the adapter – but it seems silly to have to re-query the same rows repeatedly.

So essentially my main question is: how best would I combine the currently held listview contents populated with a Cursor/CursorAdapter with the results of a fresh query using the LoaderCallbacks?

Secondly, what is the correct syntax for the limit parameter of the SQLiteQueryBuilder? I have tried many variations although I think a string of “offset, maxrows” is correct? No matter what I provide though I am always getting 0 from getCount() on my cursor.

  • 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-13T04:07:30+00:00Added an answer on June 13, 2026 at 4:07 am

    Use an ArrayList of your items inside your Adapter, when you have new items to display, just create a method to insert them into the ArrayList.

    Question about SQL you can find on that link http://developer.android.com/reference/android/database/sqlite/SQLiteQueryBuilder.html
    you have to add the limit on then method buildQuery, if that doesn’t work, please paste here your code

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

Sidebar

Related Questions

I have a WCF service that uses ODP.NET to read data from an Oracle
Using Socket.IO's WebSocket I have successfully managed a chat application from my home computer
I have managed to successfully deploy my Symfony2 application to a production web server,
I have successfully managed to get System.Speech.Synthesis to read English text in arbitrary voices
I'm building WP7 application using DropNet. I have successfully managed to log in and
Have anyone successfully managed to setup a combined Java/C++ project for Eclipse? What I
I have successfully implemented interop beftween Win32 application and managed .Net dll as described
After much fiddling, I've managed to install the right ODBC driver and have successfully
I have managed to extract the filename and the extension and passed that to
I have managed to confuse myself whether I should return E_NOTIMPL or E_NOINTERFACE from

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.