Back to project page CloudPaste-Android.
The source code is released under:
MIT License
If you think the Android project CloudPaste-Android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.alwaysallthetime.cloudpaste; //from w w w. j a v a2 s.c o m import android.app.Activity; import android.app.ProgressDialog; public abstract class BaseCloudPasteActivity extends Activity { private ProgressDialog mProgressDialog; protected void showProgress(final int messageResourceId) { mProgressDialog = new ProgressDialog(this); mProgressDialog.setMessage(getString(messageResourceId)); mProgressDialog.setCancelable(true); mProgressDialog.setIndeterminate(true); mProgressDialog.show(); } protected void hideProgress() { if(mProgressDialog != null) { mProgressDialog.dismiss(); mProgressDialog = null; } } }