Code example for ProgressDialog

Methods: setMessage, setCancelable, 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; 
    } 
 
}