public static ProgressDialog getDialog(Activity activity)
{
ProgressDialog pDialog=new ProgressDialog(activity,ProgressDialog.THEME_DEVICE_DEFAULT_LIGHT);
pDialog.setIndeterminate(true);
pDialog.setIndeterminateDrawable(activity.getResources().getDrawable(R.anim.progress_dialog_icon_drawable_animation));
pDialog.setCancelable(false);
pDialog.setCanceledOnTouchOutside(false);
pDialog.setMessage(" Please wait.....");
return pDialog;
}
{
ProgressDialog pDialog=new ProgressDialog(activity,ProgressDialog.THEME_DEVICE_DEFAULT_LIGHT);
pDialog.setIndeterminate(true);
pDialog.setIndeterminateDrawable(activity.getResources().getDrawable(R.anim.progress_dialog_icon_drawable_animation));
pDialog.setCancelable(false);
pDialog.setCanceledOnTouchOutside(false);
pDialog.setMessage(" Please wait.....");
return pDialog;
}
No comments:
Post a Comment