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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T18:25:49+00:00 2026-05-30T18:25:49+00:00

Edit: this is NOT the same as ProgressDialog doesn't show just flashes I make

  • 0

Edit: this is NOT the same as ProgressDialog doesn't show just flashes

I make sure to used AsyncTasks for network communications and file operations, showing an indeterminate, cancelable ProgressDialog until the task is complete, as I feel I properly should.

In some situations–slow mobile Internet connection, an older underpowered device–this may take some seconds. But the exact same task may complete very rapidly in other situations or on other devices, causing the ProgressDialog to show only for a fraction of an instant, basically flickering on the screen.

What is best practice here? I can think of several options:

  1. Leave it as is, knowing that some users will have that flickering effect.
  2. Force the ProgressDialog to stay visible for a minimum length of time (half a second, a second) before it disappears, even if the task has already completed–but I hate the idea of introducing artificial delays.
  3. Time the task and only show the ProgressDialog if the task takes more than a minimum set amount of time, such as half a second. The problem is this is not really a solution; if the task takes under that length of time, great; if the task takes a long time, great–but if the minimum time of 0.5 seconds and the task actually takes 0.7 seconds, then you have the same issue again… a brief flicker.
  4. If you can monitor the progress of the task, test it briefly and estimate, from the first fraction of a second or the first x percent, how long it should take to complete the task; if it is expected to take a while, then show the ProgressDialog. But this would be quite complex, and not every background task lends itself well to this sort of progress estimation.

What is the best approach? Is there an option I’ve missed? Is there a way to set the ProgressDialog so it only shows if there will be a noticeable delay? (I doubt there is, but it would be nice if there was some magic way). Is one of these the “standard” solution?

  • 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-30T18:25:50+00:00Added an answer on May 30, 2026 at 6:25 pm

    Keep the progress dialog as is, especially for network operations, since you might be getting lucky in a development environment, but also because you won’t be able to control the speed at which your internet connections work in a real world scenario.

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

Sidebar

Related Questions

I'm not sure what this practice is actually called, so perhaps someone can edit
I'm not sure what kind of terminology to use in this so please edit
Not entirely sure of a good title for this, feel free to edit it
Edit: This is not a conflict on the theoretical level but a conflict on
This works: Entities.WorkOrderSet.Where(MyCustomMethod); This does not: Entities.WorkOrderSet.Where(o => MyCustomMethod(o)); ( [Edit] Even without new
[edit] I am NOT using jquery in this app. Looking for a way to
EDIT: This question is more about language engineering than C++ itself. I used C++
EDIT This query is not working, any idea why? select `key`, distinct `filename`, `url`,
Edit: This is not a dupe of my last question as I didn't want
EDIT: If I do not use the progress at all, just showing the dialog,

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.