custom progressdialog android
private AlertDialog progressDialog;
progressDialog = new SpotsDialog(mContext, R.style.Custom);
//Am using it in an AsyncTask. So in my onPreExecute, I do this:
public void onPreExecute() {
super.onPreExecute();
progressDialog.show();
...
}
//dismiss in onPostExecute
public void onPostExecute(){
progressDialog.dismiss();
}