Search in sources :

Example 21 with NfcAdapter

use of android.nfc.NfcAdapter in project android_frameworks_base by ResurrectionRemix.

the class NfcFCardEmulation method recoverService.

void recoverService() {
    NfcAdapter adapter = NfcAdapter.getDefaultAdapter(mContext);
    sService = adapter.getNfcFCardEmulationService();
}
Also used : NfcAdapter(android.nfc.NfcAdapter)

Example 22 with NfcAdapter

use of android.nfc.NfcAdapter in project android_frameworks_base by crdroidandroid.

the class CardEmulation method recoverService.

void recoverService() {
    NfcAdapter adapter = NfcAdapter.getDefaultAdapter(mContext);
    sService = adapter.getCardEmulationService();
}
Also used : NfcAdapter(android.nfc.NfcAdapter)

Aggregations

NfcAdapter (android.nfc.NfcAdapter)22 Activity (android.app.Activity)4 NdefMessage (android.nfc.NdefMessage)3 NdefRecord (android.nfc.NdefRecord)3 NfcEvent (android.nfc.NfcEvent)2 SuppressLint (android.annotation.SuppressLint)1 Fragment (android.app.Fragment)1 ComponentName (android.content.ComponentName)1 Intent (android.content.Intent)1 PackageManager (android.content.pm.PackageManager)1 NameNotFoundException (android.content.pm.PackageManager.NameNotFoundException)1 ResolveInfo (android.content.pm.ResolveInfo)1 Resources (android.content.res.Resources)1 WifiConfiguration (android.net.wifi.WifiConfiguration)1 Tag (android.nfc.Tag)1 Bundle (android.os.Bundle)1 UserManager (android.os.UserManager)1 PreferenceFragment (android.preference.PreferenceFragment)1 Preference (android.support.v7.preference.Preference)1 InputMethodManager (android.view.inputmethod.InputMethodManager)1