万本电子书0元读

万本电子书0元读

顶部广告

Near Field Communication with Android Cookbook电子书

售       价:¥

2人正在读 | 0人评论 9.8

作       者:Vitor Subtil

出  版  社:Packt Publishing

出版时间:2014-06-13

字       数:97.1万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
An easy-to-follow guide, full of hands-on examples of and real-world applications. Each recipe is explained and placed in context. 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.
目录展开

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…

How it works…

Choosing the best format for our data

How to do it…

How it works…

Locking tags

How to do it…

How it works…

Joking with a friend

Getting ready

How to do it…

How it works…

Index

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部