Create a sample native SDK application

The BlackBerry 10 Native SDK includes several native example projects to inspire you to create your own native applications.

Falling Blocks is a simple example project that demonstrates how the BlackBerry Platform Services library is used to obtain screen context, accelerometer updates, touch and gesture events. The following steps walk you through creating and building and QNX Momentics IDE based Falling Blocks sample native application:

  1. Launch the IDE.
  2. Change to the C/C++ perspective.
  3. Click File > New > Example .
  4. Click BlackBerry Examples > BlackBerry Example Project , and click Next.
  5. Select BlackBerry10 OS Example Falling Blocks Project, click Next>, and then click Finish.
    If your environment hasn't been previously configured to deploy applications to your device, the BlackBerry Deployment Setup Wizard will launch to help walk you through the configuration required.
    Next, you will build the sample native SDK application. The project contains various build configurations for the simulator and devices.
  6. To specify the active configuration (the configuration used to build the application), right-click the Falling Blocks project in the Project Explorer view, select Build Configurations > Set Active , and then select the configuration to use for your application.
  7. To build your project, right-click on the project in the Project Explorer view, and then select Build Project.