Skip to content
This repository
branch: next

This branch is 0 commits ahead and 9 commits behind master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

..
Octocat-spinner-32 arm
Octocat-spinner-32 x86
Octocat-spinner-32 .cproject
Octocat-spinner-32 .project
Octocat-spinner-32 LICENSE
Octocat-spinner-32 Makefile
Octocat-spinner-32 NOTICE
Octocat-spinner-32 bar-descriptor.xml
Octocat-spinner-32 common.mk
Octocat-spinner-32 dialogchannel.c
Octocat-spinner-32 dialogchannel.h
Octocat-spinner-32 icon.png
Octocat-spinner-32 main.c
Octocat-spinner-32 manifest.properties
Octocat-spinner-32 readme.txt
readme.txt
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.

Something went wrong with that request. Please try again.