Back to project page octodroid.
The source code is released under:
MIT License
If you think the Android project octodroid 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.example.octodroid.views.helpers; /*from w ww . ja va 2 s. c o m*/ import android.app.ProgressDialog; import android.content.Context; import com.example.octodroid.R; public class ProgressDialogHelper { private ProgressDialog progressDialog; private String message; public ProgressDialogHelper(Context context) { if (progressDialog == null) { progressDialog = new ProgressDialog(context); message = context.getString(R.string.loading); } } public synchronized void show() { progressDialog.setMessage(message); progressDialog.setCancelable(false); progressDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER); progressDialog.show(); } public synchronized void dismiss() { if (progressDialog == null) { return; } progressDialog.dismiss(); } }