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;
August 24, 2011 at 7:42 pm
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.