Example usage for android.nfc.tech Ndef NFC_FORUM_TYPE_1

List of usage examples for android.nfc.tech Ndef NFC_FORUM_TYPE_1

Introduction

In this page you can find the example usage for android.nfc.tech Ndef NFC_FORUM_TYPE_1.

Prototype

String NFC_FORUM_TYPE_1

To view the source code for android.nfc.tech Ndef NFC_FORUM_TYPE_1.

Click Source Link

Document

NFC Forum Tag Type 1

Usage

From source file:Main.java

static String translateType(String type) {
    String translation;//from   ww  w.  jav  a 2s  .  c om
    if (type.equals(Ndef.NFC_FORUM_TYPE_1)) {
        translation = "NFC Forum Type 1";
    } else if (type.equals(Ndef.NFC_FORUM_TYPE_2)) {
        translation = "NFC Forum Type 2";
    } else if (type.equals(Ndef.NFC_FORUM_TYPE_3)) {
        translation = "NFC Forum Type 3";
    } else if (type.equals(Ndef.NFC_FORUM_TYPE_4)) {
        translation = "NFC Forum Type 4";
    } else {
        translation = type;
    }
    return translation;
}