Using Desktop Manager
BlackBerry Desktop Manager is a PC tool that provides you with a way to interact with your device from your PC. You can download it from the RIM web page. Remember that you are required to be registered as a developer before you can download files from there.
Once installed and launched let’s come back to our Eclipse IDE and its sample project HelloWorldDemo. In the previous article, what we did was just build and run the project with a run configuration in which there was a specific simulator selected. This time, we have to build our project by clicking on
This creates a “.alx" file in our project folder, inside /HelloWorldDemo/deliverables/Standard/ which is the file required by Desktop Manager to install an application.
Now that we have created our file and we know where it is, we have to connect our device to the PC and check that the Desktop Manager has detected it. The device will be correctly connected to the Desktop Manager if we are able to see our BlackBerry PIN at the bottom of the Desktop Manager main window. After checking the PIN is ok, select:
Application Loader>Add/Delete applications
From there you have to look for and select the build .alx file of the application you want to install. In our case, select your “HelloWorldDemo.alx" from the path we pointed at before, and follow the steps of the installation progress.
You can check later if everything was ok by launching your application in the same way you did it with the simulator:
Note: You’ll probably get a permissions message when you first launch the HelloWorld demo. Don’t worry about this right now, we’ll talk about how to deal with permissions in following articles.