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 use the multimedia renderer library to play a video on the screen. Currently, this sample works only on the device.
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 set up BlackBerry Platform Services (BPS), Screen, and EGL to display a 3-D rotating cube.
This game demonstrates rendering 2-D graphics, rendering text, integrating with Scoreloop, playing sound effects, using Box2D, and more!
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 APIs.
Learn about common techniques that you can use in your own applications such as screen events, navigator events, data updates, and scene rendering.
Communicate between threads by sending events through channels.
Capture and process game controller and joystick events over Bluetooth.
Retrieve the proxy information of the device that was set by the user.
Retrieve the network status of the device.
Retrieve accelerometer data, such as the azimuth, pitch, and roll of the device in G forces.
Retrieve geolocation data, 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 input from the virtual keyboard.
Retrieve the country and language settings for the device.
Configure and display a system dialog in your application using the dialog API.
Render a customized "Hello world" message to the screen.
Create ad banners and display advertisements in the browser using the Advertising Service.
Create purchase requests, handle purchase responses, and retrieve existing purchases using the Payment Service.
Set up and integrate Scoreloop into the event system of your application by using BlackBerry Platform Services (BPS).
Query the device for audio control settings, such as headphone volume, speaker volume, input gain, and mute status.
Access the camera, take a photo, and save the photo to the camera roll.
Play and adjust volume for a simple .mp3 file using the multimedia renderer and the audio mixer.
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.
We have a selection of community samples available. Not everything in this repo is updated but it's still a great source of cool sample apps that you can use and get inspiration from.