Near Field Communication with Android Cookbook


Near Field Communication with Android Cookbook
eBook: $26.99
Formats: PDF, PacktLib, ePub and Mobi formats
$22.94
save 15%!
Print + free eBook + free PacktLib access to the book: $71.98    Print cover: $44.99
$44.99
save 37%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Overview
Table of Contents
Author
Support
Sample Chapters
  • Practical and real-life examples showing how and where NFC can be used
  • Discover how to exploit NFC capabilities to enhance your apps to easily share and interact with the world
  • Learn how to extend cross-device content sharing by taking advantage of Android Beam's capabilities

Book Details

Language : English
Paperback : 286 pages [ 235mm x 191mm ]
Release Date : June 2014
ISBN : 1783289651
ISBN 13 : 9781783289653
Author(s) : Vitor Subtil
Topics and Technologies : All Books, Cookbooks, Open Source


Table of Contents

Preface
Chapter 1: Getting Started with NFC
Chapter 2: Detecting a Tag
Chapter 3: Writing Tag Content
Chapter 4: Writing Tag Content – Real-life Examples
Chapter 5: Reading Tag Content
Chapter 6: Reading Tag Content – Real-life Examples
Chapter 7: Sharing Content across Devices
Chapter 8: Error Handling and Content Validation
Chapter 9: Extending NFC
Chapter 10: Real-life Examples – NFC Utilities
Index
  • 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
    • Introduction
    • 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
    • Introduction
    • 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 5: Reading Tag Content
    • Introduction
    • 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 7: Sharing Content across Devices
    • Introduction
    • 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 9: Extending NFC
    • Introduction
    • 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

Vitor Subtil

Vitor Subtil has been a web developer since 2009 and has been working with ASP.NET, C#, Oracle, and FluentNhibernate in the development of Enterprise Management applications. He started using MVC and SOA quite recently.

He is currently pursuing his final year graduate studies in Computer Engineering, where he got introduced to the NFC technology and became a fan thereafter.

He is enthusiastic about new technologies such as HTML5, CSS3, and Android. He loves using the JQuery framework for JavaScript programming and uses new features of HTML5 such as OfflineStorage, the History API, and Canvas. His current focus is on developing Android applications.

Sorry, we don't have any reviews for this title yet.

Code Downloads

Download the code and support files for this book.


Submit Errata

Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.

Sample chapters

You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

Frequently bought together

Near Field Communication with Android Cookbook +    Mastering Kali Linux for Advanced Penetration Testing =
50% Off
the second eBook
Price for both: €31.25

Buy both these recommended eBooks together and get 50% off the cheapest eBook.

What you will learn from this book

  • Work with the foreground dispatch system NFC data exchange format
  • Create several applications to consolidate knowledge and see what NFC can be used for
  • Read and write tags with URI, text, mime, and external types
  • Share content across two NFC-enabled devices
  • Extend NFC usage using Bluetooth and Wi-Fi
  • Combine NFC with social networks and games
  • Use Open NFC for Android to set up a virtual development and testing environment

In Detail

Near Field Communication, or simply NFC, is an emerging technology with endless applicability. Its low battery consumption and simplicity are the keys to its success.

Near Field Communication with Android Cookbook is a hands-on book that will help you to set up your development environment, get to know the basics of NFC, and then use what you learn to create more enhanced and practical applications. This practical guide will teach you all you need know about NFC to get you started in developing outstanding out-of-the-box applications.

Approach

An easy-to-follow guide, full of hands-on examples of and real-world applications. Each recipe is explained and placed in context.

Who this book is for

If you want to learn how to create NFC-enabled Android applications, this is the book for you. Perhaps you already know a bit about Android application developments but have never used NFC, or perhaps you know a little about NFC android development but want some more advanced features and examples. In either case, this book will get you up and running quickly. You are expected to have Android programming knowledge.

Code Download and Errata
Packt Anytime, Anywhere
Register Books
Print Upgrades
eBook Downloads
Video Support
Contact Us
Awards Voting Nominations Previous Winners
Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Resources
Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software