Progress Dialog


this is how to properly display a progress dialog when you need to preform a long task. though i would upload this example as it took me a good couple of weeks to find out how to do this properly.

pd = ProgressDialog.show(advanced.this, getString(R.string.Updating_Busybox), getString(R.string.Please_Wait));
pd.setCancelable(true);
new Thread(new Runnable(){
@Override
public void run() {

//Big task goes here!

}}).start();

this nees to be announsed BEFORE the onCreate bundle to declare “pd”.

private ProgressDialog pd;

Advertisements
Posted in Java. 1 Comment »

One Response to “Progress Dialog”

  1. best socket wrenches Says:

    I am not new to blogging and really value your blog. There is much prime subject that peaks my interest. I am going to bookmark your blog and keep checking you out. Wish you good luck.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: