Example usage for android.nfc.tech Ndef NFC_FORUM_TYPE_3

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

Introduction

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

Prototype

String NFC_FORUM_TYPE_3

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

Click Source Link

Document

NFC Forum Tag Type 4

Usage

From source file:Main.java

static String translateType(String type) {
    String translation;//from  w  ww  . ja v  a2  s . 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;
}