- Near Field Communication with Android Cookbook
- Vitor Subtil
- 321字
- 2021-07-16 11:37:23
Configuring the Open NFC Android add-on into your Android SDK
In this recipe, we will see how to set up the Open NFC Android Edition add-on in our existing Android SDK installation.
Getting ready
The following are the settings required for this recipe:
- Make sure that the Android SDK and the Open NFC add-on target Android version is installed. Since the Open NFC version used is targeting Android ICS 4.0.3, we need to have Android API level 15 installed. Navigate to https://developer.android.com/sdk/installing/adding-packages.html for instructions on how to install packages.
- Make sure you have downloaded Open NFC Android Edition—refer to the Downloading Open NFC Android Edition recipe.
- It's assumed that the Android SDK location is known and that Open NFC Android Edition was previously downloaded and extracted to the
NFCBook
folder in your home directory.
Note
Downloading the example code
You can download the example code files for all Packt books you have purchased from your account at http://www.packtpub.com. If you purchased this book elsewhere, you can visit http://www.packtpub.com/support and register to have the files e-mailed directly to you.
How to do it…
We are going to configure the previously downloaded Open NFC plugin into our Android SKD installation as follows:
- Open the
NFCBook
folder and navigate to theOpen NFC for Android Edition
folder. - Copy the
add-ons
folder located inside theOpenNFC_AddOn
folder to your clipboard. - Navigate to the Android SDK installation folder.
- Paste the
add-ons
folder from your clipboard (copied in step 2) to the Android SDK folder. If asked to merge the two folders, select yes. - Start Android SDK Manager by installing the
SDK Manager.exe
file on Windows. You should see the Open NFC add-on under the Android version item, as shown in the following screenshot:

How it works…
The add-ons
folder in Open NFC Android Edition contains a modified image of the Android system. This modified image contains the simulator for the NFC controller.
推薦閱讀
- 數據存儲架構與技術
- 大規模數據分析和建模:基于Spark與R
- 數據可視化:從小白到數據工程師的成長之路
- Word 2010中文版完全自學手冊
- 數據之巔:數據的本質與未來
- Voice Application Development for Android
- InfluxDB原理與實戰
- Python廣告數據挖掘與分析實戰
- 企業大數據系統構建實戰:技術、架構、實施與應用
- MySQL從入門到精通(第3版)
- 圖解機器學習算法
- Libgdx Cross/platform Game Development Cookbook
- Proxmox VE超融合集群實踐真傳
- 大數據技術原理與應用:概念、存儲、處理、分析與應用
- Node.js High Performance