1. Trang chủ
  2. » Công Nghệ Thông Tin

professional nfc application development for android

316 563 1

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 316
Dung lượng 13,69 MB

Nội dung

www.it-ebooks.info www.it-ebooks.info PROFESSIONAL NFC APPLICATION DEVELOPMENT FOR ANDROID™ INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xix CHAPTER 1 Overview of Near Field Communication . . . . . . . . . . . . . . . . . . . . . . . . . . . .1 CHAPTER 2 NFC Essentials for Application Developers . . . . . . . . . . . . . . . . . . . . . . . 23 CHAPTER 3 Getting Started with Android . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 CHAPTER 4 Android Software Development Primer . . . . . . . . . . . . . . . . . . . . . . . . . . . 77 CHAPTER 5 NFC Programming: Reader/Writer Mode . . . . . . . . . . . . . . . . . . . . . . . . . . 115 CHAPTER 6 Reader/Writer Mode Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149 CHAPTER 7 NFC Programming: Peer-to-Peer Mode . . . . . . . . . . . . . . . . . . . . . . . . . . .181 CHAPTER 8 Peer-to-Peer Mode Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207 CHAPTER 9 NFC Programming: Card Emulation Mode . . . . . . . . . . . . . . . . . . . . . . . 229 APPENDIX A URI Prefi xes for NDEF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 247 APPENDIX B Android NFC Packages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 249 INDEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 265 www.it-ebooks.info www.it-ebooks.info PROFESSIONAL NFC Application Development for Android™ www.it-ebooks.info www.it-ebooks.info PROFESSIONAL NFC Application Development for Android™ Vedat Coskun Kerem Ok Busra Ozdenizci www.it-ebooks.info © 2013 John Wiley & Sons, Ltd. Registered of ce John Wiley & Sons Ltd, The Atrium, Southern Gate, Chichester, West Sussex, PO19 8SQ, United Kingdom For details of our global editorial of ces, for customer services and for information about how to apply for permission to reuse the copyright material in this book please see our website at www.wiley.com. The right of the author to be identi ed as the author of this work has been asserted in accordance with the Copyright, Designs and Patents Act 1988. All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, photocopying, recording or otherwise, except as permitted by the UK Copyright, Designs and Patents Act 1988, without the prior permission of the publisher. Wiley also publishes its books in a variety of electronic formats. Some content that appears in print may not be available in electronic books. Designations used by companies to distinguish their products are often claimed as trademarks. All brand names and product names used in this book are trade names, service marks, trademarks or registered trademarks of their respective owners. The publisher is not associated with any product or vendor mentioned in this book. This publication is designed to provide accurate and authoritative information in regard to the subject matter covered. It is sold on the understanding that the publisher is not engaged in rendering professional services. If professional advice or other expert assistance is required, the services of a competent professional should be sought. Limit of Liability/Disclaimer of Warranty: The publisher and the author make no representations or warranties with respect to the accuracy or completeness of the contents of this work and speci cally disclaim all warranties, including without limitation warranties of  tness for a particular purpose. No warranty may be created or extended by sales or promotional materials. The advice and strategies contained herein may not be suitable for every situation. This work is sold with the understanding that the publisher is not engaged in rendering legal, accounting, or other professional services. If professional assistance is required, the services of a competent professional person should be sought. Neither the publisher nor the author shall be liable for damages arising herefrom. The fact that an organization or Web site is referred to in this work as a citation and/or a potential source of further information does not mean that the author or the publisher endorses the information the organization or Web site may provide or recommendations it may make. Further, readers should be aware that Internet Web sites listed in this work may have changed or disappeared between when this work was written and when it is read. Trademarks: Wiley, the Wiley logo, Wrox, the Wrox logo, Wrox Programmer to Programmer, and related trade dress are trademarks or registered trademarks of John Wiley & Sons, Inc. and/or its af liates, in the United States and other coun- tries, and may not be used without written permission. Android is a trademark of Google, Inc. All other trademarks are the property of their respective owners. John Wiley & Sons, Ltd. is not associated with any product or vendor mentioned in this book. A catalogue record for this book is available from the British Library. 978-1-118-38009-3 (paperback) 978-1-118-38056-7 (ePub) 978-1-118-38055-0 (eMobi) 978-1-118-38054-3 (ePDF) Set in 9.5/12 Sabon LT Std Roman, by MPS Limited, Chennai Printed in the United States at Bind-Rite www.it-ebooks.info My beloved love; Istanbul, the magni cent I am so lucky to be born out of you, and my passionate ambition is to be buried into you as well. —V C To my dear family. Her zaman yanımda olan aileme. —K O To my lovely family and Ugurcan who encouraged me to do my best. —B O www.it-ebooks.info www.it-ebooks.info [...]... WITH ANDROID What Is Android? 53 54 Linux Kernel Android Runtime Libraries Application Framework Applications 55 56 56 56 56 Android SDK What You Need to Start 56 56 JDK and JRE Android SDK Adding More Platforms and Other Components to the SDK SDK Packages Android API Levels Structure of Android Applications Android Application Components Intents Intent Filters Manifest File Application Requirements Application. .. CHAPTER 5: NFC PROGRAMMING: READER/WRITER MODE NFC APIs in Android 115 116 android .nfc package android .nfc. tech package 116 117 Tag Intent Dispatch System vs Foreground Dispatch System NFC Tag Intent Dispatch System How NFC Tags Are Dispatched to Applications How Android Handles NDEF-Formatted Tags NFC Properties in the Android Manifest File Filtering NFC Intents ACTION_NDEF_DISCOVERED ACTION_TECH_DISCOVERED... background for NFC technology ➤ Ubiquitous computing and wireless communication aspects for NFC ➤ Evolution of NFC technology: RFID and contactless smart card technologies ➤ An introduction to NFC technology and NFC devices: NFC tag, NFC reader, and NFC mobile ➤ NFC operating modes with generic usage models ➤ Examples for NFC applications in terms of operating modes Currently, Near Field Communication (NFC) ... not suitable for individual entrepreneurs This book will give the reader a solid and complete understanding of NFC technology, NFC application development essentials on Android technology, and NFC business ecosystem We provide information on NFC technology (i.e., NFC operating modes and technical essentials), an introduction to Android programming technology, NFC programming essentials on Android technology,... THIS BOOK For NFC programming on Android, fi rst you need to create an Android development environment The most suitable way to do that is to install Android Development Tools (ADT) Bundle ADT is available on Windows, MAC, and Linux operating systems Moreover, in order to test NFC reader/ writer mode applications, you need to have an NFC- enabled mobile phone and an NFC tag; in order to test NFC peer-to-peer... READER/WRITER MODE APPLICATIONS NFC Smart Poster Use Case Smart Poster Tag Writer Application Smart Poster Reader Application NFC Shopping Use Case 149 150 150 161 169 NFC Shopping Tag Writer Application NFC Shopping Main Application Student Transportation Tracking Use Case Student Tracking Tag Writer Application Student Tracking Main Application Summary 170 172 175 176 177 179 CHAPTER 7: NFC PROGRAMMING:... case studies, application development phases, and NFC business ecosystem and business model alternatives with some examples over the world With this book, solid information on NFC technology and application development is provided that meets the needs of people who are interested in NFC technology and its ecosystem, or practitioners interested in developing NFC projects NFC LAB – İSTANBUL NFC Lab – Istanbul... Platform Tools SDK Tools Android Virtual Device Summary CHAPTER 4: ANDROID SOFTWARE DEVELOPMENT PRIMER Creating Your First Android Application Components of the Project Running the Project 57 57 59 62 63 65 65 66 66 67 68 69 69 71 71 72 74 75 77 78 81 83 Running Applications on Your Mobile Phone 83 Running Applications Instantly Running Applications by Manual Installation 84 84 Distributing Android Applications... Summary 22 CHAPTER 2: NFC ESSENTIALS FOR APPLICATION DEVELOPERS NFC Mobile 23 24 SE NFC Interface Interface Between SE and NFC Controller HCI Standards Used by NFC 25 28 29 31 32 Proximity Contactless Smart Card Standards NFCIP NFC Operating Mode Essentials Reader/Writer Mode Peer-to-Peer Mode Card Emulation Mode 33 35 35 36 45 48 Standardization of NFC Diversity of NFC Platforms Summary 49 50 51 www.it-ebooks.info... acquainted with Android in enough detail The coverage of Android programming in this chapter is not extensive, but is enough to enable readers to continue with the later chapters on NFC programming using Android, as well as developing NFC applications further All the necessary information on the Android development environment is included as well, to provide the necessary preparation for readers without . 265 www.it-ebooks.info www.it-ebooks.info PROFESSIONAL NFC Application Development for Android www.it-ebooks.info www.it-ebooks.info PROFESSIONAL NFC Application Development for Android Vedat Coskun Kerem. Smart Card Applications 10 NFC Technology 10 NFC Devices 13 NFC Operating Modes 14 NFC Applications 18 Summary 22 CHAPTER 2: NFC ESSENTIALS FOR APPLICATION DEVELOPERS 23 NFC Mobile 24 SE 25 NFC Interface. MODE 115 NFC APIs in Android 116 android .nfc package 116 android .nfc. tech package 117 Tag Intent Dispatch System vs. Foreground Dispatch System 117 NFC Tag Intent Dispatch System 118 How NFC Tags

Ngày đăng: 05/05/2014, 16:30

TỪ KHÓA LIÊN QUAN