Details

Professional NFC Application Development for Android


Professional NFC Application Development for Android


1. Aufl.

von: Vedat Coskun, Kerem Ok, Busra Ozdenizci

27,99 €

Verlag: Wiley
Format: PDF
Veröffentl.: 02.04.2013
ISBN/EAN: 9781118380543
Sprache: englisch
Anzahl Seiten: 312

DRM-geschütztes eBook, Sie benötigen z.B. Adobe Digital Editions und eine Adobe ID zum Lesen.

Beschreibungen

<p><b>A practical guide to developing and deploying Near Field Communication (NFC) applications</b></p> <p>There has been little practical guidance available on NFC programming, until now. If you're a programmer or developer, get this unique and detailed book and start creating apps for this exciting technology. NFC enables contactless mobile communication between two NFC-compatible devices. It's what allows customers to pay for purchases by swiping their smartphones with Google Wallet, for example. This book shows you how to develop NFC applications for Android, for all NFC operating modes: reader/writer, peer-to-peer, and card emulation.</p> <p>The book starts with the basics of NFC technology, an overview of the Android OS, and what you need to know about the SDK tools. It then walks you through all aspects of NFC app development, including SE programming. You'll find all you need to create an app, including functioning, downloadable code and a companion website with additional content. Valuable case studies help you understand each operating mode in clear, practical detail.</p> <ul> <li>Shows programmers and developers how to develop Near Field Communication (NFC) applications for Android, including Secure Element (SE) programming</li> <li>Expert authors are NFC researchers who have a deep knowledge of the subject</li> <li>Covers app development in all NFC operating modes: reader/writer, peer-to-peer, and card emulation</li> <li>Includes valuable case studies that showcase several system design and analysis methods, such as activity diagram, class diagram, UML, and others</li> </ul> <p><i>Professional NFC Application Development for Android</i> offers the clear, concise advice you need to create great applications for this emerging and exciting technology.</p>
<p>Introduction xix</p> <p><b>Chapter 1: Overview of Near Field Communication 1</b></p> <p>Ubiquitous Computing and NFC 2</p> <p>Wireless Communication as NFC 3</p> <p>RFID Technology 5</p> <p>Essentials of an RFID System 6</p> <p>Common RFID Applications 6</p> <p>Smart Card Technology 7</p> <p>Types of Smart Cards: Capability-Based Classification 7</p> <p>SCOS 8</p> <p>Types of Smart Cards: Mechanism-Based Classification 9</p> <p>Common Smart Card Applications 10</p> <p>NFC Technology 10</p> <p>NFC Devices 13</p> <p>NFC Operating Modes 14</p> <p>NFC Applications 18</p> <p>Summary 22</p> <p><b>Chapter 2: NFC Essentials for Application Developers 23</b></p> <p>NFC Mobile 24</p> <p>SE 25</p> <p>NFC Interface 28</p> <p>Interface Between SE and NFC Controller 29</p> <p>HCI 31</p> <p>Standards Used by NFC 32</p> <p>Proximity Contactless Smart Card Standards 33</p> <p>NFCIP 35</p> <p>NFC Operating Mode Essentials 35</p> <p>Reader/Writer Mode 36</p> <p>Peer-to-Peer Mode 45</p> <p>Card Emulation Mode 48</p> <p>Standardization of NFC 49</p> <p>Diversity of NFC Platforms 50</p> <p>Summary 51</p> <p><b>Chapter 3: Getting Started with Android 53</b></p> <p>What Is Android? 54</p> <p>Linux Kernel 55</p> <p>Android Runtime 56</p> <p>Libraries 56</p> <p>Application Framework 56</p> <p>Applications 56</p> <p>Android SDK 56</p> <p>What You Need to Start 56</p> <p>JDK and JRE 57</p> <p>Android SDK 57</p> <p>Adding More Platforms and Other Components to the SDK 59</p> <p>SDK Packages 62</p> <p>Android API Levels 63</p> <p>Structure of Android Applications 65</p> <p>Android Application Components 65</p> <p>Intents 66</p> <p>Intent Filters 66</p> <p>Manifest File 67</p> <p>Application Requirements 68</p> <p>Application Resources 69</p> <p>Processes and Threads 69</p> <p>Dalvik Virtual Machine (DVM) 71</p> <p>Platform Tools 71</p> <p>SDK Tools 72</p> <p>Android Virtual Device 74</p> <p>Summary 75</p> <p><b>Chapter 4: Android Software Development Primer 77</b></p> <p>Creating Your First Android Application 78</p> <p>Components of the Project 81</p> <p>Running the Project 83</p> <p>Running Applications on Your Mobile Phone 83</p> <p>Running Applications Instantly 84</p> <p>Running Applications by Manual Installation 84</p> <p>Distributing Android Applications 85</p> <p>1. Gathering Materials and Resources 85</p> <p>2. Configuring the Application for Release 85</p> <p>3. Compiling and Signing with Eclipse ADT 86</p> <p>4. Publishing on Google Play 87</p> <p>Understanding Hello World 87</p> <p>Using Multiple Views 90</p> <p>Android Project Resources 90</p> <p>Alternative Resources 91</p> <p>Accessing Resources 92</p> <p>Using an Event Listener 92</p> <p>Layout 92</p> <p>Resources 94</p> <p>Code 94</p> <p>Using Relative Layout 95</p> <p>Using Dialog Builders 97</p> <p>Layout 98</p> <p>Resources 98</p> <p>Code 98</p> <p>Using Grid Layout 100</p> <p>Android Activity Lifecycle 102</p> <p>Implementing Multiple Activities and Intents 104</p> <p>Step 1: Creating the Layout File 105</p> <p>Step 2: Building the ListView 105</p> <p>Step 3: Implementing onItemClick 106</p> <p>Step 4: Editing AndroidManifest.xml 106</p> <p>Step 5: Creating a New Layout 107</p> <p>Step 6: Creating a New Activity 108</p> <p>Using Menu Items 108</p> <p>Creating a Menu XML File 110</p> <p>Layout 110</p> <p>Code 111</p> <p>Summary 112</p> <p><b>Chapter 5: NFC Programming: Reader/Writer Mode 115</b></p> <p>NFC APIs in Android 116</p> <p>android.nfc package 116</p> <p>android.nfc.tech package 117</p> <p>Tag Intent Dispatch System vs. Foreground Dispatch System 117</p> <p>NFC Tag Intent Dispatch System 118</p> <p>How NFC Tags Are Dispatched to Applications 118</p> <p>How Android Handles NDEF-Formatted Tags 120</p> <p>NFC Properties in the Android Manifest File 121</p> <p>Filtering NFC Intents 122</p> <p>Action_NDEF_Discovered 122</p> <p>Action_TECH_Discovered 125</p> <p>Action_TAG_Discovered 127</p> <p>Checking NFC Adapter 127</p> <p>Tag Writing 128</p> <p>Preparing NDEF Data 128</p> <p>Writing NDEF Data to Tags 132</p> <p>Tag Reading 135</p> <p>Getting an NDEF Message 135</p> <p>Processing an NDEF Message 136</p> <p>Android Application Record 140</p> <p>How It Works 140</p> <p>Intent Filters vs. AAR 141</p> <p>Important Notes on AAR 141</p> <p>Using AAR 141</p> <p>Foreground Dispatch System 141</p> <p>Working with Supported Tag Technologies 143</p> <p>Getting Available Tag Technologies 144</p> <p>NfcV Example 145</p> <p>Summary 147</p> <p><b>Chapter 6: Reader/Writer Mode Applications 149</b></p> <p>NFC Smart Poster Use Case 150</p> <p>Smart Poster Tag Writer Application 150</p> <p>Smart Poster Reader Application 161</p> <p>NFC Shopping Use Case 169</p> <p>NFC Shopping Tag Writer Application 170</p> <p>NFC Shopping Main Application 172</p> <p>Student Transportation Tracking Use Case 175</p> <p>Student Tracking Tag Writer Application 176</p> <p>Student Tracking Main Application 177</p> <p>Summary 179</p> <p><b>Chapter 7: NFC Programming: Peer-To-Peer Mode 181</b></p> <p>Performing Peer-to-Peer Transactions 182</p> <p>Beaming NDEF Messages 183</p> <p>Beaming with setNdefPushMessageCallback( ) 183</p> <p>Beaming with setNdefPushMessage( ) 184</p> <p>Common Notes 184</p> <p>Receiving Beams 185</p> <p>An Abstract Beam with setNdefPushMessageCallback( ) 185</p> <p>An Abstract Beam with setNdefPushMessage( ) 186</p> <p>Declaring Intent Filters 187</p> <p>Using Android Application Records in Peer-to-Peer Mode 187</p> <p>An Example Beam Application Using setNdefPushMessageCallback( ) 187</p> <p>An Example Beam Application Using setNdefPushMessage( ) 191</p> <p>Beam Support for API Level 10 196</p> <p>Beaming with enableForegroundNdefPush( ) 196</p> <p>An Example Beam Application Using enableForegroundNdefPush( ) 196</p> <p>Android OS to Handle the Incoming Beam 199</p> <p>Beaming Files 203</p> <p>Beaming with setBeamPushUrisCallback( ) 203</p> <p>Beaming with setBeamPushUris( ) 204</p> <p>An Example Beam Application Using setBeamPushUrisCallback( ) 204</p> <p>An Example Beam Application using setBeamPushUris( ) 204</p> <p>Summary 205</p> <p><b>Chapter 8: Peer-To-Peer Mode Applications 207</b></p> <p>NFC Chatting 208</p> <p>NFC Guess Number 215</p> <p>NFC Panic Bomb 221</p> <p>Summary 227</p> <p><b>Chapter 9: NFC Programming: Card Emulation Mode 229</b></p> <p>Definition of Card Emulation Mode 230</p> <p>Business Ecosystem 230</p> <p>Stakeholders in an NFC Ecosystem 231</p> <p>Business Models 232</p> <p>Business Model Alternatives 232</p> <p>General Revenue/Expenditure Flow Model 235</p> <p>Card Emulation Mode Use Case Alternatives 236</p> <p>Cashless Payment 236</p> <p>Mobile Wallet 237</p> <p>Ticketing 237</p> <p>Loyalty Cards 237</p> <p>Coupons 237</p> <p>Card Emulation Mode Programming 238</p> <p>Programming Secure Elements 238</p> <p>Programming NFC Reader 240</p> <p>Programming Android Applications 240</p> <p>Enabling Android OS Access to SE 242</p> <p>Setting up the Platform 243</p> <p>Accessing SE 244</p> <p>Summary 246</p> <p>Appendix A: Uri Prefixes for NDEF 247</p> <p>Appendix B: Android NFC Packages 249</p> <p>Index 265</p>
<p><b>Vedat Coskun</b> established NFC Lab - Istanbul (NFCLab.com), the leading research lab on Near Field Communication technology worldwide. His major research areas are NFC, mobility, mobile application development, cashless payment, smartcards, Java technology, and mobile security. <p><b>Kerem Ok</b> and <b>Busra Ozdenizci</b> are researchers at NFC Lab - Istanbul who have participated in several groundbreaking NFC technology projects.
<p><b>Everything you need to start building killer NFC Android apps right away</b> <p>With the popularity of apps like Google Wallet and Android Beam, users are increasingly demanding NFC-enabled applications for their Android devices. Every day sees new apps coming online for everything from smart posters to social networking, health monitoring to ticket purchasing. <p>Yet, surprisingly, until now, there have been few practical guides available for developing NFC apps for Android. <p>Written for experienced Android programmers, this book delivers: <ul> <li>What you need to know about the NFC APIs in Android</li> <li>Practical coverage of all operating modes—reader/writer, peer-to-peer, and card emulation</li> <li>Guidance on working with Android's NFC Tag Intent Dispatch System</li> <li>Details of performing Peer-to-Peer Transactions</li> <li>Real-life case studies illustrating development for smart poster, remote shopping, game programming, peer-to-peer messaging, and other NFC systems</li> <li>Tons of valuable source code to help streamline the development process</li> </ul> <p>Professional NFC Application Development for Android offers the step-by-step guidance, expert advice, and insider tips you need to hop on the NFC bandwagon and start creating brilliant NFC apps for Android devices in no time.

Diese Produkte könnten Sie auch interessieren:

Domain Architectures
Domain Architectures
von: Daniel J. Duffy
PDF ebook
31,99 €