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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T03:24:43+00:00 2026-06-13T03:24:43+00:00

I have everything working in my DBHelper class except for my fetch statement. I

  • 0

I have everything working in my DBHelper class except for my fetch statement. I get a red line under query. What am I doing wrong here?

public Cursor fetchAllItems() {
        return mDb.query(DATABASE_TABLE, new String[] { KEY_ITEM, KEY_PRIORITY,
                KEY_ROWID }, null, null);
    }
  • 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-13T03:24:44+00:00Added an answer on June 13, 2026 at 3:24 am

    Seems like you are missing to provide some extra null. See below:

    public Cursor fetchAllItems() {
       return mDb.query(DATABASE_TABLE, new String[] {KEY_ITEM, KEY_PRIORITY,
              KEY_ROWID}, null, null, null, null, null);
    }
    

    For more info, read the docs.

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

Sidebar

Related Questions

everything is working fine with my jqgrid except a small issue. i have defined
I'm trying to create an RMA form and I have everything working except the
I have everything working perfectly on my site, but for some reason, I get
I am working on a weather app, and have everything working perfectly ...Except the
I have everything working on my login except for the admin user. When I
I am working on some form coding in PHP, and I have everything working
I have wrote a custom MultipleChoiceField. I have everything working ok but when I
I am currently implementing a ListView populated with CheckedTextViews and have everything working just
people. I have slight problem with GD2 text on image. I have everything working
I'm following the Django-CMS introductory tutorial and have got everything working up to the

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.