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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T22:17:56+00:00 2026-05-25T22:17:56+00:00

App I’m building is carrying out a task, ProgressDialog is on the screen circling

  • 0

App I’m building is carrying out a task, ProgressDialog is on the screen circling ’round and ’round.

How can I provide the user the ability to break out of that Dialog at any given time, immediately disappear the Dialog and stop the task from being carried out mid 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-05-25T22:17:57+00:00Added an answer on May 25, 2026 at 10:17 pm

    Try this ,if it is an AsynkTask:

    dialog = ProgressDialog.show(
                            Activity.this,
                            "",
                            "Loading the results...Please wait.",
                            true,
                            true,
                            new DialogInterface.OnCancelListener(){
                                @Override
                                public void onCancel(DialogInterface dialog) {
                                    *YourTask*.this.cancel(true); 
                                }
                            }
                    );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

App having screen1, screen2, screen3 , screen4 user can go to screen3 from remaining
App has fragment activity with framelayout container matching parent. User interacts with fragments ui
My app has the following models: user and watch_list. User has attributes id, name
We're building an app, our first using Rails 3, and we're having to build
app.post('/register', express.BodyParser(), function (req, res){ var newu = new UserModel({}); newu.user = req.body.nuser; newu.pass
My app only allows access if the current user is a specific type, this
App::import('model','User'); $user_model = new User(); $xxx = $user_model->find(all, array(fields=>array(User.yyy))); $zzz = $user_model->find(count, array(fields =>
app link: http://itunes.apple.com/en/app/quick-tweet/id505987287?mt=12 How can i make something like that circle? is that a
my app on facebook post to wall of user who read any article on
App I'm working on uses ARC. I wanted it to process large files, so

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.