Code example for DialogInterface

Methods: cancel

0
                public void onClick(DialogInterface dialog, int index) { 
                    if (index >= 0 && index < mAccounts.length) { 
                        mAccount = mAccounts[index]; 
                        startAuthentication(); 
                    } 
                    dialog.cancel(); 
                } 
            }; 
 
    public IITC_DeviceAccountLogin(IITC_Mobile activity, WebView webView,
                                   WebViewClient webViewClient) {
        mActivity = activity;
        mWebView = webView;
        mAccountManager = AccountManager.get(activity);
        mAccountAdapter = new AccountAdapter();
 
        // dialog that serves as a progress bar overlay 
        mProgressbar = new AlertDialog.Builder(mActivity)
                .setCancelable(false)
                .setView(mActivity.getLayoutInflater().inflate(R.layout.dialog_progressbar, null))
Contextual code suggestions in your IDE  Get Codota for Java