Skip to content

Commit 3f72b8f

Browse files
committed
Merge pull request blackberry#16 from jcmurray/master
New NFC Sample application using LLCP
2 parents e59a1e6 + bc54ccc commit 3f72b8f

44 files changed

Lines changed: 1296 additions & 45 deletions

Some content is hidden

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

NFC/LLCPDemo/.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/LLCPDemo/.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>LLCPDemo</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 Jul 12 09:19:09 BST 2012
2+
eclipse.preferences.version=1
3+
outputfolder=build
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#Thu Jul 12 09:18:42 BST 2012
2+
eclipse.preferences.version=1
3+
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=disabled
4+
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.2
5+
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
6+
org.eclipse.jdt.core.compiler.compliance=1.4
7+
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
8+
org.eclipse.jdt.core.compiler.debug.localVariable=generate
9+
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
10+
org.eclipse.jdt.core.compiler.problem.assertIdentifier=ignore
11+
org.eclipse.jdt.core.compiler.problem.enumIdentifier=ignore
12+
org.eclipse.jdt.core.compiler.source=1.3
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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="LLCPDemo" Version="1.0.0" Vendor="BlackBerry Developer" Description=""/>
5+
<Application Type="BlackBerry Application" MainMIDletName="" MainArgs="" HomeScreenPosition="0" StartupTier="7" IsSystemModule="false" IsAutostartup="false"/>
6+
<Resources hasTitleResource="false" TitleResourceBundleName="" TitleResourceBundleRelativePath="" TitleResourceBundleClassName="" TitleResourceBundleKey="" DescriptionId="">
7+
<Icons>
8+
<Icon CanonicalFileName="res/img/my_icon.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="LLCPDemo" OutputFolder="deliverables" GenerateALXFile="true">
16+
<AlxFiles/>
17+
</Packaging>
18+
<HiddenProperties>
19+
<ClassProtection/>
20+
<PackageProtection/>
21+
</HiddenProperties>
22+
<AlternateEntryPoints/>
23+
</Properties>

NFC/LLCPDemo/README.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# NFC LLCP Sample
2+
3+
4+
The purpose of this application is to demonstrate how to transfer data from one NFC-enabled BlackBerry to another
5+
using the NFC Logical Link Control Protocol (LLCP).
6+
7+
To use this application, you’ll need to install it on two NFC enabled BlackBerry devices.
8+
On the first device, select the Sender icon and on the second select the Receiver icon.
9+
Adjust the text on the next screen on the sender device and click "Continue" and then place both devices back-to-back.
10+
You should see the data transfer take place and this illustrated by messages on the activity log screen.
11+
12+
The application is liberally instrumented with EventLogger Informational messages using the label "LLCPDemo"
13+
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
14+
event log or use javaloader -u eventlog>eventlog.txt to extract the log to your PC over USB.
15+
16+
The sample code for this application is Open Source under the [Apache 2.0 License](http://www.apache.org/licenses/LICENSE-2.0.html).
17+
18+
**Applies To**
19+
20+
* [BlackBerry Java SDK for Smartphones](http://us.blackberry.com/developers/javaappdev/)
21+
22+
23+
**Author(s)**
24+
25+
* [John Murray](https://github.com/jcmurray)
26+
* [Martin Woolley](https://github.com/mdwoolley)
27+
28+
29+
**Dependencies**
30+
31+
1. BlackBerry Device Software 7.1 and above.
32+
33+
34+
**Known Issues**
35+
36+
None
37+
38+
**To contribute code to this repository you must be [signed up as an official contributor](http://blackberry.github.com/howToContribute.html).**
39+
40+
41+
## Contributing Changes
42+
43+
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.
44+
45+
46+
## Bug Reporting and Feature Requests
47+
48+
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).
49+
50+
51+
## Disclaimer
52+
53+
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.
47.7 KB
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
33.9 KB
Binary file not shown.

0 commit comments

Comments
 (0)