Java Code Examples for android.app.progressdialog#isShowing()

The following examples show how to use android.app.progressdialog#isShowing() . 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: ShoppingCarFragment.java    From HomeApplianceMall with MIT License 5 votes vote down vote up
@Override
protected void onPreExecute() {
    super.onPreExecute();
    pd = new ProgressDialog(getContext());
    pd.setMessage("加载中...");
    if(!pd.isShowing()){
        pd.show();
    }
    pd.show();
}
 
Example 2
Source File: BaseActivity.java    From BmapLite with Apache License 2.0 5 votes vote down vote up
/**
 * 显示加载时进度条
 */
public void showProgress() {
    mProgressDialog = new ProgressDialog(this);
    mProgressDialog.setMessage("请稍候...");
    if (!mProgressDialog.isShowing())
        mProgressDialog.show();
}
 
Example 3
Source File: GoodDetailActivity.java    From HomeApplianceMall with MIT License 5 votes vote down vote up
@Override
protected void onPreExecute() {
    super.onPreExecute();
    pd = new ProgressDialog(GoodDetailActivity.this);
    pd.setMessage("加载中...");
    if(!pd.isShowing()){
        pd.show();
    }
    pd.show();

}
 
Example 4
Source File: LoginActivity.java    From HomeApplianceMall with MIT License 5 votes vote down vote up
@Override
protected void onPreExecute() {
    super.onPreExecute();
    pd = new ProgressDialog(LoginActivity.this);
    pd.setMessage("正在登录...");
    if(!pd.isShowing()){
        pd.show();
    }
    pd.show();

}
 
Example 5
Source File: ForgerActivity.java    From HomeApplianceMall with MIT License 5 votes vote down vote up
@Override
protected void onPreExecute() {
    super.onPreExecute();
    pd = new ProgressDialog(ForgerActivity.this);
    pd.setMessage("处理中...");
    if(!pd.isShowing()){
        pd.show();
    }
    pd.show();
}
 
Example 6
Source File: CollectionActivity.java    From HomeApplianceMall with MIT License 5 votes vote down vote up
@Override
protected void onPreExecute() {
    super.onPreExecute();
    pd = new ProgressDialog(CollectionActivity.this);
    pd.setMessage("处理中...");
    if(!pd.isShowing()){
        pd.show();
    }
    pd.show();

}
 
Example 7
Source File: OrderChangeAC.java    From HomeApplianceMall with MIT License 5 votes vote down vote up
@Override
protected void onPreExecute() {
    super.onPreExecute();
    pd = new ProgressDialog(context);
    pd.setMessage("处理中...");
    if(!pd.isShowing()){
        pd.show();
    }
    pd.show();

}
 
Example 8
Source File: SubmitOrderActivity.java    From HomeApplianceMall with MIT License 5 votes vote down vote up
@Override
protected void onPreExecute() {
    super.onPreExecute();
    pd = new ProgressDialog(SubmitOrderActivity.this);
    pd.setMessage("提交中...");
    if(!pd.isShowing()){
        pd.show();
    }
    pd.show();
}
 
Example 9
Source File: OrderDetailActivity.java    From HomeApplianceMall with MIT License 5 votes vote down vote up
@Override
protected void onPreExecute() {
    super.onPreExecute();
    pd = new ProgressDialog(OrderDetailActivity.this);
    pd.setMessage("处理中...");
    if(!pd.isShowing()){
        pd.show();
    }
    pd.show();

}
 
Example 10
Source File: OrderDetailActivity.java    From HomeApplianceMall with MIT License 5 votes vote down vote up
@Override
protected void onPreExecute() {
    super.onPreExecute();
    pd = new ProgressDialog(OrderDetailActivity.this);
    pd.setMessage("搜索中...");
    if(!pd.isShowing()){
        pd.show();
    }
    pd.show();

}
 
Example 11
Source File: SearchFragment.java    From HomeApplianceMall with MIT License 5 votes vote down vote up
@Override
protected void onPreExecute() {
    super.onPreExecute();
    pd = new ProgressDialog(getContext());
    pd.setMessage("搜索中...");
    if(!pd.isShowing()){
        pd.show();
    }
    pd.show();

}
 
Example 12
Source File: OrderFragment.java    From HomeApplianceMall with MIT License 5 votes vote down vote up
@Override
protected void onPreExecute() {
    super.onPreExecute();
    pd = new ProgressDialog(getContext());
    pd.setMessage("处理中...");
    if(!pd.isShowing()){
        pd.show();
    }
    pd.show();

}
 
Example 13
Source File: HomeFragment.java    From HomeApplianceMall with MIT License 5 votes vote down vote up
@Override
protected void onPreExecute() {
    super.onPreExecute();
    pd = new ProgressDialog(getContext());
    pd.setMessage("加载中...");
    if(!pd.isShowing()){
        pd.show();
    }

}
 
Example 14
Source File: BaseActivity.java    From BmapLite with GNU General Public License v3.0 5 votes vote down vote up
/**
 * 显示加载时进度条
 */
public void showProgress() {
    mProgressDialog = new ProgressDialog(this);
    mProgressDialog.setMessage("请稍候...");
    if (!mProgressDialog.isShowing())
        mProgressDialog.show();
}
 
Example 15
Source File: BaseFragment.java    From OmniList with GNU Affero General Public License v3.0 4 votes vote down vote up
private void doCapture(WebView webView, ProgressDialog pd, FileHelper.OnSavedToGalleryListener listener) {
    ScreenShotHelper.shotWebView(webView, listener);
    if (pd != null && pd.isShowing()) {
        pd.dismiss();
    }
}
 
Example 16
Source File: CommonDialogUtils.java    From product-emm with Apache License 2.0 4 votes vote down vote up
/**
 * Stops progressDialog.
 * @param progressDialog -Progress dialog which needs to be stopped.
 */
public static void stopProgressDialog(ProgressDialog progressDialog) {
	if (progressDialog != null && progressDialog.isShowing()) {
		progressDialog.dismiss();
	}
}
 
Example 17
Source File: CommonDialogUtils.java    From product-emm with Apache License 2.0 4 votes vote down vote up
/**
 * Stops progressDialog.
 * @param progressDialog -Progress dialog which needs to be stopped.
 */
public static void stopProgressDialog(ProgressDialog progressDialog) {
	if (progressDialog != null && progressDialog.isShowing()) {
		progressDialog.dismiss();
	}
}
 
Example 18
Source File: CommonDialogUtils.java    From product-emm with Apache License 2.0 4 votes vote down vote up
/**
 * Stops progressDialog.
 * @param progressDialog -Progress dialog which needs to be stopped.
 */
public static void stopProgressDialog(ProgressDialog progressDialog) {
	if (progressDialog != null && progressDialog.isShowing()) {
		progressDialog.dismiss();
	}
}
 
Example 19
Source File: GPDialogs.java    From geopaparazzi with GNU General Public License v3.0 4 votes vote down vote up
/**
 * Dismiss {@link ProgressDialog} with check in one line.
 *
 * @param progressDialog the dialog to dismiss.
 */
public static void dismissProgressDialog(ProgressDialog progressDialog) {
    if (progressDialog != null && progressDialog.isShowing()) {
        progressDialog.dismiss();
    }
}
 
Example 20
Source File: DialogUtils.java    From Gizwits-SmartSocket_Android with MIT License 2 votes vote down vote up
/**
 * 数据加载对话框框消失方法,避免矿口句柄溢出
 * 
 * @param ctx
 *            依附的activity
 * @param pd
 *            目标对话框
 * 
 * 
 * */
public static void dismiss(Activity ctx, ProgressDialog pd) {
	if (pd != null && pd.isShowing() && ctx != null && !ctx.isFinishing())
		pd.dismiss();
}