This repository has been archived by the owner on Sep 4, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 233
/
readme.txt
43 lines (32 loc) · 1.67 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
Channels - Display current location data
========================================================================
Sample Description:
The Channels sample demonstrates how two different threads can communicate by
sending events through channels.
We retrieve and display geolocation specific information, such as the latitude,
longitude, altitude, and bearing of the device from the default channel of the
main thread. This thread also listens for the navigator's event telling it to
exit. Before joining on the child thread, it sends a custom event to the child
thread's channel letting it know that it should exit.
We retrieve and display the x, y and z values of the accelerometer of the
device from the default channel of the child thread.
When the application is executed, geolocation data is displayed in a dialog and
accelerometer data is displayed in another.
Feature summary
- Requesting events from different channels
- Multiple dialogs
========================================================================
Requirements:
- BlackBerry® 10 Native SDK
- One of the following:
- BlackBerry® 10 device
- BlackBerry® 10 simulator
========================================================================
Importing a project into the Native SDK:
1. From the the Sample apps page, download and extract the sample application.
2. Launch the Native SDK.
3. On the File menu, click Import.
4. Expand General, and select Existing Projects into Workspace. Click Next.
5. Browse to the location where you extracted the sample app, and click OK.
The sample project should display in the the Projects section.
6. Click Finish to import the project into your workspace.