NFC call On Pause - Android Network

Android examples for Network:NFC

Description

NFC call On Pause

Demo Code


//package com.java2s;

import android.app.Activity;

import android.nfc.NfcAdapter;

public class Main {
    private static boolean mResumed = false;
    private static NfcAdapter mNfcAdapter;

    public static void callOnPause(Activity activity) {
        mResumed = false;/*from w  w w. java2s  .co  m*/
        mNfcAdapter.disableForegroundNdefPush(activity);
    }
}

Related Tutorials