List of usage examples for android.app ProgressDialog setMessage
@Override public void setMessage(CharSequence message)
From source file:com.iskrembilen.quasseldroid.gui.dialogs.LoginProgressDialog.java
@Override public @NonNull Dialog onCreateDialog(@Nullable Bundle savedInstanceState) { ProgressDialog prog = new ProgressDialog(getActivity()); prog.setMessage(getResources().getString(R.string.notification_connecting)); setCancelable(true);/*from ww w . j ava 2 s. c o m*/ return prog; }
From source file:com.jefftharris.passwdsafe.lib.view.ProgressFragment.java
@Override public @NonNull Dialog onCreateDialog(Bundle savedInstanceState) { setCancelable(false);//from w w w . j a v a2 s . co m ProgressDialog dlg = new ProgressDialog(getActivity()); dlg.setIndeterminate(true); dlg.setMessage(getArguments().getString("msg")); return dlg; }
From source file:com.example.minhttruong.parsedemo.widget.ProgressFrag.java
@Override public Dialog onCreateDialog(Bundle savedInstanceState) { ProgressDialog dialog = new ProgressDialog(getActivity(), ProgressDialog.STYLE_HORIZONTAL); dialog.setMessage(mMsg); return dialog; }
From source file:hu.naturlecso.naturshutd.dialog.ProgressDialogFragment.java
@Override public Dialog onCreateDialog(Bundle savedInstanceState) { ProgressDialog dialog = new ProgressDialog(getActivity()); dialog.setIndeterminate(true);/* w w w. j a v a 2 s .c o m*/ dialog.setMessage(getString(R.string.dialog_execute_progress)); return dialog; }
From source file:org.pixmob.droidlink.ui.AuthenticationProgressDialog.java
@Override public Dialog onCreateDialog(Bundle savedInstanceState) { final ProgressDialog dialog = new ProgressDialog(getActivity()); dialog.setCancelable(false);/*from www . jav a2s .c o m*/ dialog.setMessage(getString(R.string.auth_pending)); return dialog; }
From source file:com.rukman.emde.smsgroups.fragments.ProgressDialogFragment.java
@Override public Dialog onCreateDialog(Bundle savedInstanceState) { Bundle arguments = this.getArguments(); ProgressDialog dialog = new ProgressDialog(this.getActivity()); dialog.setCancelable(false);/*from www. j a v a2 s . c om*/ dialog.setMessage(getResources().getText(arguments.getInt(MESSAGE))); dialog.setTitle(getResources().getText(arguments.getInt(TITLE))); return dialog; }
From source file:org.cvasilak.jboss.mobile.app.fragments.dialogs.ProgressDialogFragment.java
@Override public Dialog onCreateDialog(Bundle savedInstanceState) { ProgressDialog dialog = new ProgressDialog(getActivity()); dialog.setMessage(getActivity().getString(getArguments().getInt("message"))); dialog.setIndeterminate(true);// w w w . jav a 2 s . c om dialog.setCancelable(false); // Disable the back button DialogInterface.OnKeyListener keyListener = new DialogInterface.OnKeyListener() { @Override public boolean onKey(DialogInterface dialog, int keyCode, KeyEvent event) { return (keyCode == KeyEvent.KEYCODE_BACK); } }; dialog.setOnKeyListener(keyListener); return dialog; }
From source file:com.booksaround.me.title.util.dialog.ProgressDialogFragment.java
@Override public Dialog onCreateDialog(Bundle savedInstanceState) { // get args//w ww .j a v a 2s . c o m Bundle args = getArguments(); String title = args.getString(ARGS_TITLE); String msg = args.getString(ARGS_MESSAGE); ProgressDialog progress = new ProgressDialog(getActivity()); progress.setTitle(title); progress.setMessage(msg); return progress; }
From source file:cz.tomas.StockAnalyze.fragments.ProgressDialogFragment.java
@Override public Dialog onCreateDialog(Bundle savedInstanceState) { if (getArguments() == null) { throw new RuntimeException("use newInstance(...) static method to initialize this dialog"); }//from w ww.j av a 2s . co m int title = getArguments().getInt("title"); int messageId = getArguments().getInt("message"); ProgressDialog dlg = new ProgressDialog(getActivity()); dlg.setTitle(title); dlg.setMessage(getText(messageId)); dlg.setCancelable(true); dlg.setIndeterminate(true); return dlg; }
From source file:com.kii.sample.hellothingif.util.ProgressDialogFragment.java
@NonNull @Override/*from ww w . j a v a 2 s.c o m*/ public Dialog onCreateDialog(Bundle savedInstanceState) { // get args Bundle args = getArguments(); String title = args.getString(ARGS_TITLE); String msg = args.getString(ARGS_MESSAGE); ProgressDialog progress = new ProgressDialog(getActivity()); progress.setTitle(title); progress.setMessage(msg); return progress; }