Skip to content

Commit a330781

Browse files
committed
Revised versions of the two applications that accompnay the developer
resource centre article on NDEF tag reading and writing
1 parent e27a06d commit a330781

104 files changed

Lines changed: 3776 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

NFC/NfcReadNdefSmartTag/.classpath

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="src" path="src"/>
4+
<classpathentry kind="src" path="res"/>
5+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/net.rim.ejde.BlackBerryVMInstallType/BlackBerry JRE 7.1.0"/>
6+
<classpathentry kind="output" path="bin"/>
7+
</classpath>

NFC/NfcReadNdefSmartTag/.project

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>NfcReadNdefSmartTag</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>net.rim.ejde.internal.builder.BlackBerryPreprocessBuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
<buildCommand>
14+
<name>net.rim.ejde.internal.builder.BlackBerryResourcesBuilder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
18+
<buildCommand>
19+
<name>org.eclipse.jdt.core.javabuilder</name>
20+
<arguments>
21+
</arguments>
22+
</buildCommand>
23+
</buildSpec>
24+
<natures>
25+
<nature>net.rim.ejde.BlackBerryPreProcessNature</nature>
26+
<nature>net.rim.ejde.BlackBerryProjectCoreNature</nature>
27+
<nature>org.eclipse.jdt.core.javanature</nature>
28+
</natures>
29+
</projectDescription>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#Thu Sep 15 08:36:43 BST 2011
2+
eclipse.preferences.version=1
3+
outputfolder=build
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#Thu Sep 15 08:36:28 BST 2011
2+
eclipse.preferences.version=1
3+
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.2
4+
org.eclipse.jdt.core.compiler.compliance=1.4
5+
org.eclipse.jdt.core.compiler.source=1.3
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<!-- This file has been generated by the BlackBerry Plugin for Eclipse v3.6.1. -->
2+
3+
<Properties ModelVersion="1.1.2">
4+
<General Title="Read NDEF Tag" Version="1.0.6" Vendor="John Murray" Description="Read an NDEF Smart Tag using NFC"/>
5+
<Application Type="BlackBerry Application" MainMIDletName="" MainArgs="" HomeScreenPosition="0" StartupTier="7" IsSystemModule="true" IsAutostartup="false"/>
6+
<Resources hasTitleResource="false" TitleResourceBundleName="" TitleResourceBundleRelativePath="" TitleResourceBundleClassName="" TitleResourceBundleKey="" DescriptionId="">
7+
<Icons>
8+
<Icon CanonicalFileName="res/img/SmartTag_Logo.png" IsFocus="false"/>
9+
</Icons>
10+
</Resources>
11+
<KeywordResources KeywordResourceBundleName="" KeywordResourceBundleRelativePath="" KeywordResourceBundleClassName="" KeywordResourceBundleKey=""/>
12+
<Compile OutputCompilerMessages="false" ConvertImages="true" CreateWarningForNoExportedRoutine="true" CompressResources="false" AliasList="">
13+
<PreprocessorDefines/>
14+
</Compile>
15+
<Packaging PreBuildStep="" PostBuildStep="" CleanStep="" OutputFileName="NfcReadNdefSmartTag" OutputFolder="deliverables" GenerateALXFile="true">
16+
<AlxFiles/>
17+
</Packaging>
18+
<HiddenProperties>
19+
<ClassProtection/>
20+
<PackageProtection/>
21+
</HiddenProperties>
22+
<AlternateEntryPoints>
23+
<AlternateEntryPoint Title="Ndef Tag Reader" MainMIDletName="" ArgumentsForMain="gui" HomeScreenPosition="0" StartupTier="7" IsSystemModule="false" IsAutostartup="false" hasTitleResource="false" TitleResourceBundleKey="" TitleResourceBundleName="" TitleResourceBundleClassName="" TitleResourceBundleRelativePath="">
24+
<Icons>
25+
<Icon CanonicalFileName="res/img/SmartTag_Logo.png" IsFocus="false"/>
26+
</Icons>
27+
<KeywordResources KeywordResourceBundleName="" KeywordResourceBundleRelativePath="" KeywordResourceBundleClassName="" KeywordResourceBundleKey=""/>
28+
</AlternateEntryPoint>
29+
</AlternateEntryPoints>
30+
</Properties>

NFC/NfcReadNdefSmartTag/README.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# NFC Tag Reading Sample
2+
3+
4+
The purpose of this application is to demonstrate how to receive NDEF messages from tags and process them.
5+
6+
The application is liberally instrumented with EventLogger Informational messages using the label "NfcReadNdefSmartTag" that can be examined in the event log of a device. Use Alt-LGLG to set the log level to Information and to examine the event log or use javaloader -u eventlog>eventlog.txt to extract the log to your PC over USB.
7+
8+
The sample code for this application is Open Source under the [Apache 2.0 License](http://www.apache.org/licenses/LICENSE-2.0.html).
9+
10+
**Applies To**
11+
12+
* [BlackBerry Java SDK for Smartphones](http://us.blackberry.com/developers/javaappdev/)
13+
14+
15+
**Author(s)**
16+
17+
* [John Murray](https://github.com/jcmurray)
18+
* [Martin Woolley](https://github.com/mdwoolley)
19+
20+
21+
**Dependencies**
22+
23+
1. BlackBerry Device Software 7.1 and above.
24+
25+
26+
**Known Issues**
27+
28+
None
29+
30+
**To contribute code to this repository you must be [signed up as an official contributor](http://blackberry.github.com/howToContribute.html).**
31+
32+
33+
## Contributing Changes
34+
35+
Please see the [README](https://github.com/blackberry/BlackBerry-Java) of the BlackBerry-Java repository for instructions on how to add new Samples or make modifications to existing Samples.
36+
37+
38+
## Bug Reporting and Feature Requests
39+
40+
If you find a bug in a Sample, or have an enhancement request, simply file an [Issue](https://github.com/blackberry/BlackBerry-Java/issues) for the Sample and send a message (via github messages) to the Sample Author(s) to let them know that you have filed an [Issue](https://github.com/blackberry/BlackBerry-Java/issues).
41+
42+
43+
## Disclaimer
44+
45+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
52525400=RIM Runtime API
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
33000000=RIMAPPSA2
2+
52424200=RIM Blackberry Apps API
3+
52434900=RIM Crypto API - Internal
4+
52435200=RIM Crypto API - RIM
5+
4e464352=NFCRoutingAPI
Binary file not shown.

0 commit comments

Comments
 (0)