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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T18:47:15+00:00 2026-06-17T18:47:15+00:00

Goodevening, im trying to create a progress spinning wheel when an onClick function start

  • 0

Goodevening, im trying to create a progress spinning wheel when an onClick function start but i got an error from eclipse and seems it won’t work.

here is my code

    hwdebug.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            ProgressDialog MyDialog = ProgressDialog.show( this, "TEST" , "Loading. Please wait ... ", false);
                  // FUNCTION
            MyDialog.dismiss();
                                    }
    }

The error im getting from eclipse is that:

The method show(Context, CharSequence, CharSequence, boolean) in the
type ProgressDialog is not applicable for the arguments (new
View.OnClickListener(){}, String, String, boolean)

Any suggestion? Thanks 🙂

  • 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-17T18:47:16+00:00Added an answer on June 17, 2026 at 6:47 pm

    Change

    ProgressDialog MyDialog = 
           ProgressDialog.show( this, "TEST" , "Loading. Please wait ... ", false);
    

    to

    ProgressDialog MyDialog =
                              ProgressDialog.show( CurrentActivity.this, "TEST" ,
                                     "Loading. Please wait ... ", false);
    

    use Current Activity Context instead of View to show ProgressDialog or you can get Context by using v.getContext()

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

Sidebar

Related Questions

I'm trying to echo a user name and a greeting from IF statement i
Good evening all, I'm trying to implement jquery table sorter, all seems fine and
Good evening, people! I'm trying to solve a rather simple problem, but.. well, it
Good evening all, I'm trying to code a menu, but I keep getting Thread
Good evening, I have been trying to wrap my head about this, below, code
Good evening, I'm trying to splitting the parts of a german address string into
Good evening guys. I'm currently trying to get started on development of a project
Good evening, I've been trying to fix this bug for a few hours now
Good evening, I'm trying to make a single php page wich can edit/delete multiple
Good evening, I am having a weird issue with a method I am trying

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.