Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private ProgressDialog progDialog;
- try {
- progDialog = new ProgressDialog(yourCustomDialog.getContext());
- progDialog.setIndeterminate(true);
- progDialog.setMessage("fetching image...");
- progDialog.setCancelable(false);
- progDialog.show();
- } catch (Exception ex) {
- }
- try {
- if (progDialog != null && progDialog.isShowing()) {
- progDialog.dismiss();
- }
- } catch (Exception ex) {
- }
- try {
- progDialog = new ProgressDialog(Activity_FindInfo.this);
- progDialog.setIndeterminate(true);
- progDialog.setMessage("loading");
- progDialog.setCancelable(false);
- progDialog.show();
- } catch (Exception ex) {
- }
Add Comment
Please, Sign In to add comment