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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T20:53:03+00:00 2026-06-06T20:53:03+00:00

So this is the problem: The activity starts – and in onResume() does some

  • 0

So this is the problem:

The activity starts – and in onResume() does some work in a background thread which populates a listview. This is being done whilst a progress dialog is shown as per the following images:

Loading dialog whilst web services called in background

That work completes – and the progress dialog is told to .dismiss();

The dialog disappears – my listview can be seen , however the activity looses focus – and sort of dims into the background. This forces me to press home, and force close before reopening – as per this example:

The app locks after calling dismiss on the progress dialog

This problem happens EVERY single time the application runs for the first time. Runs after the app locks are always successful and the problem is never evident again! As you can see in the picture – everything has been darkened – however after force closing, reopning the view responds as I would expect with everything working as normal. There is nothing in the logcat to help me diagnose the problem – and all code appears to function correctly.

Please help!

A code dump from the Replay List activity section is here : http://pastebin.com/YG59VFPu – it will probably be tough to follow – but on first run it will do a dropbox login, which works – then it will do findAllReplays() – which also works – eventually ending up in returnres runnable which results in the dialog being dismissed – which also works – which is where the issue seems to happen…

  • 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-06T20:53:04+00:00Added an answer on June 6, 2026 at 8:53 pm

    Ok So eventually I did the following.

    I created an AsyncTask – which on pre execute created the dialog in the same way, on the end of doinbackground it closed the dialog because my onPostExecute never executes – however dismissing the dialog at the end of doinbackground works. And so that is what I am using, which has essentially solved my problem.

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

Sidebar

Related Questions

I have an Android activity which in turn starts a thread. In the thread
I have an Activity which starts an AsyncTask. This AsyncTask uses AutoCompleteTextView.showDropDown() in onPostExecute.
I have a problem with my activity. This is my onCreate: case NORMAL: game
This seems like a simple problem: I have a WF4 activity that guides the
This problem is happening for me on IE8 and Chrome which makes me think
When I press the button new activity starts. In this activity pop-ups alertdialog with
What I wanted to achieve is this: Right after the activity starts, I want
Whenever I start this activity, it always starts bottomed out--scrolled all the way to
I have a launching Activity A1 which has a start button which starts a
I have an activity, which when starting (onCreate or onStart) needs to manipulate some

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.