Playbook tests

Having a look at the Playbook development using Flash Builder. I had installed on Windows and ran up the VMWare simulator for the Playbook. All seemed to be fine, but then I couldn’t see the Create New Actionscript Mobile Option in the menu, so was a bit stuck. So I thought that I’d check the Mac version. Here, that menu was available, so I decided to give this a try and then ran into the problem of there being no VMWare Player version for the Mac. I decided to try the VMWare Fusion trial to see if it worked, but might try Virtual Box later as that is free. I can’t see other people with the same Windows problem, so when I get back to the office I might reinstall and try that again. (Worked after I uninstalled and installed again! – (edit) but needed to be in a fresh workspace)

First downloaded the simulator iso, then created new VM using the provided iso image. Use the middle option to use the iso file that we have downloaded, then the Guest OS as Other, version other as this is a device that’s not on the list. Set the settings before starting, as I couldn’t see how to shut down, only pause and resume. Similar to Windows version, 1Gb memory, accelerated 3D graphics. Couldn’t see an option for screen resolution or machine memory size 8Gb. Eventually booted, overwrote the partition correctly, then went into Blackberry mode and brought up the green graphic background screen.

Set security mode, password, su, so could turn on Developer mode, then return to main screen. The hammer tool should then show the IP address, mine was 192.168.196.130

Created a quick 82 pixel square icon using Seashore, a free image editor. If it all works, I’ll put some effort into that later.

Then went through the instructions to create the AirHelloWorld application in Flash Builder and they seemed to be perfect. I opened a Mac version of the pdf at one point, but it didn’t have the part for creating the XML descriptor for the icon, but I was following the Windows version so had it in there. When entering Deployment settings in Flash Builder, make sure that your window is big enough to show the Device password, as that section doesn’t scroll and mine was hidden initially. The debug settings seemed to be copied correctly to the Run version. They both ran easily on the simulator after a few seconds and the icon sat in the Internet menu on the Playbook.

Good start, so let’s get a project going!

Some other interesting links,

The webWorks SDK is the web development version of the kit. There are some webinars here to show its capability. Nitobi and Phonegap are very involved in this area, http://devblog.blackberry.com/2011/01/blackberry-webworks-webcast-series/#more-3074

Wanted to try the WebWorks method, so installed the SDK into Applications/bbww/
Compile an app by moving to that directory, zip together the files then use,
./bbwp /project/bbww/helloworld/Archive.zip /s

A bin directory is created with the compiled .bar file in it. The /s will tell the system not to delete the source folder created during the build. It is sometimes interesting to check the files here. There are a number of actionscript files for use with the Air runtime. These are all built into the .bar file.

Then uploaded the app to the simulator, by changing to the installer directory,
cd blackberry-tablet-sdk/bin
then,
./blackberry-deploy -installApp -password xxxx -device 192.168.196.131 -package /project/bbww/helloworld/bin/Archive.bar

This then gave the application again in the Internet part of the menu on the simulator.

Great.

The full API is at http://www.blackberry.com/developers/docs/webworks/api/playbook/

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s