Package org.nfctools.utils

Examples of org.nfctools.utils.LoggingNdefListener


  private LlcpOverNfcip llcpOverNfcip;
  private SnepClient snepClient;

  public SnepDemo() {
    LoggingNdefListener loggingNdefListener = new LoggingNdefListener();
    final SnepServer snepServer = new SnepServer(loggingNdefListener);
    snepClient = new SnepClient();
    llcpOverNfcip = new LlcpOverNfcip(new LlcpConnectionManagerFactory() {

      @Override
View Full Code Here


import org.nfctools.utils.LoggingNdefListener;

public class NdefUltralight extends AbstractDemo {

  private void runDemo() throws IOException {
    LoggingNdefListener ndefListener = new LoggingNdefListener();
    launchDemo(new Type2NfcTagListener(ndefListener), new MfClassicNfcTagListener(ndefListener));
  }
View Full Code Here

  public String getTerminalName() {
    return terminal.getTerminalName();
  }

  public void run() {
    final SnepServer snepServer = new SnepServer(new LoggingNdefListener());
    final SnepClient snepClient = new SnepClient();
    ndefPushLlcpService = new NdefPushLlcpService(ndefListener);
    LlcpOverNfcip llcpOverNfcip = new LlcpOverNfcip(new LlcpConnectionManagerFactory() {

      @Override
View Full Code Here

      e.printStackTrace();
    }
  }

  public static void main(String[] args) {
    LlcpService service = new LlcpService(new LoggingNdefListener(), new LoggingStatusListener());
    service.run2();
  }
View Full Code Here

  private boolean initiatorMode;
  private LlcpOverNfcip llcpOverNfcip;

  public LlcpDemo(boolean initiatorMode) {
    this.initiatorMode = initiatorMode;
    ndefPushLlcpService = new NdefPushLlcpService(new LoggingNdefListener());
    llcpOverNfcip = new LlcpOverNfcip(new LlcpConnectionManagerFactory() {

      @Override
      protected void configureConnectionManager(LlcpConnectionManager connectionManager) {
        connectionManager.registerWellKnownServiceAccessPoint(LlcpConstants.COM_ANDROID_NPP,
View Full Code Here

  @Test
  public void testSendReceiveNdefOverNPP() throws Exception {
    NotifyingNdefListener ndefListener = new NotifyingNdefListener(this);
    List<Record> records = new ArrayList<Record>();
    records.add(new UriRecord("http://www.nfctools.org"));
    NdefPushLlcpService ndefPushLlcpService = new NdefPushLlcpService(new LoggingNdefListener());
    ndefPushLlcpService.addMessages(records, null);
    NfcipHelper helper = new NfcipHelper(null, null, ndefListener, ndefPushLlcpService);
    helper.launch();
    synchronized (this) {
      wait(5000);
View Full Code Here

TOP

Related Classes of org.nfctools.utils.LoggingNdefListener

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.