Java Code Examples for android.app.progressdialog#STYLE_SPINNER
The following examples show how to use
android.app.progressdialog#STYLE_SPINNER .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PostFormActivity.java From Overchan-Android with GNU General Public License v3.0 | 6 votes |
private void handleInteract(final InteractiveException e) { if (currentTask != null) currentTask.cancel(); currentTask = new CancellableTask.BaseCancellableTask(); final ProgressDialog cfDialog = new ProgressDialog(this, ProgressDialog.STYLE_SPINNER); cfDialog.setMessage(getString(R.string.error_interactive_dialog_format, e.getServiceName())); cfDialog.setCanceledOnTouchOutside(false); cfDialog.setOnCancelListener(new DialogInterface.OnCancelListener() { @Override public void onCancel(DialogInterface dialog) { if (currentTask != null) currentTask.cancel(); switchToErrorCaptcha(getString(R.string.error_interactive_cancelled_format, e.getServiceName())); } }); cfDialog.show(); Async.runAsync(new Runnable() { @Override public void run() { e.handle(PostFormActivity.this, currentTask, new InteractiveException.Callback() { @Override public void onSuccess() { cfDialog.dismiss(); send(); } @Override public void onError(String message) { cfDialog.dismiss(); switchToErrorCaptcha(message); } }); } }); }
Example 2
Source File: TableDataActivity.java From SqliteLookup with Apache License 2.0 | 5 votes |
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_table_data); mIvQuery = findView(R.id.iv_right); mIvQuery.setVisibility(View.VISIBLE); mIvQuery.setImageResource(R.drawable.ic_edit_sql); mIvQuery.setOnClickListener(this); Intent extraIntent = getIntent(); mTableName = extraIntent.getStringExtra(EXTRA_TABLE_NAME); mDbPath = extraIntent.getStringExtra(EXTRA_DB_PATH); mTables = findView(R.id.table); mLayoutQuery = findView(R.id.layout_sql_query); mEtSql = findView(R.id.et_raw_sql); mBtnQuery = findView(R.id.btn_execute_sql); mBtnQuery.setOnClickListener(this); mTvError = findView(R.id.tv_sql_error); enableBack(); setMainTitle(String.format("Data In %s", mTableName)); mDlgSelector = new SelectorDialog(this); mDlgSelector.setSelectItems(SELECT_ITEMS, this); mDlgLoading = new ProgressDialog(this,ProgressDialog.STYLE_SPINNER); mDlgLoading.setMessage(getString(R.string.loading)); mDlgLoading.setCancelable(false); mDlgLoading.setCanceledOnTouchOutside(false); listTableData(); }
Example 3
Source File: NodeContainerFragment.java From BlueSTSDK_Android with BSD 3-Clause "New" or "Revised" License | 5 votes |
/** * Prepare the progress dialog tho be shown setting the title and the message * * @param nodeName name of the node that we will use */ private void setUpProgressDialog(String nodeName) { mConnectionWait = new ProgressDialog(getActivity(), ProgressDialog.STYLE_SPINNER); mConnectionWait.setTitle(R.string.progressDialogConnTitle); mConnectionWait.setMessage(String.format(getResources().getString(R.string .progressDialogConnMsg), nodeName)); }
Example 4
Source File: MainActivity.java From Android-tcp-server-and-client with Apache License 2.0 | 5 votes |
private void setupDialog() { dialog = new ProgressDialog(this,ProgressDialog.STYLE_SPINNER); dialog.setTitle("Loading"); dialog.setMessage("Please wait..."); dialog.setIndeterminate(true); dialog.show(); }
Example 5
Source File: PostCommentDialogFragment.java From v2ex-daily-android with Apache License 2.0 | 5 votes |
@Override public Dialog onCreateDialog(Bundle savedInstanceState) { ProgressDialog progressDialog = new ProgressDialog(getActivity(), ProgressDialog.STYLE_SPINNER); progressDialog.setMessage(getString(R.string.title_commenting)); progressDialog.setIndeterminate(true); progressDialog.setCancelable(true); return progressDialog; }