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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T11:48:11+00:00 2026-06-04T11:48:11+00:00

I am using a local sqlite db that is saving everything properly. When I

  • 0

I am using a local sqlite db that is saving everything properly. When I open up a group in the expandableListView, all the checkboxes that have been stored in the db the check box is checked. When I edit an entry(I used an AlertDialog), close the group and then reopen the group. The checkbox is no longer checked. I checked the db and the edit was saved. If I go to another page and come back, once I click on the group, the child item I edited is once again checked. I used breakpoints in eclipse and it seems to find the data in the db, but not mark the box as checked. Any ideas?

enter image description here

This is the image of when I first click on the group(Engine)

enter image description here

Now I am using an AlertDialog to update the entry

enter image description here

Now I close the group

enter image description here

When I reopen the box by Battery is no longer checked.

Here is the code for when I open a group

public void onGroupExpand(int groupPosition)
{
    db= new InspectionRecordsTableDBAdapter(getBaseContext());
    db.open();
    int inspectionId = com.signalsetapp.inspectionchecklist.report
            .returnStringID();
    String [] child=kids[groupPosition];
    ArrayList<Color> secList = new ArrayList<Color>();
    for(int i=0; i<child.length;i++)
    {
        try {
            if (db.childFound(inspectionId, child[i]))
                secList.add(new Color(child[i], true));
            else
                secList.add(new Color(child[i], false));
        } catch (Exception e) {
            secList.add(new Color(child[i], false));
            e.printStackTrace();
        }

    }

}

and here is the update code the save into the db. This does save properly into the db

db.editRecords(
                                        primaryId,
                                        com.signalsetapp.inspectionchecklist.report
                                                .returnStringID(),
                                        parent[groupPosition],
                                        kids[groupPosition][childPosition],
                                        input.getText().toString(), status);
                                onExpand=true;
  • 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-04T11:48:13+00:00Added an answer on June 4, 2026 at 11:48 am

    You should requery() your group cursor after you save to the database and it should regenerate the list views ( or the asynchronous equivalent since requery has been deprecated).

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

Sidebar

Related Questions

I have a JEE5 application that exposes services using (local) session beans. When an
I have an application that is launched from within a service using a local
I have an iPhone (iOS) app that keeps data in a local SQLite database
Using local variables seems advisable in a partial that could be used application-wide to
I have found the example of using the local sockets . The code from
I have installed VSTFS on a machine using the local admin. Now the machine
I have a one-many relationship in my local Sqlite db. Pretty basic stuff. When
I have a relatively extensive sqlite database that I'd like to import into my
I have just learned how to use the SQLite database for local storage in
I have been using mysql in a new rails application, but now I wanted

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.