Created
December 22, 2014 16:31
-
-
Save miguelcardo/daf554881051e3544dd2 to your computer and use it in GitHub Desktop.
Instantiate the NFC Adapter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@AfterViews | |
void setupNFC(){ | |
mAdapter = NfcAdapter.getDefaultAdapter(this); | |
if (!mAdapter.isEnabled()) { | |
Log.i(TAG, "NFC is not enabled. This is an error"); | |
showTurnNFCDialog(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment