List of usage examples for android.app ProgressDialog STYLE_SPINNER
int STYLE_SPINNER
To view the source code for android.app ProgressDialog STYLE_SPINNER.
Click Source Link
From source file:org.qeo.deviceregistration.ui.SettingsActivity.java
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); setContentView(R.layout.activity_settings); mProgress = new ProgressDialog(this); mProgress.setMessage("Creating Realm."); mProgress.setCancelable(false);//from ww w . ja v a2 s. c o m mProgress.setProgressStyle(ProgressDialog.STYLE_SPINNER); mRealmListRefreshIntent = new Intent(SettingsRealmFragment.ACTION_REFRESH_REALMS); if (savedInstanceState == null) { mSettingsFragment = new SettingsRealmFragment(); getSupportFragmentManager().beginTransaction() .add(R.id.settingrealm_frag, mSettingsFragment, "SettingsFragment").commit(); } else { mSettingsFragment = (SettingsRealmFragment) getSupportFragmentManager() .findFragmentById(R.id.settingrealm_frag); } }
From source file:xyz.jamescarroll.genipass.Fragment.ServiceTagFragment.java
private void createProgressDialog() { mProgress = new ProgressDialog(getActivity()); mProgress.setTitle("Doing Math."); mProgress.setMessage("Please wait, this could take +30 seconds."); mProgress.setProgressStyle(ProgressDialog.STYLE_SPINNER); mProgress.setCancelable(false);/*from www.j a va2s . c o m*/ mProgress.setCanceledOnTouchOutside(false); }
From source file:cl.mmoscoso.geocomm.sync.GeoCommGetPointsAsyncTask.java
public GeoCommGetPointsAsyncTask(Context context, String hn, int id, List<GeoCommPoint> points) { this.context = context; this.hostname = hn; this.id = id; this.points = points; this.mProgressDialog = new ProgressDialog(context); this.mProgressDialog.setMessage(this.context.getResources().getString(R.string.Loading)); this.mProgressDialog.setIndeterminate(false); this.mProgressDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER); this.mProgressDialog.setCancelable(true); }
From source file:net.kazzz.NFCTagReader.java
public void onClick(final View v) { try {// w ww .jav a 2s. c o m final int id = v.getId(); final ProgressDialog dialog = new ProgressDialog(this); dialog.setProgressStyle(ProgressDialog.STYLE_SPINNER); dialog.setIndeterminate(true); AsyncTask<Void, Void, String> task = new AsyncTask<Void, Void, String>() { @Override protected void onPreExecute() { switch (id) { case R.id.btn_read: dialog.setMessage("?????..."); break; case R.id.btn_write: dialog.setMessage("???????..."); break; case R.id.btn_hitory: dialog.setMessage("????..."); break; } dialog.show(); } @Override protected String doInBackground(Void... arg0) { switch (id) { case R.id.btn_read: try { return mLastFragment.dumpTagData(); } catch (Exception e) { e.printStackTrace(); } break; case R.id.btn_write: try { Intent intent = new Intent(NFCTagReader.this, NFCTagWriter.class); intent.putExtra("nfcTag", mLastFragment.getNfcTag()); startActivity(intent); return ""; } catch (Exception e) { e.printStackTrace(); } break; case R.id.btn_hitory: try { if (mLastFragment != null && mLastFragment instanceof NfcFeliCaTagFragment) { NfcFeliCaTagFragment nfcf = (NfcFeliCaTagFragment) mLastFragment; return nfcf.dumpFeliCaHistoryData(); } } catch (Exception e) { e.printStackTrace(); } break; default: break; } return ""; } /* (non-Javadoc) * @see android.os.AsyncTask#onPostExecute(java.lang.Object) */ @Override protected void onPostExecute(String result) { dialog.dismiss(); TextView tv_tag = (TextView) findViewById(R.id.result_tv); if (result != null && result.length() > 0) tv_tag.setText(result); } }; task.execute(); } catch (Exception e) { e.printStackTrace(); } }
From source file:org.hedgewars.hedgeroid.ConnectingDialog.java
@Override public Dialog onCreateDialog(Bundle savedInstanceState) { ProgressDialog dialog = new ProgressDialog(getActivity()); dialog.setIndeterminate(true);/* www . jav a2s . c o m*/ dialog.setProgressStyle(ProgressDialog.STYLE_SPINNER); dialog.setTitle(R.string.dialog_connecting_title); dialog.setMessage(getString(R.string.dialog_connecting_message)); return dialog; }
From source file:cl.mmoscoso.geocomm.sync.GeoCommGetRoutesAsyncTask.java
/** * //from w w w .ja v a 2 s . co m * @param cont * @param url * @param username * @param password */ public GeoCommGetRoutesAsyncTask(Context cont, String host, List<GeoCommRoute> routes, ListView listview) { this.context = cont; this.list_routes = routes; this.listview = listview; this.hostname = host; this.mProgressDialog = new ProgressDialog(context); this.mProgressDialog.setMessage(context.getResources().getString(R.string.mssg_loading_routes)); this.mProgressDialog.setIndeterminate(false); this.mProgressDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER); this.mProgressDialog.setCancelable(true); }
From source file:cl.mmoscoso.geocomm.sync.GeoCommRegisterAsyncTask.java
public GeoCommRegisterAsyncTask(Context context, String hn, String name, String pass, String e_mail) { this.context = context; this.hostname = hn; this.pass = pass; this.name = name; this.e_mail = e_mail; this.mProgressDialog = new ProgressDialog(context); this.mProgressDialog.setMessage(this.context.getResources().getString(R.string.Loading)); this.mProgressDialog.setIndeterminate(false); this.mProgressDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER); this.mProgressDialog.setCancelable(true); }
From source file:cl.mmoscoso.geocomm.sync.GeoCommDeletePointAsyncTask.java
public GeoCommDeletePointAsyncTask(Context context, String hn, int id_point) { this.context = context; this.hostname = hn; this.id_point = id_point; this.mProgressDialog = new ProgressDialog(context); this.mProgressDialog.setMessage(this.context.getResources().getString(R.string.Loading)); this.mProgressDialog.setIndeterminate(false); this.mProgressDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER); this.mProgressDialog.setCancelable(true); }
From source file:com.mifos.mifosxdroid.core.MifosBaseActivity.java
@Override public void showProgress(String message) { if (progress == null) { progress = new ProgressDialog(this, ProgressDialog.STYLE_SPINNER); progress.setCancelable(false);/*from w ww . j a v a2s. com*/ } progress.setMessage(message); progress.show(); }
From source file:uk.org.rivernile.edinburghbustracker.android.fragments.dialogs.IndeterminateProgressDialogFragment.java
/** * {@inheritDoc}/*from w w w. jav a 2 s .c om*/ */ @Override public Dialog onCreateDialog(final Bundle savedInstanceState) { final ProgressDialog d = new ProgressDialog(getActivity()); d.setProgressStyle(ProgressDialog.STYLE_SPINNER); d.setCancelable(true); d.setMessage(getArguments().getString(ARG_MESSAGE)); return d; }