this.challenge = challenge;
Intent intent = activity.getIntent();
intent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);
this.challenge = challenge;
Intent intent = activity.getIntent();
intent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);
if (adapter == null) {
Toast.makeText(activity, R.string.no_nfc,
Toast.LENGTH_LONG).show();
if (adapter == null) {
Toast.makeText(activity, R.string.no_nfc,
Toast.LENGTH_LONG).show();
}
if (!adapter.isEnabled()) {
Toast.makeText(activity, R.string.nfc_disabled,
Toast.LENGTH_LONG).show();
}
if (!adapter.isEnabled()) {
Toast.makeText(activity, R.string.nfc_disabled,
Toast.LENGTH_LONG).show();
}
adapter.enableForegroundDispatch(activity, tagIntent,
new IntentFilter[] {iso},
new String[][] {techs});
}
adapter.enableForegroundDispatch(activity, tagIntent,
new IntentFilter[] {iso},
new String[][] {techs});