Beispiel #1
0
  private void initContent() {
    mCardView.setImageBitmap(mCard.getRepresentImg());

    try {
      mCardAID.setText(mCard.getAid());
      mCardIssur.setText(mCard.getIssuer());
      mCardPan.setText(mCard.getPan());
      mCardExpriyDate.setText(mCard.getExpiryMonth() + " / " + mCard.getExpiryYear());
      mCardInfo.setText(mCard.getDisplayContents());
    } catch (Exception e) {
      Log.e(TAG, "No card information!");
    }
  }
Beispiel #2
0
  public void showStateDialog() {
    String msg = new StringBuilder().append(mCard.getAidName()).append("  detected").toString();

    AlertDialog.Builder builder = new AlertDialog.Builder(this);
    builder
        .setMessage(msg)
        .setNegativeButton(
            "No",
            new DialogInterface.OnClickListener() {
              public void onClick(DialogInterface dialog, int id) {
                dialog.cancel();
              }
            });
    AlertDialog alert = builder.create();
    alert.show();
  }