更新时间:2021-07-16 11:37:37
coverpage
Near Field Communication with Android Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files eBooks discount offers and more
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Chapter 1. Getting Started with NFC
Introduction
Requesting NFC permissions
Indicating that your app uses NFC
Defining minimal requirements
Verifying whether the device has an NFC adapter
Downloading Open NFC Android Edition
Downloading Open NFC SDK Edition
Configuring the Open NFC Android add-on into your Android SDK
Configuring an NFC-enabled testing AVD
Configuring the Connection Center tool
Testing your app all together
Chapter 2. Detecting a Tag
Understanding the foreground dispatch system
Understanding the tag dispatch system
Verifying if your app started because of an NFC intent
Filtering tags by their content type
Filtering tags by their content type programmatically
Filtering tags by their technology
Filtering tags by their technology using programs
Filtering URI tags
Chapter 3. Writing Tag Content
Working with the NDEF record
Writing a URI-formatted record
Writing a text-formatted record
Using Android Application Record
Working with external types
Working with custom mimes
Chapter 4. Writing Tag Content – Real-life Examples
Making a phone call with one tap – Part 1
Sending a predefined SMS – Part 1
Visiting our website
Leaving a (small) note – Part 1
Chapter 5. Reading Tag Content
Obtaining NDEF Message from Intent
Getting the data out of the message
Reading a text-formatted record
Reading a URI-formatted record
Reading external types
Reading custom mimes
Chapter 6. Reading Tag Content – Real-life Examples
Making a phone call with one tap – Part 2
Sending a predefined SMS – Part 2
Leaving a (small) note – Part 2
Getting the tag information
Chapter 7. Sharing Content across Devices
Creating a basic peer-to-peer Hello World application
Sending texts to other devices
Sending a friend invite on Facebook
Inviting a friend to play a game – Part 1
Chapter 8. Error Handling and Content Validation
Handling tag-writing errors
Handling tag-reading errors
Testing the tag data for integrity
Chapter 9. Extending NFC
Turning other adapters on/off
Configuring a Wi-Fi network
Starting a Wi-Fi hotspot
Inviting a friend to play a game – Part 2
Controlling hotel room access with Arduino and NFC – Part 1
Controlling hotel room access with Arduino and NFC – Part 2
Chapter 10. Real-life Examples – NFC Utilities
Creating multi-action tags
Choosing the best format for our data
Locking tags
Joking with a friend
Index