Guest User

Untitled

a guest
Jan 16th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. private ProgressDialog progDialog;
  2.  
  3. try {
  4. progDialog = new ProgressDialog(yourCustomDialog.getContext());
  5. progDialog.setIndeterminate(true);
  6. progDialog.setMessage("fetching image...");
  7. progDialog.setCancelable(false);
  8. progDialog.show();
  9. } catch (Exception ex) {
  10. }
  11.  
  12. try {
  13. if (progDialog != null && progDialog.isShowing()) {
  14. progDialog.dismiss();
  15. }
  16. } catch (Exception ex) {
  17. }
  18.  
  19. try {
  20. progDialog = new ProgressDialog(Activity_FindInfo.this);
  21. progDialog.setIndeterminate(true);
  22. progDialog.setMessage("loading");
  23. progDialog.setCancelable(false);
  24. progDialog.show();
  25. } catch (Exception ex) {
  26. }
Add Comment
Please, Sign In to add comment