- 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.
推薦閱讀
- 漫話大數(shù)據(jù)
- MySQL高可用解決方案:從主從復制到InnoDB Cluster架構(gòu)
- 有趣的二進制:軟件安全與逆向分析
- Python金融大數(shù)據(jù)分析(第2版)
- Creating Mobile Apps with Sencha Touch 2
- 文本數(shù)據(jù)挖掘:基于R語言
- SQL查詢:從入門到實踐(第4版)
- Oracle高性能自動化運維
- 數(shù)據(jù)驅(qū)動:從方法到實踐
- Python金融實戰(zhàn)
- MySQL技術內(nèi)幕:SQL編程
- Doris實時數(shù)倉實戰(zhàn)
- 智慧城市中的大數(shù)據(jù)分析技術
- 云計算寶典:技術與實踐
- 大數(shù)據(jù)與機器學習:實踐方法與行業(yè)案例