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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T12:59:52+00:00 2026-06-17T12:59:52+00:00

I am having trouble working out how to use a CursorLoader. The problem I

  • 0

I am having trouble working out how to use a CursorLoader.

The problem I am trying to solve is how to display data from my SQLite database in a ListActivity. The list rows use a custom layout so need data from 3 fields (all in the same table).

Along with a number of Stack Overflow question I also read this blog post and came to the decision that I needed to create a content provider for my database.

Having never used Content Providers before I went to the Android help on how to do this.

Point 1 states:

You don’t need a provider to use an SQLite database if the use is entirely within your own application.

So now I am stuck, I can’t seem to use a CursorLoader without a ContentProvider and I am advised against creating a ContentProvider if it is for use only within my application.

I am currently thinking that maybe the help is out of date or was not thinking of Cursor Loaders when it was written?

So do I need to just continue on and create a ContentProvider anyway or is there another way to do this? Any advice will be helpful!

  • 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-17T12:59:53+00:00Added an answer on June 17, 2026 at 12:59 pm

    After researching, I found that a ContentProvider IS needed if you are using the built in CursorLoader.

    As wsanville says, you can roll your own Loader so that it does not need a ContentProvider.

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

Sidebar

Related Questions

I'm having a lot of trouble working out how to use mod_rewrite (via htaccess)
I am having a bit of trouble working out how to use Apache Mina.
I'm having some trouble working out how to control program flow and not use
I am having trouble working out how to get a simple fade in fade
I'm having trouble working out the best way to repaint a JxTreeTable when the
I'm currently battling through some memory leaks and having some serious trouble working out
Im having trouble working grabbing a dynamically created image from this service: http://opsin.ch.cam.ac.uk/opsin/USER-STRUCTURE-TO-GENERATE.png Im
I'm having trouble figuring out why my web service is not working correctly when
I'm working on my homework and am having trouble figuring out the correct syntax
Ok so I'm working on my homework and am having trouble figuring out how

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.