Sample apps

These sample apps are available as .zip files for you to download directly and then import into your IDE. All of the samples are also available on GitHub, and you can browse them there or clone the entire repository. You can find the links to GitHub at the bottom of this page.


App Integration

BBM Contacts

Access a user's BBM contacts

Read more
BBM

BBM Contacts

Access a user's BBM contacts

The BBM Contacts sample demonstrates how to register an app with the BBM Social Platform and access the user's BBM contacts (who also have the app installed).

Download source code Browse on GitHub ›

BBM Invite to Download

Download this!

Read more

BBM

BBM Invite to Download

Download this!

The BBM Invite To Download sample demonstrates how to send an "Invite to Download" message for an app through the BBM Social Platform.

Download source code Browse on GitHub ›

BBM Profile

Determine user profile information

Read more

BBM

BBM Profile

Determine user profile information

The BBM Profile sample demonstrates how to retrieve and modify your user profile from the BBM Social Platform.

Download source code Browse on GitHub ›

BBM Profile Box

Create and update the profile box

Read more

BBM

BBM Profile Box

Create and update the profile box

The BBM Profile Box sample demonstrates how to create and update the profile box for the app shown in the user's BBM profile using the BBM Social Platform library.

Download source code Browse on GitHub ›

BBM Registration

Register an app

Read more

BBM

BBM Registration

Register an app

The BBM Registration sample demonstrates how to register an app with the BBM Social Platform.

Download source code Browse on GitHub ›

Invoke Client

Invoke external applications

Read more

Invocation framework, Invoke, Invocation

Invoke Client

Invoke external applications

The Invoke Client sample allows the user to invoke external apps in different ways.

Download source code Browse on GitHub ›

Invoke Target

Handle incoming invocation requests

Read more

Invocation framework, Invoke, Invocation

Invoke Target

Handle incoming invocation requests

The Invoke Target sample shows how to handle incoming invocation requests from other apps.

Download source code Browse on GitHub ›

Maven Artifacts

Manage RESTful communication

Read more

Twitter, RESTful, JSON

Maven Artifacts

Manage RESTful communication

The Maven Artifacts sample shows how to access a RESTful service that responds with JSON data and then displays the results on the screen. It accesses the Twitter API to display a list of tweets.

Download source code Browse on GitHub ›

PIM Accounts

Perform account management

Read more

Personal Information Management, PIM, Account

PIM Accounts

Perform account management

The PIM Accounts sample is an account management app to list, view, edit, and delete the accounts available on the device, or create new accounts.

Download source code Browse on GitHub ›

PIM Address Book

View and edit contacts

Read more

Personal Information Management, PIM, Address book

PIM Address Book

View and edit contacts

The PIM Address Book sample is an address book app to list, view, edit, and delete the contacts available on the device, or create new contacts.

Download source code Browse on GitHub ›

PIM Calendar

View and edit calendar events

Read more

Personal Information Management, PIM, Calendar

PIM Calendar

View and edit calendar events

The PIM Calendar sample is a calendar app to list, view, edit, and delete the events available on the device, or create new events.

Download source code Browse on GitHub ›

PIM Messages

View and send messages

Read more

Personal Information Management, PIM, Messages

PIM Messages

View and send messages

The PIM Messages sample is a messenger app to list, view, reply to, and delete the messages available on the device, or compose new messages.

Download source code Browse on GitHub ›

PIM Notebook

View and edit notebook entries

Read more

Personal Information Management, PIM, Notebook, Notes

PIM Notebook

View and edit notebook entries

The PIM Notebook sample is a notebook app to list, view, edit, and delete the notes available on the device, or create new notes.

To learn more, see Explore the Notebook sample app.

Download source code Browse on GitHub ›

Social Invocation

Integrate with social networks

Read more

Invocation framework, Social, Invoke, Invocation

Social Invocation

Integrate with social networks

The Social Invocation sample demonstrates how to integrate your app with various social networks using BlackBerry 10.

Download source code Browse on GitHub ›

Data Management

Data Manager

Manage data source for ListView

Read more

SQLDatabase, SQL, data management, listview

Data manager usage

Manage data source for ListView

The Data Manager sample shows how to use query classes to load data sources into a ListView. The query classes use a cache manager in combination with integrated options, which improves the speed and efficiency of the query results. This approach allows the ListView to scroll smoothly when dealing with large amounts of data.

Download source code Browse on GitHub ›

Database Creation

SQL databases

Read more

Database, SQLDataAccess, SQL, SQLDatabase

Database Creation

SQL databases

The Database Creation sample demonstrates how to create a database, a table, and table records using the \c SqlDataAccess class.

Download source code Browse on GitHub ›

Database CRUD

Manage records with SQL

Read more

SQLDatabase, SQL

Database CRUD

Manage records with SQL

The Database CRUD sample demonstrates how to create, read, update, and delete records from a database table using the \c SqlDataAccess class.

Download source code Browse on GitHub ›

File Picker

Display a custom file dialog box

Read more

Files, Browse, Loading files, Saving files

File Picker

Display a custom file dialog box

The File Picker sample lets the user configure the properties of a file dialog box and open it to select a file for loading or saving.

Download source code Browse on GitHub ›

JSON Read and Write

Work with JSON data

Read more

JSON, JSON read, JSON write, JSONDataAccess, JSON convert, JSON data

JSON Read and Write

Work with JSON data

The JSON Read and Write sample shows how to use the JsonDataAccess class from the libbbdata library to convert between JSON formatted data and standard Qt value types.

Download source code Browse on GitHub ›

List Decorators

Decorate data in a model

Read more

Database, DataModelDecorator, DataModel, Decorator, DataQueryDecorator

List Decorators

Decorate data in a model

The List Decorators sample shows how the user can extend the behavior and enhance the appearance of a ListView by extending and implementing additional functionality in the DataModel/DataQuery decorators.

Download source code Browse on GitHub ›

Persistent Objects

Make data persistent

Read more

Saving states, QSettings, Persistent data

Persistent Objects

Make data persistent

The Persistent Objects sample demonstrates the various stages (create-load-write-update) of a persistent object that can be saved either to a file or to a QSettings object.

Download source code Browse on GitHub ›

RSS News

Fetch and show RSS feed data

Read more

RSS, WebView, Webpage, Network

RSS News

Fetch and show RSS feed data

The RSS News sample demonstrates how to extract and display data from RSS news feeds.

Download source code Browse on GitHub ›

SOAP XML

Use SOAP web services

Read more

SOAP, Network

SOAP XML

Use SOAP web services

The SOAP XML sample demonstrates how to retrieve weather information from a SOAP-based web service.

Download source code Browse on GitHub ›

Device and Communication

Accelerometer

Detect device movements

Read more

Accelerometer

Detect device movements

The Accelerometer sample retrieves accelerometer data, such as the azimuth, pitch, and roll of the device, in G forces.

To learn more, see Reading accelerometer forces.

Download source code Browse on GitHub ›

Battery

Know thy (battery) power

Read more

Battery, Battery level, Battery charge

Battery

Know thy (battery) power

The Battery sample demonstrates how to retrieve battery information, such as the battery charge level and its charging state.

Download source code Browse on GitHub ›

Belt

Use the Send, End, Back, and Menu keys

Read more

Belt, trackpad, Belt keys

Belt

Use the Send, End, Back, and Menu keys

The Belt sample demonstrates how to intercept the keys found on devices with system keys, and react appropriately to key presses.

Download source code Browse on GitHub ›

Bluetooth GATT

Use the Bluetooth low-energy profile

Read more

Bluetooth, Bluetooth low energy, Bluetooth information

Bluetooth GATT

Use the Bluetooth low-energy profile

The Bluetooth GATT sample demonstrates how to use the Bluetooth functionality provided in BlackBerry 10 to retrieve information from Bluetooth devices that offer the low-energy profile.

Download source code Browse on GitHub ›

Bluetooth SPP Chat

Pair devices

Read more

Bluetooth, Bluetooth services, Bluetooth chat

Bluetooth SPP Chat

Pair devices

The Bluetooth SPP Chat sample demonstrates how to use the Bluetooth functionality provided in BlackBerry 10. The user can retrieve information about the Bluetooth adaptor of the local device, list all paired and discovered remote devices, view the services provided by the remote devices, and start a chat session with remote devices using SPP.

Download source code Browse on GitHub ›

Call a Pizza

Make a call to a pizzeria

Read more

Invocation, Invoke phone, Phone

Call a Pizza

Make a call to a pizzeria

The Call a Pizza sample allows the user to look up the name and phone number of pizzerias in a certain region of the United States by entering a zip code. The results are displayed in a list, from which the user can invoke the phone dial pad directly for the selected phone number.

Download source code Browse on GitHub ›

Channels

Send information to other threads

Read more

Channels

Send information to other threads

The Channels sample lets you communicate between threads by sending events through channels.

Download source code Browse on GitHub ›

Gestures

Handle touch screen input

Read more

Gestures

Handle touch screen input

The Gestures sample lets you capture and process screen gestures such as tap, double-tap, and pinch.

To learn more, see Tutorial: Create the Gesture application.

Download source code Browse on GitHub ›

Gears

Use the touch-sensitive keyboard

Read more

Passport, keyboard, touch, touch-sensitive

Gears

Use the touch-sensitive keyboard

The Gears sample demonstrates how to intercept events on a touch-sensitive keyboard when the user swipes up, down, left, or right on the keyboard.

Download source code Browse on GitHub ›

HTTP Proxies

Gather proxy information

Read more

HTTP Proxies

Gather proxy information

The HTTP Proxies sample lets you retrieve the proxy information of the device that was set by the user.

Download source code Browse on GitHub ›

Keyboard

Handle virtual keyboard input

Read more

Keyboard, virtual keyboard

Keyboard

Handle virtual keyboard input

The Keyboard sample lets you capture and process input from the virtual keyboard.

To learn more, see Tutorial: Create the Keyboard application.

Download source code Browse on GitHub ›

LED

Use the LED for notifications

Read more

LED, Device led

LED

Use the LED for notifications

The LED sample demonstrates how to manipulate the LED on the device using various colors and flash counts.

Download source code Browse on GitHub ›

Network Status

Determine network connections

Read more

Network Status

Determine network connections

The Network Status sample lets you retrieve the network status of the device.

To learn more, see Retrieving network status.

Download source code Browse on GitHub ›

NFC MAC Address

Show a MAC address

Read more

NFC, NFC MAC Address

NFC MAC Address

Show a MAC address

The NFC MAC Address sample displays the MAC address of the sender device when receiving data using NFC.

Download source code Browse on GitHub ›

NFC Receiver

Read data from NFC tags

Read more

NFC, NFC read

NFC Receiver

Read data from NFC tags

The NFC Receiver sample allows the user to read data from NFC tags.

Download source code Browse on GitHub ›

NFC Sender

Send content using NFC

Read more

NFC, NFC send

NFC Sender

Send content using NFC

The NFC Sender sample allows the user to send content to another NFC-enabled device.

Download source code Browse on GitHub ›

NFC Share

Exchange content using NFC

Read more

NFC, NFC share

NFC Share

Exchange content using NFC

The NFC Share sample allows the user to exchange content, such as messages or files, with another NFC-enabled device.

Download source code Browse on GitHub ›

Push Collector

Receive push data on a device

Read more

Push, Push data, Push initiator

Push Collector

Receive push data on a device

The Push Collector sample demonstrates how to receive push data from a BlackBerry push initiator.

Download source code Browse on GitHub ›

Push Collector Headless

Receive push data

Read more

Push, Push data, Push initiator

Push Collector Headless

Receive push data

The Push Collector Headless sample demonstrates how to receive push data from a BlackBerry push initiator. This sample is a headless version of the Push Collector sample.

Download source code Browse on GitHub ›

Sensors: Accel Game

Handle device motion

Read more

Accelerometer, QtSensors

Sensors: Accel Game

Handle device motion

The Sensors Accel Game sample demonstrates how to use sensors from the QtSensors module to move a player through a maze.

Download source code Browse on GitHub ›

Sensors: Compass

Show your direction

Read more

Compass, QCompass, QtSensors

Sensors: Compass

Show your direction

The Sensors Compass sample demonstrates how to use sensors from the QtSensors module to implement a compass UI.

Download source code Browse on GitHub ›

Sensors: Demo

Explore the various device sensors

Read more

QtSensors, Motion, Compass, Metal Detector, Magnetometer, AmbientLightSensor, Ambient Light, LightSensor, Light sensor, IR, IRProximity, ProximitySensor, Proximity sensor, Proximity, RotationSensor, Rotation sensor, Rotation

Sensors: Demo

Explore the various device sensors

The Sensors Demo sample is a collection of pages where each page demonstrates how to retrieve and process data from a specific hardware sensor.

Download source code Browse on GitHub ›

Sensors: Image Rotation

Straighten an object

Read more

QtSensors, Rotation, Rotation sensor

Sensors: Image Rotation

Straighten an object

The Sensors Image Rotation sample demonstrates how to use sensors from the QtSensors module to always show an image upright on the screen, regardless of the current device orientation.

Download source code Browse on GitHub ›

Sensors: Orientation

Determine orientation

Read more

QtSensors, Orientation, QtOrientationSensor, Orientation sensor

Sensors: Orientation

Determine orientation

The Sensors Orientation sample demonstrates how to use sensors from the QtSensors module to determine the current orientation of the device.

Download source code Browse on GitHub ›

Sensors: Toss Game

Play a sensor game

Read more

QtSensors, Proximity, Proximity sensor, ProximitySensor, QProximityFilter

Sensors: Toss Game

Play a sensor game

The Sensors Toss Game sample demonstrates how to use sensors from the QtSensors module to trigger gesture switches in a rock-paper-scissors game.

Download source code Browse on GitHub ›

Gaming

Falling Blocks

Learn display and input handling basics

Read more

game, gaming, accelerometer, orientation, touch

Falling Blocks

Learn display and input handling basics

The Falling Blocks sample demonstrates how to add blocks to the screen and move them using touch, accelerometer, and orientation change handling.

To learn more, see Tutorial: Create the Falling Blocks application.

Download source code Browse on GitHub ›

Gamepad

Provide controller support

Read more

gaming, bluetooth, joystick, game controller

Gamepad

Provide controller support

The Gamepad sample demonstrates how to capture and process game controller and joystick events over Bluetooth.

To learn more, see Tutorial: Create the Gamepad application.

Download source code Browse on GitHub ›

Graphics and Windowing

Rotating Cube

Create a cube that rotates in 3-D

Read more

graphics, rotate, OpenGL, Screen, BPS, BlackBerry Platform Services, 3D, 3-D

Rotating Cube

Create a cube that rotates in 3-D

The Rotating Cube sample demonstrates how to set up BlackBerry Platform Services (BPS), Screen, and EGL to display a 3-D rotating cube.

To learn more, see Tutorial: Create a basic 3-D application.

Download source code Browse on GitHub ›

Text Rendering

Draw custom text strings

Read more

text, render

Text Rendering

Draw custom text strings

The Text Rendering sample renders a customized "Hello World" message to the screen.

Download source code Browse on GitHub ›

Location

Custom MapView

Create map controls

Read more

MapView, Maps

Custom MapView

Create map controls

The Custom MapView sample displays a city map overlayed with three sliders that allow you to control altitude, tilt, and heading. It also demonstrates how to put an overlay on another control and draw controls on top of that.

Download source code Browse on GitHub ›

Geolocation

Find the location of the device

Read more

geolocation, location, latitude, longitude, altitude, bearing, geo

Geolocation

Find the location of the device

The Geolocation sample retrieves geolocation data, such as the latitude, longitude, altitude, and bearing of the device.

To learn more, see Accessing geolocation data.

Download source code Browse on GitHub ›

Location Diagnostics

Retrieve positions

Read more

Location, GeoPosition, GeoLocation, Geo

Location Diagnostics

Retrieve positions

The Location Diagnostics sample allows the user to configure a position source and retrieve information from it, either one-time or continuously.

Download source code Browse on GitHub ›

Map Animations

Animate a map's viewport

Read more

MapView, Maps, Animations

Map Animations

Animate a map's viewport

The Map Animations sample demonstrates how to use the Qt easing curves to animate the map's viewport.

Download source code Browse on GitHub ›

MapView

Handle maps and drop pins

Read more

MapView, Maps

MapView

Handle maps and drop pins

The MapView sample displays a city map overlayed with three sliders that allow you to control altitude, tilt, and heading. It also demonstrates how to drop push pins on chosen locations.

To learn more, see Tutorial: Maps, pins, and bubbles.

Download source code Browse on GitHub ›

Place Picker

Pick a place, any place!

Read more

PlacePicker

Place Picker

Pick a place, any place!

The Place Picker sample allows the user to view the properties (such as name, postal address, or phone number) of a place that they select from the address book, recent history, or an online search.

To learn more, see Tutorial: Places.

Download source code Browse on GitHub ›

Route Map Invoker

Get from A to B

Read more

Maps, Route, Map navigation

Route Map Invoker

Get from A to B

The Route Map Invoker sample allows the user to select a cinema from a list and invokes the navigation app to show the route from a fixed point to the selected cinema.

Download source code Browse on GitHub ›

Web MapView

Access and view external maps

Read more

Maps, Web Maps, Google Maps, Bing Maps, OpenLayers

Web MapView

Access and view external maps

The Web MapView sample lets the user browse maps from different providers (Google, Bing, and OpenLayers), put pins on the map, clear all pins from the map, and switch between different view modes (road, satellite, hybrid, and so on).

Download source code Browse on GitHub ›

Multimedia

App Shot

Take a screen shot of your app

Read more

Screen shot, screenshot

App Shot

Take a screen shot of your app

The App Shot sample illustrates how to take programmatic screen shots of your running app. It contains AppShot, which is a helper class that lets you take screen shots from QML.

Download source code Browse on GitHub ›

Audio Settings

Retrieve audio control information

Read more

audio, audiosettings, audio settings

Audio Settings

Retrieve audio control information

The Audio Settings sample queries the device for audio control settings, such as headphone volume, speaker volume, input gain, and mute status.

To learn more, see Playing audio.

Download source code Browse on GitHub ›

Barcode Reader

Scan and decode QR codes

Read more

Barcode, Scan QR, QR code, Scan code, Camera, BarcodeDetector

Barcode Reader

Scan and decode QR codes

The Barcode Reader sample allows the user to scan a QR code with the camera and view the decoded textual representation.

Download source code Browse on GitHub ›

Camera

Use the camera on the device

Read more

camera, pictures

Camera

Use the camera on the device

The Camera sample lets you access the camera, take a photo, and save the photo to the camera roll.

Download source code Browse on GitHub ›

Custom Barcode Invoker

Issue scan requests

Read more

Card, Invoke, Invocation, Barcode, Scan QR, QR code, Scan code, Camera, BarcodeDetector

Custom Barcode Invoker

Issue scan requests

The Custom Barcode Invoker sample allows the user to scan barcodes using a card and the InvokeManager class by issuing scan requests.

Download source code Browse on GitHub ›

Barcode Scanner

Scan QR codes

Read more

Barcode, Scan QR, QR code, Scan code, Camera, BarcodeDetector, XZing

Barcode Scanner

Scan QR codes

The Custom Barcode Scanner sample allows the user to scan a QR code with the camera and view the decoded textual representation.

Download source code Browse on GitHub ›

Dictaphone

Record audio and play it back

Read more

Record sound, Play sound, AudioRecorder, Audio recorder

Dictaphone

Record audio and play it back

The Dictaphone sample simulates an analog dictaphone. It allows you to record voice audio, pause the recording, and play it back later. You can also record multiple tracks in a sequence.

Download source code Browse on GitHub ›

Now Playing

Show what you're hearing

Read more

Now playing, Multimedia

Now Playing

Show what you're hearing

The Now Playing sample demonstrates how to use the multimedia framework in BlackBerry 10. It provides extended information in the UI about the media currently being played and it lets the user control the media player with hardware keys.

Download source code Browse on GitHub ›

Play a Video

Configure and use the multimedia renderer

Read more

video

Play a Video

Configure and use the multimedia renderer

The Play a Video sample demonstrates how to use the multimedia renderer library to play a video on the screen. Currently, this sample works only on a device, not on the BlackBerry 10 Device Simulator.

To learn more, see Tutorial: Play a video.

Download source code Browse on GitHub ›

Play an .mp3

Load and play an .mp3 file

Read more

play sound, sound, mp3, music

Play an .mp3

Load and play an .mp3 file

The Play an .mp3 sample lets you play and adjust volume for a simple .mp3 file using the multimedia renderer and the audio mixer.

Download source code Browse on GitHub ›

Play a .wav

Process and play a .wav file

Read more

play sound, sound, wav, wave, music

Play a .wav

Process and play a .wav file

The Play a .wav sample lets you open, determine properties of, and play a .wav file using the libasound library.

To learn more, see Tutorial: Play a .wav file.

Download source code Browse on GitHub ›

Scratch Pad

Replicate using rows and columns

Read more

QPainter, QImage

Scratch Pad

Replicate using rows and columns

The Scratch Pad sample demonstrates how to take a geometrical shape or image and replicate it, using N rows and M columns to produce a new resulting image based on N*M.

Download source code Browse on GitHub ›

System Sound

Test event sounds on the device

Read more

SystemSound

System Sound

Test event sounds on the device

The System Sound sample demonstrates how to play system sounds that are included in the BlackBerry 10 OS, such as the low battery warning and camera shutter sound.

Download source code Browse on GitHub ›

Video Overlay

Display video playback controls

Read more

video controls, overlay, OpenGL ES, OpenGL

Video Overlay

Display video playback controls

The Video Overlay sample lets you use gestures and OpenGL ES to show and hide controls for video playback.

Download source code Browse on GitHub ›

Platform

Advertising Service

Generate ad revenue

Read more

Banner advertisement, Advertisement, Banners

Advertising Service

Generate ad revenue

The Advertising Service sample creates ad banners and displays ads in the browser using the Advertising Service.

To learn more, see Integrating an ad into your application.

Download source code Browse on GitHub ›

Banner Ads

Integrate ads and generate revenue

Read more

Banner advertisement, Advertisement, Banners

Banner Ads

Integrate ads and generate revenue

The Banner Ads sample demonstrates how to connect to the Advertising Service and display ad banners in your app. These banners reflect the specific settings you have chosen in the Advertising Service portal and allow you to track ad performance metrics.

Download source code Browse on GitHub ›

BPS to QML

Expose BPS events to QML

Read more

BPS, QML, Events

BPS to QML

Expose BPS events to QML

The BPS to QML sample demonstrates how to expose BlackBerry Platform Services (BPS) events to QML. The sample requests events for various BPS services and notifies the QML context when an event arrives by emitting a signal. Based on the data provided in the signal, the QML code performs different actions. This approach follows the Model-View-Controller (MVC) design pattern.

Download source code Browse on GitHub ›

Dialogs

Show informative messages

Read more

Dialog, pop-up

Dialogs

Show informative messages

The Dialogs sample demonstrates how to use various dialog boxes to display notifications to the user.

Download source code Browse on GitHub ›

Dialogs in core

Present information to your users

Read more

dialogs, system dialogs, dialog

Dialogs in core

Present information to your users

The Dialogs in core sample lets you configure and display a system dialog box in your app using the Dialog API.

To learn more, see Displaying a dialog.

Download source code Browse on GitHub ›

Good Citizen

Learn app design basics

Read more

Good Citizen

Learn app design basics

The Good Citizen sample demonstrates common techniques that you can use in your own apps, such as handling screen events and navigator events, updating data, and rendering a scene.

To learn more, see Tutorial: Create the Good Citizen application.

Download source code Browse on GitHub ›

Headless Service

Headless service

Read more

headless, service

Headless Service

Headless service

The Headless Service sample demonstrates how to create a long-running headless service.

Warning: This is not a standalone sample and should not be deployed to the device directly. It is used (packaged) in the headlesserviceui sample .bar file as a captive library. Do not deploy this as a standalone sample.

Download source code Browse on GitHub ›

Headless Service UI

Headless service

Read more

headless, service

Headless Service UI

Headless service

The Headless Service UI sample demonstrates how to create a UI app that communicates with a long-running headless service in the background.

Note: This sample requires the code from the Headless service sample to be synched and built in the same location because they work together and reference each other’s location.

Download source code Browse on GitHub ›

HTTP Test

Communicate with the web

Read more

Send data, Receive data, HTTP service, HTTP

HTTP Test

Communicate with the web

The HTTP Test sample demonstrates how to retrieve data from or send data to an HTTP service.

Download source code Browse on GitHub ›

Identity Service

Personalize with user information

Read more

Identity, IdentityService, Authorization, BlackBerry ID

Identity Service

Personalize with user information

The Identity Service sample demonstrates how to personalize your app with information from the user's BlackBerry ID account using the Identity Service. This app introduces you to common development practices related to the Identity Service that you can use in your own apps.

This sample is created in C.

Go to the API reference ›

Download source code Browse on GitHub ›

Identity Service C++

Using IDS in C++

Read more

Identity, IdentityService, Authorization, BlackBerry ID

Identity Service C++

Using IDS in C++

The Identity Service C++ sample demonstrates how to personalize your app with information from the user's BlackBerry ID account using the Identity Service. This app introduces you to common development practices related to the Identity Service that you can use in your own apps.

This sample is created in C++.

Go to the API reference ›

Download source code Browse on GitHub ›

Identity Service QML

Using IDS in QML

Read more

Identity, IdentityService, Authorization, BlackBerry ID

Identity Service QML

Using IDS in QML

The Identity Service QML sample demonstrates how to personalize your app with information from the user's BlackBerry ID account using the Identity Service. This app introduces you to common development practices related to the Identity Service that you can use in your own apps.

This sample is created in QML.

Go to the API reference ›

Download source code Browse on GitHub ›

Locale

Detect country and language

Read more

Locale, language, country

Locale

Detect country and language

The Locale sample retrieves the country and language settings for the device.

To learn more, see Accessing locale settings.

Download source code Browse on GitHub ›

mMedia Ads

Connect to mMedia Ad Services

Read more

Ads, Banner ads, Advertising

mMedia Ads

Connect to mMedia Ad Services

The mMedia Ad sample allows developers to connect to the Millennial Media Advertisement Services and display an ad. You will learn how to incorporate the mMedia Ad element into your app and configure mMedia to receive and display ads.

Download source code Browse on GitHub ›

Notifications

Show messages in the BlackBerry Hub

Read more

NotificationDialog, Notification dialog, Notification

Notifications

Show messages in the BlackBerry Hub

The Notifications sample demonstrates how to use the notifications in BlackBerry 10 to inform the user about specific events.

Download source code Browse on GitHub ›

Payment Service

Use in-app purchases to sell digital goods

Read more

Payment, PaymentService

Payment Service

Use in-app purchases to sell digital goods

The Payment Service sample demonstrates how to use Cascades and the Payment Service to sell digital goods in your app. It also displays the history of purchases and subscription terms, allowing you to monetize your app content.

Download source code Browse on GitHub ›

Payment Service

Sell digital goods

Read more

Payment, PaymentService

Payment Service

Sell digital goods

The Payment Service in core sample demonstrates how to create purchase requests, handle purchase responses, and retrieve existing purchases using the Payment Service.

To learn more, see Selling digital goods.

Download source code Browse on GitHub ›

XandOs

Launch a headless service

Read more

headless, service

XandOs

Launch a headless service

The XandOs sample demonstrates how to launch a headless service counterpart and communicate with it. In this sample, an image represents the game board and sprites represent the game pieces.

Download source code Browse on GitHub ›

XandOs droid

Communicate with a headless service

Read more

headless, service

XandOs droid

Communicate with a headless service

The XandOs droid sample demonstrates how to create a headless service and communicate with its UI counterpart.

Note: This is not a standalone sample and should not be deployed directly on a device. It is packaged with the XandOs sample and deployed using that sample’s .bar file.

Download source code Browse on GitHub ›

UI

Bucket List

Create a multi-select list

Read more

List, Multiselect, ActionSet, ContextAction, JSON

Bucket List

Create a multi-select list

Download source code Browse on GitHub ›

BfB Showcase

Built for BlackBerry showcase

Read more

Asynchronous loading, Asynchronously, RSS, Network, App menu, window covers, signature, experience, bbm, share, share framework

BfB Showcase

Built for BlackBerry showcase

Download source code Browse on GitHub ›

Cascades Cookbook

See basic UI controls

Read more

UI controls, Core Controls, Controls, ActivityIndicator, Animations, Buttons, CheckBox, Colors, CustomDialog, DateTimePicker, DropDown, GestureHandler, ImageView, Image, ImagePaint, Labels, ListView, Layouts, Navigation, Nine-slicing, Orientation, ProgressIndicator, StockCurves, Radiogroup, Ease curves, Easing curves, Sheet, Slider, Text input, WebView

Cascades Cookbook

See basic UI controls

Circular Slider

Implement your own custom control

Read more

CustomControl, Custom control, Slider

Circular Slider

Implement your own custom control

Download source code Browse on GitHub ›

Filtered Data Model

Filter your data

Read more

Data model, FilteredDataModel

Filtered Data Model

Filter your data

Download source code Browse on GitHub ›

Hello Cascades

Use your first text and image

Read more

Text, Image, ImageView, Text, Layouts

Hello Cascades

Use your first text and image

Download source code Browse on GitHub ›

Hello Foreign Window

Display content

Read more

ForeignWindow, OpenGL, Graphics, pixel buffer

Hello Foreign Window

Display content

Download source code Browse on GitHub ›

Highlighter

Add highlights to your controls

Read more

Controls, Brightness, Saturation, Focus, Highlighting

Highlighter

Add highlights to your controls

Download source code Browse on GitHub ›

Image Loader

Implement worker threads for tasks

Read more

Asynchronous, Asynchronous loading, asynchronously, QNetworkAccessManager, QThread, Network

Image Loader

Implement worker threads for tasks

Download source code Browse on GitHub ›

Loader

Load and unload UI controls

Read more

QDeclarativeComponent, Load component, Unload component, Memory management

Loader

Load and unload UI controls

Download source code Browse on GitHub ›

Paged Data Model

Reload your data

Read more

DataModel, PagedDataModel

Paged Data Model

Reload your data

Download source code Browse on GitHub ›

Photo Bomber

Use the camera and get photo-bombed

Read more

Camera, Image manipulation

Photo Bomber

Use the camera and get photo-bombed

The Photo Bomber sample is a camera app that lets you take photos and then have them "bombed" by another image that jumps in automatically.

Download source code Browse on GitHub ›

Poem Maker

Explore animations using poetry

Read more

Animations, Event Listener, JavaScript

Poem Maker

Explore animations using poetry

Download source code Browse on GitHub ›

Pull My Beard

Handle touches and drag-and-drop

Read more

Drag and drop, Touch, Animations

Pull My Beard

Handle touches and drag-and-drop

Download source code Browse on GitHub ›

Quotes

Display a list and access SQL data

Read more

Lists, SQLDataAccess, GroupDataModel, SQL, SQL Lite

Quotes

Display a list and access SQL data

Download source code Browse on GitHub ›

Repeater

Parameterized controls

Read more

QDeclarativeComponent, Generate controls

Repeater

Parameterized controls

Download source code Browse on GitHub ›

Speed Writer

Use a custom control for text input

Read more

CustomControl, TextInput, TextArea

Speed Writer

Use a custom control for text input

Download source code Browse on GitHub ›

Stamp Collector

Populate a list with JSON data

Read more

JSON, Lists, XML, XML data model

Stamp Collector

Populate a list with JSON data

Download source code Browse on GitHub ›

Starship Settings

Store persistent data using QSettings

Read more

QSettings, persistant data, persistant settings

Starship Settings

Store persistent data using QSettings

Download source code Browse on GitHub ›

Vegetables Data Model

Arrange your data

Read more

DataModel

Vegetables Data Model

Arrange your data

Download source code Browse on GitHub ›

Weather Guesser

Tabs and panes

Read more

Navigation, NavigationPane, Tabs, Tab, TabbedPane, DataModel, GroupDataModel, JSON, SQL, asynchronous, synchronous, drill down

Weather Guesser

Tabs and panes

Download source code Browse on GitHub ›

Qt2Cascades

Shared Memory

Use inter-process communication (IPC)

Read more

Shared Memory

Use inter-process communication (IPC)

The Shared Memory sample shows how to use the QSharedMemory class to implement inter-process communication using shared memory.

Download source code

Shared Memory Loader

Use more IPC

Read more

Sharedmemory loader

Use more IPC

The Shared Memory Loader sample shows how to use the QSharedMemory class to implement inter-process communication using shared memory.

Download source code

Broadcast Receiver

Receive broadcasts

Read more

Broadcast Receiver

Receive broadcasts

The Broadcast Receiver sample shows how to receive information that is broadcasted over a local network.

Download source code

Broadcast Sender

Send broadcasts

Read more

Broadcast Sender

Send broadcasts

The Broadcast Sender sample shows how to broadcast information to multiple clients on a local network.

Download source code

Download Manager

Queue downloads

Read more

Download Manager

Queue downloads

The Download Manager sample shows how to implement a queue for multiple downloads using the QNetworkAccessManager class.

Download source code

Google Suggest

Retrieve a list of typing suggestions

Read more

Google Suggest

Receive a list of typing suggestions

The Google Suggest sample demonstrates how to use the QNetworkAccessManager class to obtain a list of suggestions from the Google search engine as the user types into a TextField.

Download source code

HTTP

Implement an HTTP client

Read more

HTTP

Implement an HTTP client

The HTTP sample demonstrates a simple HTTP client that shows how to fetch files specified by URLs from remote hosts.

Download source code

Multicast Receiver

Receive a multicast

Read more

Multicast Receiver

Receive a multicast

The Multicast Receiver sample shows how to receive information that is sent to a multicast group.

Download source code

Multicast Sender

Send information to multiple clients

Read more

Multicast Sender

Send information to multiple clients

The Multicast Sender sample shows how to send information to multiple clients in a multicast group.

Download source code

QFTP

Implement an FTP client

Read more

QFTP

Implement an FTP client

The QFTP sample demonstrates a simple FTP client that can be used to list the available files on an FTP server and download them.

Download source code

Secure Socket Client

Talk using SSL

Read more

Secure Socket Client

Talk using SSL

The Secure Socket Client sample shows how to use QSslSocket to communicate over an encrypted (SSL) connection. It also demonstrates how to deal with authenticity problems, and how to display security and certificate information.

The screen shot on the left shows a connection established with a web server. The string "GET" was sent.

Download source code

Progress Dialog

Monitor a lengthy operation

Read more

Progress Dialog

Monitor a lengthy operation

The QtConcurrent Progress Dialog sample shows how to use the QFutureWatcher class to monitor the progress of a long-running operation.

Download source code

Word Count

Count items more efficiently

Read more

Word Count

Count items more efficiently

The QtConcurrent Word Count sample demonstrates the use of the map-reduce algorithm when applied to the problem of counting words in a collection of files.

Download source code

Script Game

Enhance your apps using scripting

Read more

Script Game

Enhance your apps using scripting

The Script Game sample shows how to extend a C++ app with scripting functionality.

Download source code

Grue Detector

Prevent unfortunate Grue incidents

Read more

Grue Detector

Prevent unfortunate Grue incidents

The Grue Detector sample demonstrates how to use sensors from the QtSensors module to warn you about the chance of being eaten by a Grue.

Download source code

Sensor Explorer

Take a tour of available sensors

Read more

Sensor Explorer

Take a tour of available sensors

The Sensor Explorer sample demonstrates how to introspect all available sensors of a device.

Download source code

SQL Widget Mapper

Map SQL data

Read more

SQL Widget Mapper

Map SQL data

The SQL Widget Mapper sample shows how to use a DataControlMapper to map information from a database to controls in a form.

Download source code

Factorial States

Calculate factorials with a state machine

Read more

Factorial States

Calculate factorials with a state machine

The Factorial States sample shows how to use the State Machine Framework to calculate the factorial of an integer.

Download source code

Ping Pong States

Use parallel states and custom events

Read more

Ping Pong States

Use parallel states and custom events

The Ping Pong States sample shows how to use parallel states together with custom events and transitions in the State Machine Framework.

Download source code

Traffic Light

Control traffic with a state machine

Read more

Traffic Light

Control traffic with a state machine

The Traffic Light sample shows how to use the State Machine Framework to implement the control flow of a traffic light.

Download source code

Queued Custom Type

Between threads

Read more

Queued Custom Type

Between threads

The Queued Custom Type sample shows how to send custom types between threads with queued signals and slots.

Download source code

Semaphores

Control access using semaphores

Read more

Semaphores

Control access using semaphores

The Semaphores sample shows how to use QSemaphore to control access to a circular buffer shared by a producer thread and a consumer thread.

Download source code

Wait Conditions

Control access using conditions and mutex

Read more

Wait Conditions

Control access using conditions and mutex

The Wait Conditions sample shows how to use QWaitCondition and QMutex to control access to a circular buffer shared by a producer thread and a consumer thread.

Download source code

Codecs

Import text properly using codecs

Read more

Codecs

Import text properly using codecs

The Codecs sample demonstrates the principles behind importing text using codecs to ensure that characters are encoded properly, avoiding loss of data and retaining the correct symbols used in various scripts.

Download source code

Contiguous Cache

Manage large models

Read more

Contiguous Cache

Manage large models

The Contiguous Cache sample shows how to use QContiguousCache to manage memory usage for very large models.

Download source code

i18n

Provide translation support

Read more

i18n

Provide translation support

The Internationalization (I18N) sample demonstrates Qt's support for translated text. Developers can write the initial app text in one language, and translations can be provided later without any modifications to the code.

Download source code

Regexp

Apply regular expressions to text

Read more

Regexp

Apply regular expressions to text

The Regular Expressions (RegExp) sample shows how regular expressions in Qt are applied to text by providing an environment in which new regular expressions can be created and tested on custom text strings.

Download source code

Undo Framework

Correct your mistakes

Read more

Undo Framework

Correct your mistakes

The Undo Framework sample shows how to implement undo/redo functionality with the Qt undo framework.

Download source code

DOM Bookmarks

Parse and generate XML data

Read more

DOM Bookmarks

Parse and generate XML data

The DOM Bookmarks sample provides a parser and generator for XML Bookmark Exchange Language (XBEL) files that use Qt's DOM-based XML API to read and parse the files. The SAX Bookmarks sample provides an alternative way to read this type of file.

Download source code

XML HTML Info

Get information about HTML content

Read more

XML HTML Info

Get information about HTML content

The XML HTML Info sample provides statistics about the content of HTML files.

Download source code

RSS-listing

Retrieve items from RDF sources

Read more

RSS-listing

Retrieve items from RDF sources

The RSS listing sample shows how to create a UI that displays news items from RDF news sources.

Download source code

SAX Bookmarks

Use SAX-based APIs to parse files

Read more

SAX Bookmarks

Use SAX-based APIs to parse files

The SAX Bookmarks sample provides a reader for XML Bookmark Exchange Language (XBEL) files that uses Qt's SAX-based API to read and parse the files. The DOM Bookmarks sample provides an alternative way to read this type of file.

Download source code

QXmlStream Bookmarks

Stream XML data

Read more

QXmlStream Bookmarks

Stream XML data

The QXmlStream Bookmarks sample provides a reader for XML Bookmark Exchange Language (XBEL) files that use Qt's QXmlStreamReader class for reading, and QXmlStreamWriter class for writing the files.

Download source code

XML Stream Lint

Select and validate an XML file

Read more

XML Stream Lint

Select and validate an XML file

The XML Stream Lint sample provides a simple UI to select and validate an XML file.

Download source code