Back to project page AndroidCouponAssistant.
The source code is released under:
MIT License
If you think the Android project AndroidCouponAssistant 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.corylucasjeffery.couponassistant; /*from w w w.jav a 2 s . com*/ import android.app.Activity; import android.app.ProgressDialog; import android.widget.ProgressBar; public class ProgressBarHelper { public static ProgressDialog ProgressBar; public static void initializeProgressBar(Activity parent) { final ProgressDialog progressDialog = new ProgressDialog(parent); progressDialog.setMessage(parent.getString(R.string.labelLoading)); progressDialog.setCancelable(false); ProgressBar = progressDialog; ProgressBar.show(); } public static void closeProgressBar() { ProgressBar.hide(); } }