Post navigation

Creating PlayBook apps with Flex and QNX UI Components

I got some requests about how to use both Flex and QNX UI components for building PlayBook apps. In this post I will show you how to do it.

Here are the basic steps.

1. Create a Flex mobile project. Make sure that you enable the project for BlackBerry Tablet OS development.

2. Edit project properties to include the QNX libraries in the project build path (right-click on the project name > Properties). Select BlackBerry Tablet OS section and then select the Include BlackBerry Tablet OS Libraries in Build Path option.

Once you apply these changes your project should be ready for QNX components. Of course you have to add QNX components using ActionScript code; you can’t use QNX components as MXML tags.

You have to remember that the QNX UI components don’t inherit or extend the Flex base UI components. And because of this you can’t add them, for example, directly to a View Flex class using view.addElement(QNX-UI-component); instead you can use an instance of Flex UIComponent as a wrapper. Here is a code snippet that illustrates this technique:

I have been looking for hours for this solution. With your solution it was so easy to integrate qnx in flex mobile projects. Great thanks for tutorial. Now it will be cooler to generate date picker with flex mobile for blackberry.

Thank you for the answer to Brij’s question as well Mihai! Was running into the exact same problem and was driving me nuts! It had been working prior to software reinstallation then it stopped. :(
Now I can work on my apps again instead of configurations. :)