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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T05:44:46+00:00 2026-06-10T05:44:46+00:00

I am using an expandable list view . When i click on a parent

  • 0

I am using an expandable list view . When i click on a parent , it displays the child information properly . However , when I scroll downwards with my child still collapsed , I get an error -bad request for field slot 0,-1 numrows=3 numcolumns=3 . When I scroll up , there is no problem .Or if my child is not collapsed , then there is no problem in scrolling anywhere.

MY code for simplecursortree adapter :-

        Cursor cursor = db.rawQuery("SELECT _id,words from keywords", null);
        startManagingCursor(cursor);
                SimpleCursorTreeAdapter mAdapter = new SimpleCursorTreeAdapter(TestActivity.this,
                cursor, R.layout.exprow,
                new String[] { DbHandler.D_WORDS}, new int[] { R.id.textText},
      R.layout.row,new String[] {DbHandler.C_STATUS,DbHandler.C_CREATED_AT,DbHandler.C_USER}, new int[] {R.id.textStatus,R.id.textCreatedAt,R.id.textUser}) {

            @Override
            protected Cursor getChildrenCursor(Cursor groupCursor) {
                 dbhandler=new DbHandler(TestActivity.this);
                 SQLiteDatabase db = dbhandler.getReadableDatabase();
                    String get=groupCursor.getString(1);
                    Log.d("Post Operation", "Getting cursor for keyword = " +get);
                    String sql="SELECT status,created_at,user from tweets where words='"+get+"'" ;

                    Cursor cursor = db.rawQuery(sql, null);
                    startManagingCursor(cursor);
                    Log.d("TestActivity","Cursor got count"+cursor.getCount());

                   db.close();
                return 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-10T05:44:48+00:00Added an answer on June 10, 2026 at 5:44 am

    I solved this by adding an _id in my sql query inside getChildrenCursor . I thought the _id just has to be present in the table .

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

Sidebar

Related Questions

I'm using Expandable List view. In my app both the group and child have
i want to create vertical expandable list view using java script.like here click .If
I am using expandable list view with checkboxex. I need to check all child
I'm using an expandable list view to display folders and files that are in
in my android app i am using expandable list view to display some text.These
Hi I have created Expandible list view using BaseExpandableListAdapter. If i scroll the list
I have seen in some places that while using Expandable List View we register
I have an expandable list view I am using in one xml file which
I'm using a Expandable list adapter to put view which has 3 groups and
I can't find instructions to add a child item to my expandable list anywhere.

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.