import android.widget.TextView;
import android.widget.RadioButton;
-import org.average.nfcauthcr.Check;
+import org.average.nfcauthcr.TagEvent;
public class Enroll extends Activity {
@Override
protected void onPause() {
super.onPause();
- Log.v(TAG, "Going inactive, try to stop");
- if (!waitingForResult) { finish(); }
}
@Override
byte[] challenge = new byte[63];
rng.nextBytes(challenge);
Log.v(TAG, "Random challenge: " + hex(challenge));
- Log.v(TAG, "Launching challenging activity");
- Intent crIntent = new Intent(this, Check.class);
- crIntent.putExtra("slot", slot);
+ Intent crIntent = new Intent(this, TagEvent.class);
+ crIntent.putExtra("yubikey_neo_slot", slot);
crIntent.putExtra("challenge", challenge);
- this.startActivityForResult(crIntent, 0);
waitingForResult = true;
+ this.startActivityForResult(crIntent, 0);
}
private String hex(byte[] a) {