Android Edition

Quick access: overview , compilation , requirements , latest news

 

Overview

The Open NFC for Android Edition content is similar to the Linux Edition, with in addition the Java bindings, services, and tools to support Android platform and applications. It is designed to be built within the Android build system.

Unlike the Linux Edition, the Android Edition’s archive only contains the Android SDK files and documentation. The source code of the Android porting, required to re-build an Android File System (AFS) image with Open NFC, must be retrieved separately. This process is described in the document MAN_NFC_1108-272 entitled “Quick Porting Guide“.

Here is what you can do with this Edition:

If you retrieve the source code of the Android porting, as detailed in MAN_NFC_1108-272 (Quick Porting Guide), you can in addition:

What you cannot do:

Back to top

 

Compilation quick HOWTO

Please read the document MAN_NFC_1108-272 entitled “Quick Porting Guide” for simple instructions on how to recompile the Android File System image with Open NFC.

If you are a new user of Android and intending to develop NFC applications for this platform, the following steps will get you started on Microsoft Windows environment. Note however that if you want to rebuild the Android File System, you will need a Linux machine for doing so.

  1. Install the Android SDK from official home page. You will have to install the “SDK Platform Android 2.3.3, API10, revision N” package at least.
  2. Extract the content of the Open NFC archive, then copy the Open NFC image (android_sdk/add-ons/addon_open_nfc) into the “add-ons” folder of the Android SDK you installed in previous step.
  3. 4.3.1 specific: Use the UPDATED AVD image that can be found in the Downloads.
  4. Open the “SDK Manager” application from the Android SDK.
  5. Go to the “Virtual Devices” list item and select “New” (see here for more explanation)
  6. Name your new AVD, then select the Open NFC target (“OpenNFC 2.3.5 Add-On”).
  7. You can leave all other fields to default value, and click on “Create AVD”.
  8. Now, in the AVD list, your new device appears. Select this device and click “Start”.
  9. In parallel, on your machine, start the Connection Center application and configure to accept client connections from other machines (you have to restart the Connection Center after changing this option; don’t forget to allow connections through your firewall).
  10. Start the NFC Simulator application on your machine.
  11. Within the Android Emulator, go to the application panel, then select the “Settings Open NFC” application.
  12. In the Connection Center IP address field, enter “10.0.2.2″ (see here for more information).
  13. Select the Simulator as NFC HAL Implementation
  14. Tap the “Enable/Disable NFC” checkbox. If everything goes as expected, your Android emulator is now connected to the Connection Center and NFC Simulator.
  15. You can “present a tag” by double-clicking on a virtual card in the NFC Simulator application, and see the result in your Android Emulator window.

For more information on how to develop NFC applications with Android, please refer to the official Android documentation: http://developer.android.com/guide/topics/nfc/index.html. The Open NFC for Android stack is fully compliant with the native Android API.

If you want to use extended NFC features not belonging to this standard API, you will have to re-compile the Android file system (please check with Google for the terms of the “anti-fragmentation policy”):

As always, device makers are free to modify Android to customize any range of features for Android devices. This enables device makers to support the unique and differentiating functionality of their products. If someone wishes to market a device as Android-compatible or include Google applications on the device, we do require the device to conform with some basic compatibility requirements. (After all, it would not be realistic to expect Google applications – or any applications for that matter – to operate flawlessly across incompatible devices). Our “anti-fragmentation” program has been in place since Android 1.0 and remains a priority for us to provide a great user experience for consumers and a consistent platform for developers. In fact, all of the founding members of the Open Handset Alliance agreed not to fragment Android when we first announced it in 2007. [source]

Back to top

 

Requirements

In order to develop applications for Android using Open NFC, you will have to comply to the requirements of the Android SDK. Please check on Android SDK home page for more information.

The requirements for running the Connection Center and NFC Simulator tools are listed here.

In order to re-compile the complete Android File System image with included Open NFC, you will need an environment compliant with the Android Build Environment described here.

A device that can run the Android operating system is necessarily powerful enough to run the Open NFC software stack, there is no additional requirements in this area.

Back to top

 

Recent news in this Edition

2012/04/12

We are happy to announce the new Open NFC 4.4.1 is now available for the Android platform. This release is targetted to Ice Cream Sandwich 4.0.3 release of the operating system. We have put a lot of effort on improving the documentation and simplifying the process for this new release, we hope you will like [...]

Read the rest of this entry...

Posted in Android Edition, Editions, HAL, Microread, Simulator

Back to top

 

2012/01/23

We are glad to share our new Android Edition of the Open NFC software project. This new porting relies on Open NFC 4.3.3 (see previous announcement for details about this release) and Android-specific adaptation layer. This new edition is declined in two versions: Open NFC 4.3.3 for Android Gingerbread 2.3.7 Open NFC 4.3.3 for Android [...]

Read the rest of this entry...

Posted in Android Edition

Back to top

 

2011/11/07

Several bugfix and cleanups have been committed in the Git repository of Open NFC for Android (browse online here). The corresponding AVD image has been re-generated and can be downloaded from: here. The main changes are: Removed two Open NFC applications that were buggy. You have to go to Settings -> Wireless & Settings -> [...]

Read the rest of this entry...

Posted in Android Edition

Back to top

 

Click here to see older news.

Open NFC 4.4.1 for Android ICS 4.0.3

We are happy to announce the new Open NFC 4.4.1 is now available for the Android platform. This release is targetted to Ice Cream Sandwich 4.0.3 release of the operating system. We have put a lot of effort on improving the documentation and simplifying the process for this new release, we hope you will like it!

Please refer to the release notes for the list of changes compared to previous versions.

Note that the source code of this release is not (yet) available on git service. You can download the package as ZIP files as follow:

Thank you,
The Open NFC Team.

Open NFC 4.3.3 for Android

We are glad to share our new Android Edition of the Open NFC software project. This new porting relies on Open NFC 4.3.3 (see previous announcement for details about this release) and Android-specific adaptation layer.

This new edition is declined in two versions:

This new Android edition has the following changes:

Both editions are only available as source code at the moment. The Git repositories are:

Precompiled Android Virtual Device (AVD) images will be added soon.

Please refer to the following documents for information on building this version: “MAN_NFC_1112-289 Open NFC – Android ICS 4.0.1 – Quick Porting Guide v0.1.pdf

New AVD image files for Open NFC 4.3.1 for Android 2.3.5

Several bugfix and cleanups have been committed in the Git repository of Open NFC for Android (browse online here).

The corresponding AVD image has been re-generated and can be downloaded from: here.

The main changes are:

Please note that the Open NFC version used in this new image is exactly the same as previously.

Except as noted otherwise, this content is licensed under the terms of the Apache 2.0 License. For details and restrictions, see the Content License.
Open NFC is a registered trademark of Inside Secure, All logos and graphics are copyrighted.