- 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.
- GitHub Essentials
- 大數據技術基礎
- Python數據分析與挖掘實戰
- Effective Amazon Machine Learning
- Learning JavaScriptMVC
- Hadoop與大數據挖掘(第2版)
- 深入淺出MySQL:數據庫開發、優化與管理維護(第2版)
- 軟件成本度量國家標準實施指南:理論、方法與實踐
- Ceph源碼分析
- 數據科學實戰指南
- Power BI智能數據分析與可視化從入門到精通
- 深入理解InfluxDB:時序數據庫詳解與實踐
- SIEMENS數控技術應用工程師:SINUMERIK 840D-810D數控系統功能應用與維修調整教程
- 數據挖掘競賽實戰:方法與案例
- Arquillian Testing Guide