Code example for ProgressDialog

Methods: setCancelablesetMessage, setTitle

0
    } 
 
    @Override 
    public Dialog onCreateDialog(Bundle savedInstanceState) { 
        Bundle arguments = this.getArguments(); 
        ProgressDialog dialog = new ProgressDialog(this.getActivity()); 
        dialog.setCancelable(false); 
        dialog.setMessage(getResources().getText(arguments.getInt(MESSAGE))); 
        dialog.setTitle(getResources().getText(arguments.getInt(TITLE))); 
        return dialog; 
    } 
 
} 
Contextual code suggestions in your IDE  Get Codota for Java