Example usage for android.nfc NdefRecord createExternal

List of usage examples for android.nfc NdefRecord createExternal

Introduction

In this page you can find the example usage for android.nfc NdefRecord createExternal.

Prototype

public static NdefRecord createExternal(String domain, String type, byte[] data) 

Source Link

Document

Create a new NDEF Record containing external (application-specific) data.

Use this method to encode application specific data into an NDEF Record.

Usage

From source file:st.alr.homA.ActivityQuickpublishNfc.java

private NdefRecord createRecord(String text) {
    byte[] textBytes = text.getBytes();
    NdefRecord recordNFC = NdefRecord.createExternal("st.alr.homa", "nfc", textBytes);
    return recordNFC;
}