Blackberry WebWorks SDK

Having installed Flash Builder and the Blackberry SDks, and built a simple Hello World, I decided to look at the simpler WebWorks development tools to see if Javascript development would be as easy to use. I’m more into javascript, jQuery etc nowaday, so it might just be more convenient.

The WebWorks SDK can be found at http://us.blackberry.com/developers/tablet/webworks.jsp. The Air SDK from http://www.adobe.com/products/air/sdk/ is just a zip file that you can place anywhere convenient. Version 2.5 is needed; as we speak they are testing 2.6.

The Playbook simulator is set up in just the same way as my last entry, loading the iso file into VMWare or similar virtual space.

Once the software is set up, we just have to write some html files to create the app: index.html will be the page, config.xml is the configuration file, icon.png the screen icon. Last webinar said icon size 82 pixels square but check the docs. Just zip these files and name as HelloWorld.zip

bbwp HelloWorld.zip

I had a few errors with my Windows install, so redownloaded WebWorks SDK – v1.0.0.2 Beta2. I got an “Already installed” error, so uninstalled but had a problem with recursive directories. I had the same problem on the Mac at home, but that seemed to be able to delete them; not so the PC. I shall ignore them and re-install elsewhere.

Put Air install into C:/Air just unzipping the files (v2.5); Playbook install to C:/BlackberryWW and told it where Air was (v0.9.3). Downloaded the sketchPad application to C:/BB/SketchPad

Use a command line window, move to C:/BlackberryWW/bbwp/blackberry-tablet-sdk/bin directory and then use the command,

blackberry-deploy -installApp -password computing -device 192.168.75.129 -package c:/BB/SketchPad/bin/SketchPad.bar

which gave some output – sending install request, file size 50557, id, version, result:success and the app appeared under the Internet menu after a refresh. It worked fine.

With the wrong password, it just gives “Authentication failed due to system error” . With the wrong IP address it gives “Cannot connect: Connection to…. refused. You may have to reboot the target”. I also had a few problems setting developer mode in the emulator, but maybe that was just finger trouble with passwords. The hammer symbol appeared in the end and showed the IP address.

Cool to see it working in the emulator. Hope that’s some help.

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