The Art and Science of NFC Programming by Serge Miranda & Anne-Marie Lesas
Author:Serge Miranda & Anne-Marie Lesas [Serge Miranda]
Language: eng
Format: epub
Tags: Math & Science, Mobile, Web Development
Publisher: Wiley-ISTE
Published: 2017-01-09T16:00:00+00:00
Box 2.8. Android: initializing the NFC adapter
NfcAdapter nfcAdapter = NfcAdapter.getDefaultAdapter(this);
if (!nfcAdapter.isEnabled())
{
//Ask the user to activate the NFC option
}
NOTE.– It is to be noted that if no NFC controller is installed (in the case of a peripheral device that is not NFC enabled), the NFC adapter instance will be null. You will also need to test that the NFC option was properly activated by the user in the system configuration of the Android device (see Figure 2.22) with the isEnabled() method of the adapter, as shown in the source code of Box 2.8.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Antennas | Microwaves |
Mobile & Wireless | Networks |
Radar | Radio |
Remote Sensing & GIS | Satellite |
Signal Processing | Telephone Systems |
Television & Video |
Whiskies Galore by Ian Buxton(41503)
Introduction to Aircraft Design (Cambridge Aerospace Series) by John P. Fielding(32871)
Small Unmanned Fixed-wing Aircraft Design by Andrew J. Keane Andras Sobester James P. Scanlan & András Sóbester & James P. Scanlan(32545)
Craft Beer for the Homebrewer by Michael Agnew(17911)
Turbulence by E. J. Noyes(7672)
The Complete Stick Figure Physics Tutorials by Allen Sarah(7109)
Kaplan MCAT General Chemistry Review by Kaplan(6559)
The Thirst by Nesbo Jo(6417)
Bad Blood by John Carreyrou(6251)
Modelling of Convective Heat and Mass Transfer in Rotating Flows by Igor V. Shevchuk(6213)
Learning SQL by Alan Beaulieu(6005)
Weapons of Math Destruction by Cathy O'Neil(5798)
Man-made Catastrophes and Risk Information Concealment by Dmitry Chernov & Didier Sornette(5611)
Digital Minimalism by Cal Newport;(5342)
Life 3.0: Being Human in the Age of Artificial Intelligence by Tegmark Max(5159)
iGen by Jean M. Twenge(5135)
Secrets of Antigravity Propulsion: Tesla, UFOs, and Classified Aerospace Technology by Ph.D. Paul A. Laviolette(4884)
Design of Trajectory Optimization Approach for Space Maneuver Vehicle Skip Entry Problems by Runqi Chai & Al Savvaris & Antonios Tsourdos & Senchun Chai(4822)
Electronic Devices & Circuits by Jacob Millman & Christos C. Halkias(4713)
