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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T23:02:08+00:00 2026-05-21T23:02:08+00:00

How can I show a progressDialog during the start up of an application. I

  • 0

How can I show a progressDialog during the start up of an application. I have shown a progressDialog in the oncreate method and its not showing when launching the application.

I have gone through this:
ProgressDialog not showing until after function finishes

I have tried the solution explained for the above question. But its not working perfectly.

Here is my code:

public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.dash);

        progressDialog = ProgressDialog.show(this, "", "Loading...");

        //Run background UI thread
        Thread laucherThread = new Thread(new Runnable() {            
            public void run() {
                Looper.prepare(); //I had to include this to prevent force close error
                startService(new Intent(DroidChirp.this,ChirpService.class));
                doBindService();
                Log.e(MY_DEBUG_TAG, "Prepairing to close the dialog");
                runOnUiThread(new Runnable() {                    
                    public void run() {
                        progressDialog.dismiss();
                    }
                });
                Log.e(MY_DEBUG_TAG, "Closed the dialog");
            }
         });
        laucherThread.start();
    }

What I need to do is:

  • Show a progressDialog until all the initial setup is finished

Issues I am facing :

  • ProgressDialog is not showing at the start up.
  • There is a delay when starting the application(Showing blank for sometime).
  • ProgressDialog appears just before finishing the initial setup.

Can anyone suggest me how can I establish this feature. Its a tablelayout with list view for each tab.

  • 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-21T23:02:09+00:00Added an answer on May 21, 2026 at 11:02 pm

    If you want to show a progress dialog, while fetching data or something like this, you need to use AsyncTask with ProgressDialog bounded. See an example here.

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

Sidebar

Related Questions

Trying to show ProgressDialog, but getting: Can't create handler inside thread that has not
I can't make my ProgressDialog show up and I'm not sure why? The Code:
I've an application that you can show and close several Dialogs with: showDialog(...) removeDialog(...)
Possible Duplicate: Android: ProgressDialog.show() crashes with getApplicationContext I want to have a progress dialog
I am not able to run a ProgressDialog inside the doInBackground method of AsyncTask.
I have created a ProgressDialog in my android application. But the problem I am
Edit: this is NOT the same as ProgressDialog doesn't show just flashes I make
I have this lines of code: 1) m_ProgressDialog = ProgressDialog.show(m_Context, , m_Context.getString(R.string.dictionary_loading)); 2) //important
there's one menu on my application, only can open with internet connection, i have
I'm having some problems displaying a ProgressDialog. I have a method that scrapes information

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.