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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T09:58:31+00:00 2026-06-03T09:58:31+00:00

I have a a class that that is extended with Dialog itself. There are

  • 0

I have a a class that that is extended with Dialog itself. There are certain options available in dialog that sends request to server. I want to show a progress wait dialog when user click on any such option.

but Dialog in not showing may be because I am showing a progress dialog inside a dialog.

code is really very simple.

public class LeaderBoard extends Dialog implements View.OnClickListener {
public LeaderBoard(Context context) {
        super(context, android.R.style.Theme_Black_NoTitleBar_Fullscreen);
        this.mContext = context;

        requestWindowFeature(Window.FEATURE_NO_TITLE);

        setContentView(R.layout.leaderboard);

public void onClick(View paramView) {
..............
if (this.waitDialog != null) {
            this.waitDialog.show();
        }
new Runnable() {

                    @Override
                    public void run() {

                        mHandler.post(new Runnable() {

                            @Override
                            public void run() {
                                send request to server
                                waitDialog.dismiss();
                            }
                        });

                    }
                }.run();
  • 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-03T09:58:32+00:00Added an answer on June 3, 2026 at 9:58 am

    Hi Please try below code.

    public class LeaderBoard extends Dialog implements View.OnClickListener {
    Activity mActivity;
    private final ProgressDialog dialog;
    public LeaderBoard(Activity activity) {
            super(activity, android.R.style.Theme_Black_NoTitleBar_Fullscreen);
            mActivity = activity;
    
            requestWindowFeature(Window.FEATURE_NO_TITLE);
    
            setContentView(R.layout.leaderboard);
            dialog = new ProgressDialog(mActivity);
    
    public void onClick(View paramView) {
    ..............
    if (this.waitDialog != null) {
                this.dialog.setMessage("Please Wait...");
                this.dialog.show();
            }
    new Runnable() {
    
                        @Override
                        public void run() {
    
                            mHandler.post(new Runnable() {
    
                                @Override
                                public void run() {
                                    send request to server
                                    this.dialog.dismiss();
                                }
                            });
    
                        }
                    }.run();
    

    Thanks,
    Nik…

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

Sidebar

Related Questions

I have an extended dialog class that I want to show for 3 seconds
I have a modal dialog class that I am extending in order to show
I have to open a page from class extended from javax.swing.AbstractAction class... Is that
I have a class that is mapped in fluent nhibernate but I want one
I have extended my class with a dialog in which I have set content
I have a model class Action that get's extended by several other classes. I
If I have a parent class that is extended by lots and lots of
I have a activity that extends listactivity, extended in this class i have a
I'm trying to create a extended CCSprite class that can detect touches. I have
I have extended a class that is part of a large library. I instantiate

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.