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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T19:28:11+00:00 2026-05-13T19:28:11+00:00

When I call webservice on clicking button, it waits to load records on new

  • 0

When I call webservice on clicking button, it waits to load records on new activity and shows activity blank during that time period.

Can any one guide me how to show progress during that time period?

  • 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-13T19:28:11+00:00Added an answer on May 13, 2026 at 7:28 pm

    You could display a progress view on your activity:

    public class MyActivity extends Activity {
         private static final int PROGRESS = 0x1;
    
         private ProgressBar mProgress;
    
         private Handler mHandler = new Handler();
    
         protected void onCreate(Bundle icicle) {
             super.onCreate(icicle);
    
             setContentView(R.layout.progressbar_activity);
    
             mProgress = (ProgressBar) findViewById(R.id.progress_bar);
             mProgress.setIndeterminate(true);
             mProgress.setVisibility(true);
    
             // Start lengthy operation in a background thread
             new Thread(new Runnable() {
                 public void run() {
                     doWork();
                     mProgress.setVisibility(false);
                 }
             }).start();
         }
     }
    

    See ProgressBar documentation.

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

Sidebar

Related Questions

I have an Activity (RecipiesActivity) that is opened by clicking on the Next button
I want to call a webservice from jQuery. How can I do that?
I have an application in which I have a webservice call that returns data
I have a webservice call that will return an image, now I want to
I need to call a webservice when user clicks on close or view button
I have a program that does the following: Call webservice (there are many calls
I have a webservice [call it S1] exposed and clients call that service and
I am trying to call a webservice that return too much data just to
I am making a webservice call that needs and authentication password using jquery ajax.
My first screen that contains a uitableview, I used to call webservice method in

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.