Configure your app
After you set up your development environment, you need to configure your app so that you can build and test it. You can add assets, permissions, and libraries to your app.
Create a BlackBerry solution target
A BlackBerry solution target is the build target configuration for your app. The solution target is device specific, which means that you must create a BlackBerry target first and then you can create another target, such as the simulator, and base it on the BlackBerry target or on Win32.
To create a build target configuration for your BlackBerry app:
- In Microsoft Visual Studio, on the Build menu, click Configuration Manager.
- In the Configuration Manager window, in the Active solution platform drop-down list, click New.
- In the New Solution Platform window, in the Type or select the new platform drop-down list, click BlackBerry.
- In the Copy settings from drop-down list, click <Empty> or Win32.
- Click OK.
- Click Close.
Configure the bar-descriptor.xml file
The bar-descriptor.xml file (BAR) is the application descriptor file that is added to your project when you create a new BlackBerry Solution Target for your project. This application descriptor file is required when you create an app for the BlackBerry 10 OS.
- In Microsoft Visual Studio, in the Solution Explorer, double-click the bar-descriptor.xml file.
- Click Set from Debug Token. If you have your debug token set up already, the data from your debug token is imported.
Add permissions to your app
From the Permissions drop-down list, you can choose which permissions you want to add to your app. For more information about app permissions, see App permissions in Developing with the Native SDK.
Add assets to your app
From the Asset Configuration drop-down list, you can choose which Build Configuration to use and add assets to your app.
Add libraries to your app
If you have converted your project from a Win32 project to a BlackBerry project, you will need to find the equivalent BlackBerry libraries for your project and add them to your project to build it.
- In Microsoft Visual Studio, on the Project menu, click Properties.
- Click Linker and add the required libraries.
Last modified: 2013-10-30