Time to say “Hello, World!” to the newest kid on the tablet device block, the BlackBerry Playbook. Why bother developing for a tablet that isn’t even publicly available yet? Because Research in Motion (RIM) is offering free Playbooks to developers who create “useful” applications for it. Thats right, if you join the RIM vendor list (free registration for a limited time only) and submit a quality app, you will receive a free Playbook. Great incentive to bring developers to your platform.
So how do you get started? Go to the Playbook developers site and follow the instructions there. Be warned, though, that its not the simplest setup. Right now RIM has workflows for developing Playbook apps in Blackberry WebWorks and Adobe Air (via Flash Builder 4.0.1 or ”Burrito”). For my first go around I chose the Flash Builder 4.0.1 workflow.
Wanna take a quick peek at the code involved with the Hello World (seen above) for this workflow?
AIRHelloWorld.as
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
|
All of you AS3 and Flash developers should be pretty pleased. You get the comforts of your language of choice with the ability to access native QNX components; the best of both worlds.
Setup Pitfalls
I can’t stress enough that you need to follow the instructions exactly or you won’t get it working. I speak from experience. Perhaps you can save yourself a few minutes (or hours) of searching for the resolution to the cryptic errors you may encounter by looking at the problems I ran into. But really, all of these could be avoided by following the instructions exactly as written.
The Flash Builder 4.0.1 update must be installed
They only mention 4.0.1 about a dozen times but I figured “how important can a point release be?”. Turns out, very. You’ll see this if you ignore it too:
1 2 |
|
Just download and install the Flash Builder 4.0.1 update and all will be resolved.
Adobe Air 2.5 must be installed
Again, they are clear as day about this, but you need to install the Adobe Air 2.5 SDK. The version that comes with Flash Builder 4 is only 2.0.2, or might be 1.5, I can’t remember off hand. You can find the version of Air your BlackBerry Tablet SDK is installed against by looking at the app config XML file (AIRHelloWorld-app.xml) in your project. The first node, application, indicates the Air version used:
1
|
|
In any case, if its not the right version you have to install Air 2.5 or you’ll see an error similar to this:
1
|
|
This is because the versionNumber node in your app configuration isn’t supported before Air 2.5. In order to fix this error, you need to reinstall the BlackBerry Tablet SDK and make sure to point it at the directory of Adobe Air 2.5 during the install. If someone knows a better way to do it without having to reinstall the Blackberry Tablet SDK I’m all ears.
Put your Playbook Simulator in Development Mode
Even if you remember to put your Playbook Simulator in Development Mode as per the instructions, you’ll probably forget (like me) that you need to do that whenever you restart the simulator. I’m not aware of a way to set Development Mode ON by default. Here’s the error you’ll see:
1 2 3 4 |
|
All you have to do is follow the instructions here, which will tell you to do the following:
- Activate the Playbook Simulator
- Click the gear icon at the top right
- Click “Security”
- Click “General” under “Security Settings”
- Toggle “Development Mode” to ON under “Development Settings”
Summary
That’s all I got so far. It looks like a terrific platform and is really engaging a lot of the development community by integrating native access through external SDKs. Soon as my plate clears up a bit I’m gonna hit this full steam and add myself to the list of the lucky talented developers (like Jason Fincanon) getting themselves a free Playbook.