Java Code Examples for android.app.ProgressDialog#cancel()
The following examples show how to use
android.app.ProgressDialog#cancel() .
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: LearnFragment.java From find-client-android with MIT License | 6 votes |
private void insertIntoList(WifiObject wifi) { wifiArrayAdapter.add(wifi); final ProgressDialog progress = new ProgressDialog(getActivity()); progress.setTitle("Learning"); progress.setMessage("Please wait while we are collecting the Wifi APs around you..."); progress.setCanceledOnTouchOutside(false); progress.show(); Runnable progressRunnable = new Runnable() { @Override public void run() { progress.cancel(); handler.removeCallbacks(runnableCode); } }; Handler pdCanceller = new Handler(); pdCanceller.postDelayed(progressRunnable, learnPeriodVal * 60 * 1000); }
Example 2
Source File: LearnFragment.java From find-client-android with MIT License | 6 votes |
private void insertIntoList(WifiObject wifi) { wifiArrayAdapter.add(wifi); final ProgressDialog progress = new ProgressDialog(getActivity()); progress.setTitle("Learning"); progress.setMessage("Please wait while we are collecting the Wifi APs around you..."); progress.setCanceledOnTouchOutside(false); progress.show(); Runnable progressRunnable = new Runnable() { @Override public void run() { progress.cancel(); handler.removeCallbacks(runnableCode); } }; Handler pdCanceller = new Handler(); pdCanceller.postDelayed(progressRunnable, learnPeriodVal * 60 * 1000); }
Example 3
Source File: MirrorsFragment.java From android with Apache License 2.0 | 6 votes |
@Override public void onDestroy() { if (mAsyncLinkParser != null) { ProgressDialog dialog = mAsyncLinkParser.mProgressDialog; if (dialog != null) { dialog.cancel(); } } if (mCastManager != null && mCastConsumer != null) { mCastManager.removeVideoCastConsumer(mCastConsumer); } super.onDestroy(); }
Example 4
Source File: SearchResultPresenterImp.java From HightCopyWX with Apache License 2.0 | 4 votes |
@Override public void onError(ProgressDialog pd) { pd.cancel(); mView.showErrorToast(); }
Example 5
Source File: SearchResultActivity.java From HightCopyWX with Apache License 2.0 | 4 votes |
@Override public void hideProgressDialog(ProgressDialog pd) { pd.cancel(); }