protected void handSmartcardStateChange(int state) { mSmartcardState = state; mAlertType = DLG_TYPE_SMARTCARD_INFO; Log.d(TAG, " ======== display smartcard state ==== " + mSmartcardState); if (mSmartcardDlg == null || !mSmartcardDlg.isShowing()) { showDialog(DLG_ID_SMARTCARD); } else { displayAlertDlg(mSmartcardDlg, mAlertType); } if (mSmartcardState == SMARTCARD_STATE_INSERTED) { hideDlgDelay(); } else { stopTimer(); } }