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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T20:49:40+00:00 2026-06-13T20:49:40+00:00

String[] mProjection = { // UserDictionary.Words._ID, // Contract class constant for the _ID column

  • 0
   String[] mProjection =
   {
    // UserDictionary.Words._ID,    // Contract class constant for the _ID column name
   UserDictionary.Words.WORD,   // Contract class constant for the word column name
   UserDictionary.Words.LOCALE  // Contract class constant for the locale column name
  };

   searchvalue = (EditText) findViewById(R.id.editText);

    mSelectionClause = UserDictionary.Words.WORD + " LIKE ?";
    mSelectionArgs[0] = searchvalue.getText().toString();

   Cursor mCursor = getContentResolver().query(
   UserDictionary.Words.CONTENT_URI,  
   mProjection,                       
   mSelectionClause,                  
   mSelectionArgs,                    
   null);

Any ideas why I am getting bind or column index out of range on this query?

  • 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-13T20:49:41+00:00Added an answer on June 13, 2026 at 8:49 pm

    The error bind or column index out of range was due to the fact that I was not including Primary key field (UserDictionary.Words._ID) in the projection field.

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

Sidebar

Related Questions

I use below code to get photo's path and id: String[] projection = {MediaStore.Images.Media._ID,
string name = bob; object obj = name; obj = joe; Console.WriteLine(name); I'm a
I use below method to view image in gridview. Reference String[] projection = {MediaStore.Images.Thumbnails._ID};
I have the following code; String[] projection = { MediaStore.Video.VideoColumns._ID, MediaStore.Video.VideoColumns.DATA }; //String selection
my code is as following String projection[] = new String[]{ ContactsContract.Contacts._ID, ContactsContract.Contacts.DISPLAY_NAME }; Cursor
given an example SimpleCursorAdapter implementation code: String[] projection = new String[] {Browser.BookmarkColumns._ID, Browser.BookmarkColumns.TITLE, Browser.BookmarkColumns.URL};
I use below code to show photo in GridView: String[] projection = {MediaStore.Images.Media._ID, MediaStore.Images.Media.DATA,
I have following code in pre-Android2.0 API: String[] PROJECTION = new String[] { Contacts.People._ID,
private Cursor getContacts() { // Run query Uri uri = ContactsContract.Contacts.CONTENT_URI; String[] projection =
string a = sea; string b = SEA if (a == b)... How could

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.