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;

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 to best socket wrenches Cancel reply