Create a BlackBerry project
You need to create a project before you develop an application for the BlackBerry 10 OS. There are several types of projects that you can create:
|Application||Core Native||Creates a native C/C++ application using the core APIs.||
|Cascades||Creates a native C++ application using the Cascades UI framework.||
|Library||Static||Create a collection of object files that you can link into another application (libxx.a).||none|
|Shared||Create a project that produces a C/C++ shared library.||none|
|Native Extension||Adobe AIR||Create a project that produces a shared library for AIR Native Extensions.||
|BlackBerry WebWorks||Create a project for a custom extension for BlackBerry WebWorks HTML5 applications, with access to all of the BlackBerry 10 core APIs.||none|
When you create a core native application, a library, or a native extension, you can select a managed or a makefile build:
- A Makefile project would work for any project
that has a Makefile (by default). A
Makefile project can launch anything as an external builder
in any folder. The IDE starts make, and after
make exits, the IDE refreshes the workspace to see what was
created. You can change the make command and/or run specific
make targets, but the IDE has no control over what
make is doing.
Since the IDE doesn't know what's being built, it would have problems parsing source files (which it does internally to allow navigation, code completion, syntax highlighting, code generation, and refactoring). Therefore, if you use a Makefile project, you have to modify the Indexer (the internal parser) to point it to the Includes, as well as what Defines your parser uses for conditional compilation. The process of determining this is called Discovery, and it can be controlled by right-clicking a project and selecting .If you know what includes and defines you want to use, you can specify them directly by right-clicking a project and selecting).
- A managed project that doesn't use Makefiles,
and all of the build settings are controlled by the GUI. However, it can use
Makefiles, if you use the external make
builder. In that case, it generates them automatically and they shouldn't be checked
into source control.
The problem associated with this project type is its inability to perform a build of the project from command line (although, it's possible in simple cases with some additional setup files). In addition, there are restrictions on what you build and how, particularly if you use special steps in the build that involves other tools.
On the File menu, click
In the New BlackBerry Project wizard, click the project type and the option that you want to use, and then click Next.
If you selected Core Native Application, Cascades Application, or Adobe AIR Native Extension, select a template, and then click Next.
Type a name for your project.
Select the API Level that your application supports, and then click Finish.
Last modified: 2013-10-30