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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:52:00+00:00 2026-05-28T03:52:00+00:00

I have an app where a main activity generates a list, and in the

  • 0

I have an app where a main activity generates a list, and in the main activity there are many tabs that filter the list and lists a subset of the entire list in a customized ListView with checkboxes.

I have adapters in each of the tabs, and have threads running in the various onCreate()s that filter the main list and add the relevant subset into its own adapter. I’m saving the checkbox status into a SharedPreferences everytime the use checks a box.

I’m having a problem synchronizing the checkboxes among the various ListActivities. When I check a box in 1 ListActivity and switch to another tab, it doesn’t update there. Only when I exit the app and restart it does the main activity re-generate the list, read the SharedPreferences and update all the checkboxes.

How do I have this done instantaneously so that the various ListActivities of the various tabs are always synchronized?

Thanks.

  • 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-05-28T03:52:01+00:00Added an answer on May 28, 2026 at 3:52 am

    I would rather suggest you use filters on the adapters (i.e implementing your own filters that read from the checkbox selections). Having so many threads is: a) confusing for the programmer; b) a source of synchronization issues. Every ArrayAdapter implements Filterable interface and you can override the method getFilter() to return a filter of your own. In this filter you can filter out the elements to what you need. I think this post should help you: How to write a custom filter for ListView with ArrayAdapter. You will probably need to read the settings in each of the filters you implement.

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

Sidebar

Related Questions

I have a widget that supposed to call an Activity of the main app
I have an app which has a main activity that calls other activities on
In my Android app, I have a main activity that serves as an entry
i have a mvvm app that the main window is a tab control. i
I have an app that opens a non-modal form from the main form. The
I have an app that so far consists of two Activities: The Main Menu
I have an Android app with a main tab activity, and several activities within
We have App A as main app. Now we build from it App B
I have an app using a ListView as a main screen. Each row displays
I have a winforms app and the main (and only) form has several buttons.

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.