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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T11:17:12+00:00 2026-05-20T11:17:12+00:00

I am now working on an android app in which I need to display

  • 0

I am now working on an android app in which I need to display a text after some processing is done.
I’m using a Thread to run a process in the back while my progress dialog is being displayed to the user. The Thread works properly and I’ve followed it step by step and, apparently, it also ends fine; however, the method in which I call it does not seem to come to an end (at least, during a normal cycle) because the text I am setting afterward does display immediately, I have to wait and do some other action (like in order for it to display

Below is the piece of code I’m having trouble with:

private OnClickListener saldoDisp = new OnClickListener(){
    public void onClick(View v){
        int x = s2.getSelectedItemPosition();
        branchSel = arrSucsId[x];
        mainProc();
             saldoAdminTex.setText(strSaldo);  //The late one
    }
};    

public void mainProc(){
    chekP = new Thread (null,doProc,"Background");
    chekP.start();
    mProgress =ProgressDialog.show(SivetaAsaldo.this, "","Obteniendo saldo...",true, false);    
}

private Runnable doProc = new Runnable(){
    public void run(){
        if(getSaldoAdmin(levelSel,branchSel))
        {
            mProgress.dismis();
                    Log.i(TAG,"Task completed properly");
        }else       
            handler.post(tosti);
    }
};

So I do get the “Task completed properly” but seems like it still waits for something else, any clues guys?
Thanks for taking a bit of your time to check it out =).

  • 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-20T11:17:12+00:00Added an answer on May 20, 2026 at 11:17 am

    About your ProgressDialog, please see this answer about how to use a AsyncTask with a ProgressDialog.

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

Sidebar

Related Questions

We've been working on a webapp for some time now which is designed to
We're working now on the design of a new API for our product, which
i'm currently working on an app for the android os that requires to fetch
I'm working on my first android app and have an SQLite database set up
I recently discovered Erlang and am now working my way through a couple of
I'm a long-time emacs user, and I'm now working about 1/2 time in Java.
I'm working now together with others in a grails project. I have to write
Right now I'm working with an ASP.NET website that automatically generates images and stores
Right now I'm working on a web application that receives a significant amount of
I came from Java, and now I am working more with Ruby. One language

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.