Example usage for android.nfc.cardemulation HostApduService subclass-usage

List of usage examples for android.nfc.cardemulation HostApduService subclass-usage

Introduction

In this page you can find the example usage for android.nfc.cardemulation HostApduService subclass-usage.

Usage

From source file com.vsmartcard.acardemulator.EmulatorHostApduService.java

public class EmulatorHostApduService extends HostApduService {

    @Override
    public void onCreate() {
        super.onCreate();
        EmulatorSingleton.createEmulator(this);

From source file com.example.android.cardemulation.CardService.java

/**
 * This is a sample APDU Service which demonstrates how to interface with the card emulation support
 * added in Android 4.4, KitKat.
 * <p/>
 * <p>This sample replies to any requests sent with the string "Hello World". In real-world
 * situations, you would need to modify this code to implement your desired communication

From source file com.vsmartcard.acardemulator.EmulatorService.java

public class EmulatorService extends HostApduService {

    public static final String TAG = "com.vsmartcard.acardemulator.EmulatorService";
    public static final String EXTRA_CAPDU = "MSG_CAPDU";
    public static final String EXTRA_RAPDU = "MSG_RAPDU";
    public static final String EXTRA_ERROR = "MSG_ERROR";

From source file com.vsmartcard.acardemulator.SimulatorService.java

public class SimulatorService extends HostApduService {

    private static final boolean useVPCD = false;
    public static final int DEFAULT_PORT = 35963;
    private static final String hostname = "192.168.42.158";
    private int port = DEFAULT_PORT;