public void addMessages(Collection<Record> ndefRecords, NdefPushFinishListener finishListener) {
ndefPushLlcpService.addMessages(ndefRecords, finishListener);
}
public void runDemo() throws IOException {
TerminalMode terminalMode = initiatorMode ? TerminalMode.INITIATOR : TerminalMode.TARGET;
NfcAdapter nfcAdapter = new NfcAdapter(TerminalUtils.getAvailableTerminal(), terminalMode);
nfcAdapter.setNfcipConnectionListener(llcpOverNfcip);
nfcAdapter.startListening();
System.out.println("Mode: " + terminalMode);
System.out.println("Waiting for P2P, press ENTER to exit");