Android中NFC编程指南(Near Field Communication with Android Cookbook)-英文原版,0积分

所需积分/C币:10 2016-12-06 11:17:14 2.41MB PDF
13
收藏 收藏
举报

Android中NFC编程指南
Near field communication with Android Cookbook Copyright C 2014 Packt Publishing All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews Every effort has been made in the preparation of this book to ensure the accuracy of th information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or directly by this book Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information First published: June 2014 Production Reference: 1060614 Published by Packt Publishing Ltd Livery Place 35 Livery Street Birmingham B3 2PB, UK SBN978-1-78328965-3 www.packtpub.com CoverImagebyRavajiBabu(ravajibabu@outlook.com) Credits Author Project Coordinator Vitor subtil Wendell Palmer Proofreaders Reviewers Dion lough Simran Bhogal Maria gould Michael roland Ameesha Green Commissioning Editor Paul hindle Kunal Parikh Indexer Acquisition Editor Mariammal chettiyar Rebecca youe Production coordinator Content Development Editors Adonia jones Athira la Cover work Rikshith Shetty Adonia jones Technical editors Shubhangi dhamgaye Novina Kewalramani Pratik more Pratish soman Copy Editors Alisha aranha Radula hegde Adithi shetty About the Author 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 introduced to the nfc technology and became a fan thereafte uter engineering where he got He is currently pursuing his final year graduate studies in Comp 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 offline Storage, the History APl, and canvas. His current focus is on developing Android applications Id like to thank my girlfriend, Sandra, for all the time she spent helping me and all that she did for me in some difficult situations that occurred while writing this book. This book would have not been possible without her About the reviewers Dion Loughry has been professionally involved in the iT field for nearly 20 years now. While he has been managing the support for end users for the most of his career, he has always stayed on top of cutting-edge technology and innovation He has incorporated this habit as much as possible into his personal life and business as well. a great example of this was when he first saw a PC in 1980. He managed to save and borrow enough money to purchase one at that time. In addition, he quickly learned how to program in the basic language. His passion lies in using new technology at the workplace to improve efficiency as well as simplify life in general. NFC technology is the next great leap that provides a simplified way of and obtaining information he has been involved with the nfc technology for a number of years. He has always been a fan of Palm Technology and has worked with a few members of the original Palm development team. He is currently working on many applications for Android and Windows devices. This is a great step into the world of unplugged computing technology and information sharing, which has great potential, yet is widely untapped Michael Roland is a researcher at the nfc Research Lab hagenberg (University of Applied Sciences, Upper Austria). His main research interests are NFc, security, and android. He is the creator of NFc Taglnfo, one of the most successful nFc developer tools for Android devices and the co-author of the book Anwendungen und Technik von Near Field Communication (NFC), Springer Publishing. He holds a BSc and an MSc degree in Embedded Systems Design (University of Applied Sciences, Upper Austria, 2007 and 2009, respectively) and a PhD(Dr Techn. ) degree in Computer Science Johannes Kepler University LinZ, 2013) www.Packtpub.com Support files, eBooks, discount offers, and more Youmightwanttovisitwww.Packtpub.comforsupportfilesanddownloadsrelatedtoyour book Did you know that Packt offers eBook versions of every book published, with PDF and ePub filesavailableYoucanupgradetotheeBookversionatwww.Packtpub.comandasaprint book customer, you are entitled to a discount on the e Book copy. Get in touch with us at serviceapacktpub. com for more details Atwww.PacktPub.comyoucanalsoreadacollectionoffreetechnicalarticlessignup or a range of free newsletters and receive exclusive discounts and offers on Packt books and ebooks HIPACKTLiB http://packtlib.Packtpub.com Do you need instant solutions to your IT questions? PacktLib is Packt's online digital book library. Here, you can access, read and search across Packt's entire library of books Why Subscribe? Fully searchable across every book published by packt Copy and paste, print and bookmark content on demand and accessible via web browser Free Access for packt account holders IfyouhaveanaccountwithPacktatwww.PacktPubcomyoucanusethistoaccess PacktLib today and view nine entirely free books Simply use your login credentials for immediate access Table of contents Preface Chapter 1: Getting started with NFC Introduction Requesting NFc permissions 9 Indicating that your app uses NFc 11L Defining minimal requirements Verifying whether the device has an NFc adapter 12 Downloading Open NFC Android Edition 13 Downloading Open NFC SDK Edition 14 Configuring the Open NFC Android add-on into your Android SDK 15 Configuring an NFC-enabled testing AVD Configuring the Connection Center tool 20 Testing your app all together 22 Chapter 2: Detecting a Tag Introductlon 27 Understanding the foreground dispatch system 28 Understanding the tag dispatch system 31 Verifying if your app started because of an NFc intent 32 Filtering tags by their content type 33 Filtering tags by their content type programmatically 34 Filtering tags by their technology 36 Filtering tags by their technology using programs 38 Filtering URI tags 39 Chapter 3: Writing Tag content 43 Introduction 43 Working with the NdeF record 44 Writing a URI-formatted record 50 Writing a text-formatted record 54 Table of contents Using Android Application Record 56 Working with external types 58 Working with custom mimes 60 Chapter 4: Writing Tag Content-Real-life Examples 65 Introduction 65 Making a phone call with one tap-Part 1 66 Sending a predefined sMs- Part 1 75 Visiting our website 84 Leaving a(small)note- Part 1 91 Chapter 5: Reading Tag content 99 Introduction 99 obtaining NDeF Message from Intent 99 Getting the data out of the message 102 Reading a text-formatted record 105 Reading a Url-formatted record 108 Reading external types 110 Reading custom mImes 112 Chapter 6: Reading Tag Content -Real-life Examples 115 Introduction 115 Making a phone call with one tap- Part 2 115 Sending a predefined SMs- Part 2 118 Leaving a(small)note- Part 2 121 Getting the tag Informatlon 124 Chapter 7: sharing content across Devices 133 Introduction 133 Creating a basic peer-to-peer Hello world application 134 Sending texts to other devices 138 Sending a friend invite on Facebook 142 Inviting a frlend to play a game-Part 1 152 Chapter 8: Error Handling and content validation 161 Introduction 161 Handling tag-writing errors 161 Handling tag-reading errors 168 Testing the tag data for integrity 171 Chapter 9: Extending NFc 175 Introduction 175 Turning other adapters on/off 175 Configuring a Wi-Fi network 186 Starting a Wi-Fi hotspot 197 Table of contents nviting a friend to play a game- part 2 200 Controlling hotel room access with Arduino and nfc Part 1 219 Controlling hotel room access with Arduino and NFc- Part 2 227 Chapter 10: Real-life Examples -NFC Utilities 233 Introduction 233 Creating multi-action tags 233 Choosing the best format for our data 246 Locking tags 260 Joking wlth a frlend 267 Index 269 II

...展开详情
试读 127P Android中NFC编程指南(Near Field Communication with Android Cookbook)-英文原版,0积分
立即下载
限时抽奖 低至0.43元/次
身份认证后 购VIP低至7折
一个资源只可评论一次,评论内容不能少于5个字
您会向同学/朋友/同事推荐我们的CSDN下载吗?
谢谢参与!您的真实评价是我们改进的动力~
  • 分享王者

关注 私信
上传资源赚钱or赚积分
最新推荐
Android中NFC编程指南(Near Field Communication with Android Cookbook)-英文原版,0积分 10积分/C币 立即下载
1/127
Android中NFC编程指南(Near Field Communication with Android Cookbook)-英文原版,0积分第1页
Android中NFC编程指南(Near Field Communication with Android Cookbook)-英文原版,0积分第2页
Android中NFC编程指南(Near Field Communication with Android Cookbook)-英文原版,0积分第3页
Android中NFC编程指南(Near Field Communication with Android Cookbook)-英文原版,0积分第4页
Android中NFC编程指南(Near Field Communication with Android Cookbook)-英文原版,0积分第5页
Android中NFC编程指南(Near Field Communication with Android Cookbook)-英文原版,0积分第6页
Android中NFC编程指南(Near Field Communication with Android Cookbook)-英文原版,0积分第7页
Android中NFC编程指南(Near Field Communication with Android Cookbook)-英文原版,0积分第8页
Android中NFC编程指南(Near Field Communication with Android Cookbook)-英文原版,0积分第9页
Android中NFC编程指南(Near Field Communication with Android Cookbook)-英文原版,0积分第10页
Android中NFC编程指南(Near Field Communication with Android Cookbook)-英文原版,0积分第11页
Android中NFC编程指南(Near Field Communication with Android Cookbook)-英文原版,0积分第12页
Android中NFC编程指南(Near Field Communication with Android Cookbook)-英文原版,0积分第13页
Android中NFC编程指南(Near Field Communication with Android Cookbook)-英文原版,0积分第14页
Android中NFC编程指南(Near Field Communication with Android Cookbook)-英文原版,0积分第15页
Android中NFC编程指南(Near Field Communication with Android Cookbook)-英文原版,0积分第16页
Android中NFC编程指南(Near Field Communication with Android Cookbook)-英文原版,0积分第17页
Android中NFC编程指南(Near Field Communication with Android Cookbook)-英文原版,0积分第18页
Android中NFC编程指南(Near Field Communication with Android Cookbook)-英文原版,0积分第19页
Android中NFC编程指南(Near Field Communication with Android Cookbook)-英文原版,0积分第20页

试读结束, 可继续阅读

10积分/C币 立即下载