To download these samples from BlackBerry GitHub, you must visit the repository
and either clone the entire repository using Git or download the entire repository as a .zip file.
This sample demonstrates how to set up BlackBerry Platform Services (BPS), Screen and EGL to display a 2-D rotating square.
This sample demonstrates how to add blocks to the screen and move them using touch, accelerometer, and orientation change handling.
This sample demonstrates how to use the multimedia renderer library to play a video on the screen. Currently, this sample works only on the device.
This game demonstrates rendering 2-D graphics, rendering text, integrating with Scoreloop, playing sound effects, using Box2D, and more!
This sample demonstrates how to set up BlackBerry Platform Services (BPS), Screen and EGL to display a 3-D rotating cube.
gameplay is an open-source, cross-platform, C++ 3-D gaming framework that makes it easy to learn and write mobile and desktop games. You can find all the code and samples made with the gameplay library on GitHub.
Take a look at these examples to learn more about the native SDK.
Learn about a number of common techniques that you can use in your own applications such as screen events, navigator events, data updates, and scene rendering.
Print a string to the console of the QNX Momentics IDE.
Communicate from one thread to another by sending events through channels.
Retrieve the proxy information of the device that was set by the user.
Retrieve the network status of the device.
Retrieve accelerometer specific information, such as the pitch and roll of the device.
Retrieve geolocation specific information, such as the latitude, longitude, altitude, and bearing of the device.
Capture and process screen gestures such as tap, double-tap, and pinch.
Capture and process key input on the virtual keyboard.
Retrieve the country and language settings for the device.
Configure and display a system dialog in your application using the dialog service.
Add a window to the screen and handle navigator and screen events using the Screen and Windowing APIs and BlackBerry Platform Services APIs.
Render a customized "Hello world" message to the screen.
Create purchase requests, handle purchase responses, and retrieve existing purchases using the Payment Service.
Query the device for audio control settings, such as headphone volume, speaker volume, input gain, and mute status.
Play and adjust volume for a simple .mp3 file using the multimedia renderer and the audio mixer service.
Open, determine properties of, and play a .wav file using the sound library.
Use gestures and OpenGL ES to show and hide controls for video playback.