Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.annotation.SuppressLint;

import android.content.IntentFilter;

import android.nfc.NfcAdapter;

public class Main {

    @SuppressLint("InlinedApi")
    public static IntentFilter getTagFilter() {
        IntentFilter tag = new IntentFilter(NfcAdapter.ACTION_TAG_DISCOVERED);
        return tag;
    }
}