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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:47:47+00:00 2026-05-26T12:47:47+00:00

I am working on an application that would be working on the just skips

  • 0

I am working on an application that would be working on the just skips a screen if the user is logged in …. and in the meanwhile in a asynctask which returns a void… check for a upgrade for the applicaiton and if there is any it would usually open a browser and download a file… and in the main thread if applicaiton has login credentials stored already then it goes to another class/screen. which usually has a listview…. The list is populated one after the another record …. but in between sometimes i get an applicaiton crash for the applicaiton how do i tackle this… and

PS. the update to the listview is being triggered from a asyncTask that usually calls a function in the main thread to update the view,…

    11-01 12:30:27.038: WARN/dalvikvm(10067): threadid=1: thread exiting with uncaught exception (group=0x400207d8)
11-01 12:30:27.038: ERROR/AndroidRuntime(10067): FATAL EXCEPTION: main
11-01 12:30:27.038: ERROR/AndroidRuntime(10067): 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(16908298, class android.widget.ListView) with Adapter(class biz.graphight.graphight.CallSheetTab$CustomAdapter)]
11-01 12:30:27.038: ERROR/AndroidRuntime(10067):     at android.widget.ListView.layoutChildren(ListView.java:1567)
11-01 12:30:27.038: ERROR/AndroidRuntime(10067):     at android.widget.AbsListView.onLayout(AbsListView.java:1263)
11-01 12:30:27.038: ERROR/AndroidRuntime(10067):     at android.view.View.layout(View.java:7035)
11-01 12:30:27.038: ERROR/AndroidRuntime(10067):     at android.widget.RelativeLayout.onLayout(RelativeLayout.java:909)
11-01 12:30:27.038: ERROR/AndroidRuntime(10067):     at android.view.View.layout(View.java:7035)
11-01 12:30:27.038: ERROR/AndroidRuntime(10067):     at android.widget.FrameLayout.onLayout(FrameLayout.java:333)
11-01 12:30:27.038: ERROR/AndroidRuntime(10067):     at android.view.View.layout(View.java:7035)
11-01 12:30:27.038: ERROR/AndroidRuntime(10067):     at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1249)
11-01 12:30:27.038: ERROR/AndroidRuntime(10067):     at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1125)
11-01 12:30:27.038: ERROR/AndroidRuntime(10067):     at android.widget.LinearLayout.onLayout(LinearLayout.java:1042)
11-01 12:30:27.038: ERROR/AndroidRuntime(10067):     at android.view.View.layout(View.java:7035)
11-01 12:30:27.038: ERROR/AndroidRuntime(10067):     at android.widget.FrameLayout.onLayout(FrameLayout.java:333)
11-01 12:30:27.038: ERROR/AndroidRuntime(10067):     at android.view.View.layout(View.java:7035)
11-01 12:30:27.038: ERROR/AndroidRuntime(10067):     at android.view.ViewRoot.performTraversals(ViewRoot.java:1045)
11-01 12:30:27.038: ERROR/AndroidRuntime(10067):     at android.view.ViewRoot.handleMessage(ViewRoot.java:1727)
11-01 12:30:27.038: ERROR/AndroidRuntime(10067):     at android.os.Handler.dispatchMessage(Handler.java:99)
11-01 12:30:27.038: ERROR/AndroidRuntime(10067):     at android.os.Looper.loop(Looper.java:123)
11-01 12:30:27.038: ERROR/AndroidRuntime(10067):     at android.app.ActivityThread.main(ActivityThread.java:4628)
11-01 12:30:27.038: ERROR/AndroidRuntime(10067):     at java.lang.reflect.Method.invokeNative(Native Method)
11-01 12:30:27.038: ERROR/AndroidRuntime(10067):     at java.lang.reflect.Method.invoke(Method.java:521)
11-01 12:30:27.038: ERROR/AndroidRuntime(10067):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:879)
11-01 12:30:27.038: ERROR/AndroidRuntime(10067):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:637)
11-01 12:30:27.038: ERROR/AndroidRuntime(10067):     at dalvik.system.NativeStart.main(Native Method)

Any ideas… please…

  • 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-26T12:47:48+00:00Added an answer on May 26, 2026 at 12:47 pm

    Make sure you have fetched all the list items inside the doInBackground() and then updated the listview inside the onPostExecute() method.

    If you want to update the progress of fetching item and displaying item as and when it is downloaded then you have to update the listview inside the runOnUIThread()

    For example:

    /* Update UI */
    myActivity.this.runOnUiThread(new Runnable() {
       @Override
       public void run() {
            /* Do UI update for activity A */;
       }
     });
    

    Related: Question about runOnUiThread

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

Sidebar

Related Questions

I am working on an application that involves some gis stuff. There would be
I'm working on an application that will have attachments, and I would like to
I am working on a web application (ASP.NET) game that would consist of a
I am working on a .NET application that displays multiple charts. My users would
I'm working on a CLI application that deals with uploading of files, and would
I'm working on a side project that would be a simple web application to
I'm working on an application that will run on Google App Engine. I would
I am working on splitting out an existing, working application that I currently have
Im working on an application that needs to talk to a database. The application
We're working on an application that displays information through a Direct3D visualisation. A late

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.