- Near Field Communication with Android Cookbook
- Vitor Subtil
- 335字
- 2021-07-16 11:37:22
Downloading Open NFC Android Edition
Application development using a virtual device is very popular in Android. Using virtual devices lets you use adapters that you may not have in your real device and test your application in several Android versions. The NFC adapter is no exception; so, even if your smartphone isn't an NFC-enabled device, there is no excuse not to use this awesome technology.
Android SDK tools provide us with Android Virtual Devices (AVD), which are device emulator configurations that allow us to configure hardware and software options. Open NFC Android Edition allows us to create an NFC-enabled AVD since there is no native support for that. We can then simulate a tag tap or a P2P tap, and the correct intent is launched like it would be in a real device.
Getting ready
The following are the settings required for this recipe:
- Make sure you have a working Android development environment. If you don't, ADT Bundle is a good start. You can download it from http://developer.android.com/sdk/index.html.
- It is assumed that Eclipse is the development IDE for Android.
How to do it…
We are going to download, extract, and verify the Open NFC files that are needed to get our virtual test environment up and running, as shown in the following steps:
- Open a new browser window and navigate to http://open-nfc.org.
- On the left navigation menu, click on Downloads.
- On the download list, select the 4.4.1 Open NFC for Android release. The download link's name should be Android Edition (SDK).
At the time of writing this book, the current Open NFC release is 4.5.2 for Android 4.2.1, Jelly Bean; however, since this version has been reported to be faulty several times, we will use an older but stable version.
- Create a folder named
NFCBook
in your home directory and extract the downloaded archive. - There should be a folder named
android_sdk
and at least one folder namedOpenNFC_AddOn
in it, where we will find an Android image on which we will create our AVD.
- SQL入門經(jīng)典(第5版)
- 企業(yè)大數(shù)據(jù)系統(tǒng)構(gòu)建實戰(zhàn):技術(shù)、架構(gòu)、實施與應(yīng)用
- 大數(shù)據(jù):規(guī)劃、實施、運維
- Python數(shù)據(jù)分析:基于Plotly的動態(tài)可視化繪圖
- 數(shù)據(jù)驅(qū)動:從方法到實踐
- Python金融實戰(zhàn)
- SQL優(yōu)化最佳實踐:構(gòu)建高效率Oracle數(shù)據(jù)庫的方法與技巧
- Oracle PL/SQL實例精解(原書第5版)
- 淘寶、天貓電商數(shù)據(jù)分析與挖掘?qū)崙?zhàn)(第2版)
- SAS金融數(shù)據(jù)挖掘與建模:系統(tǒng)方法與案例解析
- MySQL技術(shù)內(nèi)幕:SQL編程
- MySQL DBA修煉之道
- Oracle 11g+ASP.NET數(shù)據(jù)庫系統(tǒng)開發(fā)案例教程
- MySQL技術(shù)內(nèi)幕:InnoDB存儲引擎
- 云工作時代:科技進(jìn)化必將帶來的新工作方式