Simple web app that reads an NDEF Message from a NFC tag.
The application will read NDEF tags when running.
The android will open the application when a tag with a Mime Media Record of type "text/pg" is scanned
- Android Phone with NFC
- Android SDK
- PhoneGap 1.9.0 (included in project)
- phonegap-nfc-0.4.1 plugin (included in project)
Generate a local.properties
file using the android tool.
$ android update project -p
Use ant to build the code and install on your phone
$ ant debug install
- Blackberry Phone with NFC
- Blackberry OS 7 (7.1 recommended)
- Webworks SmartPhone SDK
- Blackberry Desktop Software
- Blackberry Signing Keys - See PhoneGap Instruction for more details
- PhoneGap 1.9.0 (included in project)
- phonegap-nfc-0.4.1 plugin (included in project)
Copy webworks/project.properties.template
to webworks/project.properties
. Edit the entries for blackberry.bbwp.dir=
and blackberry.sigtool.password=
.
blackberry.bbwp.dir=/Developer/SDKs/Research\ In\ Motion/BlackBerry\ WebWorks\ SDK\ 2.3.1.5
blackberry.sigtool.password=secret
Use ant to build the code and install on your phone
$ ant blackberry load-device
If you get a ControlledAccessException when registering the NFC listener, the version of the OS is too old. Try version 7.0.0.337 (bundle 1603) or higher.
This code was test on a Blackberry Bold 9900 (GSM) with 7.1.0.284 Bundle 998.
See phonegap-nfc for more info