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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T07:22:11+00:00 2026-05-30T07:22:11+00:00

I am using three tabs.when i click the tab, an activity starts that displays

  • 0

I am using three tabs.when i click the tab, an activity starts that displays multiple listview with header.For that i use listadapter
and my code seems adapter.addsection("Header String",new ArrayAdapter(this,R.layout.row,cursor,from,to); then i set list using
list.setadapter(adapter).It all works fine when i click the tab.My problem occurs, after i scroll my listview which is in another activity and
press emulator back button and clicking tab.Now when i am clicking tab,my application crashes and logcat shows the following error.

 java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receive a notification. Make sure the content of your adapter is not modified from a background thread, but only from the UI thread. [in ListView(-1, class android.widget.ListView) with Adapter(class com.t.s.SeperatedListAdapter)]

Whats the solution for this? I used adapter.notifydatasetchanged() to solve this.Eventhough i couldn’t.

  • 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-30T07:22:12+00:00Added an answer on May 30, 2026 at 7:22 am

    the reason is:
    your data is changed, when back to previous activity, the listview will auto refresh, this time system found the data changed but no notifyDataChanged invoke, so throw the error.

    so if another activity change the data, you can try: in your previous activity in method: onResume, try use notifyDataChanged to notify.

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

Sidebar

Related Questions

I have the following jquery code that allows me to use tabs, to tab
I am using this code to go to other tab one double click: ondblClickRow:
I have three tabs with a specific filter content per tab. When i click
I am using jQuery tabs but when I click a tab, the hash doesnt
I am using jquery UI tabs I have three ajax tabs like so: <div
I have three images and using the following code I have then fade in
I have three applications that talk to each other using sockets. They can all
I'm currently using a certain ItemTemplate for three repeaters that are all on the
When a TabWidget is using intents to designate the target Activity for each tab,
I am posting form data to a page that is using jQuery tabs. Because

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.