I, like many others, am VERY excited about the BlackBerry PlayBook, due out sometime early 2011. One of the reasons I am very excited is that Blackberry has partnered with Adobe to make Adobe AIR one of the easiest ways to start making apps for the PlayBook. I LOVE Adobe AIR and have been using it for almost two years now for developing desktop applications.
So the first question that many new AIR developers might have are:
- What do i need to know?
- How do I get started?
- Where do i get what I need?
- What's next?
I will try to answer these questions to the best of my ability. Like all new technologies, sometimes the information can be sparse or hard-to-find. I have been following this stuff and hope that I can answer some of your questions.
What do I need to know?To develop applications for the PlayBook you need to know ActionScript (at least for right now). Hopefully, soon, they will also have support for Flex applications, but as I understand it, right now, the API only supports pure ActionScript apps.
So, you need to know ActionScript, what else? Well, you need to now the AIR API. The AIR API is pretty simple. It gives you the ability to do all sorts of things that you cannot do with a normal web/flash application. If gives you access to the file system, network interfaces, local storage options, and more.
The last thing you'll need to know, but you can learn it as you go, is the Blackberry API. The BlackBerry PlayBook API will give you access to device-specific features for the PlayBook. Things like the Front and Rear Facing Cameras, notifications (hopefully), device events, and more. I am still learning about everything that is available, and I am sure that more will be added in the future. I am specifically hoping for access to the device's BlueTooth interface.
You can see the API ASDocs once we get the SDK installed. We'll cover that next.
How do I get started?The easiest way to get started with BlackBerry PlayBook development is by using Adobe Flash Builder and the PlayBook simulator. At the time of this writing, the PlayBook is not yet released, so the simulator is the only way to try out your apps on a "device".
Let's go through the steps of getting your development environment set up. Here is what you'll need.
- Adobe AIR 2.5 SDK
- Flash Builder 4 (Not 4.5 Burrito)
- Flash Builder 4.0.1 updater
- The BlackBerry Playbook SDK
- The Blackberry Playbook Simulator
- A VMWare Virtual Machine Player:
Install the Adobe AIR SDKAfter you have downloaded the AIR SDK you simply unzip it to wherever you want. I put mine in /Developer/SDKs so the full path is /Developer/SDKs/AdobeAIRSDK2.5
Remember where you put it, we'll need that information soon.
Install Flash Builder 4This one is pretty simple. Run the installer and follow the steps. I am not going to go into detail on how to install FB4 as a plugin to Eclipse. If that is what you want, then you probably already know how to do it.
NOTE: Very important!! At least for right now, on the Mac you MUST install FB4 into into a folder called "Adobe Flash Builder 4". I put mine into "/Applications/Adobe Flash Builder 4". The BlackBerry SDK install seems to have a bug that requires that FB4 be in such a named folder.
Once you have installed FB4, check to see if it is version 4.0 or 4.1. On Mac or Windows, go to HELP >> ABOUT ADOBE FLASH BUILDER 4. It should look like this:
If it is not 4.0.1 then run the updater linked above.
Once you have FB4.0.1 installed, we can install the PlayBook SDK.
The BlackBerry PlayBook SDK InstallThe PlayBook SDK installer is also a simple wizard. I have only run it on Mac, but I suspect it is not much different on Windows.
Step 1. Accept the License Agreement
Step 2. Select whether or not you want to integrate with FB4. I chose yes. If you don't want to, then chose No
Step 3. Tell the installer where FB4 is installed. Note this is where the bug in the installer seems to be. It requires that FB4 be in a folder named "Adobe Flash Builder 4"
Step 4. Locate the Adobe AIR 2.5 SDK. This is the folder where the AIR SDK is. Do not point it at the /bin directory. The installer will verify the SDK before moving on
Step 5. Choose install
Step 6. Be Done
That's it for installing the SDK. In my next post I'll show you how to install the Simulator and connect it to FB4. I'll also show you how to access the SDK AS3Docs.