Example usage for android.nfc.tech Ndef NFC_FORUM_TYPE_2

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

Introduction

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

Prototype

String NFC_FORUM_TYPE_2

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

Click Source Link

Document

NFC Forum Tag Type 2

Usage

From source file:Main.java

static String translateType(String type) {
    String translation;/*from w  ww  .  j  a v  a2s  .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;
}