Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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();
 } 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #custom #progressdialog #android
ADD COMMENT
Topic
Name
8+7 =