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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T17:54:00+00:00 2026-06-08T17:54:00+00:00

I have a working implementation of a ContentProvider loading data via CursorLoader into a

  • 0

I have a working implementation of a ContentProvider loading data via CursorLoader into a listview (with custom CursorAdapter). It’s a list of events. Every item has a title, place, etc. but also a set of offers which should be displayed in a LinearLayout inside every list row.

The problem is that a Cursor row can only contain flat data, not a set of other items.

My only idea is to make a joined query on database like this:

SELECT * FROM events, offers WHERE events.id=offers.event_id;

But then I’ll have as much rows as there are offers (and the list should display events, so it’s not good) and the list would be overpopulated. Maybe there is a possibility to tell CursorAdapter to only populate list rows with unique events.id but somehow retrieve the offers data as well?

The best solution would be to put a Cursor or custom Object containing offers inside the events Cursor. But afaik it’s not possible.

  • 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-08T17:54:01+00:00Added an answer on June 8, 2026 at 5:54 pm

    Unfortunately one CursorLoader can only load one Cursor. So the solution was to write a custom AsyncTaskLoader which returned two Cursors.

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

Sidebar

Related Questions

I've been working on importing XML into an iPad Core Data application. I have
I have a working ChangeTrackingList implementation which does its job just fine, but I'd
So I'm working to improve an existing implementation. I have a number of polymorphic
I'm currently working on Mangler's Android implementation. I have a java class that looks
I'am currently working on GWTs Activity-Place implementation. Now I have found problem with the
I have been working on an ECMAScript implementation and I am currently working on
I have a working AutoCompleteExtender implementation. What I want, is that if I have
I have a working SSL server implementation, but the problem is that the server
Been trying to find a working implementation of a WPF listview (or listbox) where
Does anyone have a working and optimal implementation of the Galerkin projection method in

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.