I can get a progress bar with the following code
pd = ProgressDialog.show(myActivity.this, "", "Loading. Please wait...", true);
directly, but as soon as I have the code executed, I want it to go away, but when I run the omission method after I never see the dialog box at all.
Here is the code in the context that is wrapped in oncreate
pd = ProgressDialog.show(myActivity.this, "", "Loading. Please wait...", true);
runCode();
setListAdapter(new CustomAdapter(myActivity.this));
pd.dismiss();
I thought that you can show / reject the progress dialog anywhere in the activity, but I must be wrong.
Brian source
share