How can i detect a card? i need to be able to determine when a tag is connected. i see the logs work, but i cant access the tag information.
protected void launchDemo(NfcTagListener... listeners) throws IOException
{
NfcAdapter nfcAdapter = new NfcAdapter(TerminalUtils.getAvailableTerminal(), TerminalMode.INITIATOR);
for (NfcTagListener tagListener : listeners) {
nfcAdapter.registerTagListener(tagListener);
}
nfcAdapter.registerUnknownTagListerner(new LoggingUnknownTagListener());
nfcAdapter.startListening();
System.out.println("Drop Dead Clocking Machine v1.1");
System.out.println("Waiting for tags, press ENTER to exit");
System.in.read();
}
On Friday, 3 May 2013 10:44:44 UTC+1, Adrian Stabiszewski wrote: