Ive looked at some questions and non answer the problem im having..
I have this asyncTask…
private class LoadData extends AsyncTask<Void, Void, Void>{
protected Void onPreExecute(Void...arg0){
super.onPreExecute();
ProgressDialog dialog = ProgressDialog.show(shoppingClass.this, "",
"Loading. Please wait...", true);
dialog.show();
return null;
}
@Override
protected Void doInBackground(Void... params) {
item = we.getText().toString();
getUserPreference();
itemLookup.loadUrl(url);
return null;
}
@Override
protected void onPostExecute(Void notused){
itemLookup.setVisibility(View.VISIBLE);
}
}
The problem is the progessDialog is not showing up? I dont know why…Im doing everything write according to the documentation.
You are not overriding correctly the method. Change onPreExecute to this: