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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T10:22:12+00:00 2026-06-02T10:22:12+00:00

How the ProgressValue (passing in the onPostExecute() in AsyncTask ) represents. it’s value depends

  • 0

How the ProgressValue (passing in the onPostExecute() in AsyncTask ) represents. it’s value depends on what ?

  • 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-02T10:22:14+00:00Added an answer on June 2, 2026 at 10:22 am

    When you create your AsyncTask class, you may specify types of the parameters, progress and result:

    private class MyTask extends AsyncTask<ParamType, ProgressType, ResultType> { ... }
    

    If you want to use progress values to update the progress bar, I’d recommend to use Integer, so your class declaration will look like this:

    private class MyTask extends AsyncTask<ParamType, Integer, ResultType> { ... }
    

    the following call should be made somewhere from doInBackground():

    publishProgress(progress_value);  // progress_valus is integer
    

    and your onProgressUpdate() member will look like this:

    protected void onProgressUpdate(Integer... values)  {
        super.onProgressUpdate(values);
        dialog.setProgress(values[0]);  // dialog is the ProgressDialog
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The following doesn't quite work (ProgressValue is a value set in DataContext.) <StatusBarItem Grid.Column=1>
The QFuture class has methods such as cancel() , progressValue() , etc. These can
'value' in this example is 5, 'maxValue' is 39. The value displayed on the
I'm using a slider control in WPF to show how much of a file
I have an object that can take anywhere from a split second to a
I am facing a really weird problem. I am using swfupload to upload multiple
My actual task is getting completed however I am not getting any increase in
I have this class: public class UploadFile : INotifyPropertyChanged { private string name; public
What's the proper way for the main GUI thread to update a QProgressDialog while
i have a program(winform) that runs through a lot of files(in the area of

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.