Import and run sample applications
Importing a sample
- Download a sample app from https://github.com/blackberry/NDK-Samples
- Extract the sample zip file to a location on your hard drive.
- In the IDE, on the File menu, click Import.
- Under the General folder, click Existing Projects into Workspace, then click Next.
- Next to Select root directory, click the Browse button and browse to the location where you extracted the sample. Click OK.
- In the Projects field, select the sample project you wish to import. If you want to keep the original files safe from any changes you make, make sure to select Copy projects into workspace.
- Click Finish.
Build and run a sample
Once you have the sample project in your workspace, you can build and run the sample application. If you haven't already done so, configure your environment for deployment before you continue.
- In the Project Explorer, right-click the project and click Build Configurations > Set Active and choose whether you want the application to run on a device (Device-Release) or the simulator (Simulator).
- Right-click the project and click Build Project.
- Right-click the project again and click .
Once the application has downloaded to the device, it will start running and you can try it out.