ebook img

Near Field Communication with Android Cookbook PDF

484 Pages·2015·2.84 MB·English
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview Near Field Communication with Android Cookbook

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

Description:
Near Field Communication with Android Cookbook. Credits. About the Author. About the Reviewers www.PacktPub.com. Support files, eBooks
See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.