You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* **V3.1** - Modified for Beta 3 release compatibility
23
+
* **V3** - Added ability to emulate virtual NDEF Tags
24
+
* **V3** - Added ability to emulate virtual NDEF Tags
25
+
* **V2.1** - Refactored to exploit features in BlackBerry Dev Alpha Device 10.0.6
26
+
* **V2** - Added transfer of vCard using SNEP
27
+
* **V1** - Reading and Writing NDEF tags
28
+
29
+
**Known Issues**
30
+
1. Reading a tag when the app is not running causes the app to be launched but the event log is not automatically switched to. Read tag with app already running
31
+
and the event log is correctly shown.
32
+
2. Work is in progress to add functionality relating to UICC secure element APIs. This is not yet complete and so the code is not yet connected to the UI.
33
+
34
+
**Dependencies**
35
+
36
+
1. BlackBerry Dev Alpha Device Software **10.0.6**
37
+
2. BlackBerry 10 Native SDK **10.0.6**
38
+
39
+
**How to Build NfcTool**
40
+
41
+
We took the decision to distribute only the contents of the **"src/"** and **"assets/"**
42
+
directories along with the **"NfcTool.pro"** file with this example.
43
+
44
+
We've found it to be the more reliable technique whilst the meta-data associated with
45
+
an NDK project is still subject to change between versions of the NDK. You are less
46
+
likely to run into issues with a project if you create it as a new empty project
47
+
in your workspace and copy files into it rather than import a project with a
48
+
structure from an older version of the IDE.
49
+
50
+
Here's what you should do:
51
+
52
+
* Create a new empty Cascades C++ project in your workspace called **"NfcTool"**
53
+
* **File** > **New** > BlackBerry Cascades C++ Project
54
+
* Enter Project Name: **NfcTool** > **Next**
55
+
* Select: **Standard empty project** > **Finish**
56
+
* You've now got a clean project set up appropriately for your version of the IDE
57
+
* Delete the **"app.cpp"** and **"app.hpp"** files from the project's **"src/"** directory -- we don't need them
58
+
* Replace contents of the **"src/"** and **"assets/"** directories in the project by the contents of **"src/"** and **"assets/"* from this repo
59
+
* Replace **"NfcTool.pro"** in the project by the one in this repo
60
+
* This file just ensure that the **"libnfc.so"** and **"libnfc_bps.so"** libraries are available to the build process since they're not included in the library path by default.
61
+
* You'll also now have a **"bar-descriptor.xml"** which is correct for your verion of the IDE.
62
+
* You need to make sure it's populated with your own **Debug Token**
63
+
* Also, if you want to ensure that the application has the correct icon and startup splash screen (I'm sure you do!) open the **"bar-descriptor.xml"** file, select the **"Application"** tab and choose:
64
+
* **"assets/images/generic\_tag.png"** as the **Icon image**
65
+
* **"assets/images/splash\_landscape.png"** and **"assets/images/splash.png"** as the **"Landscape"** and **"Portrait"** splash screen images respectively.
66
+
* In BlackBerry Dev Alpha Device Software 10.0.6 the **Invocation Framework** is now used to register an application to be notified when an NFC NDEF tag is presented to the device. You need to add this registration to your **"bar-descriptor.xml"** file. The registration that we use in this sample application is shown in the code section below.
67
+
68
+
Add this stanza to your **"bar-descriptor.xml"** file at the end, just before the closing **"</qnx>"** tag. The meaning of the various fields is described in the article that accompanies this code sample.
0 commit comments