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 =, getString(R.string.Updating_Busybox), getString(R.string.Please_Wait));
new Thread(new Runnable(){
public void run() {

//Big task goes here!


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

private ProgressDialog pd;

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: Logo

You are commenting using your 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: