Click here to Skip to main content
Click here to Skip to main content

Exploring the PlayBook Application’s Blackberry-tablet.xml

By , 15 Apr 2011
Rate this:
Please Sign up or sign in to vote.

With the release of the BlackBerry Tablet OS SDK for Adobe AIR Beta 3 (0.9.2) developers have access to a new PlayBook application descriptor file called "blackberry-tablet.xml". This file has to be named exactly "blackberry-tablet.xml" and be placed in the root of the application structure, basically along side the AIR typical Xxxx-app.xml descriptor file.

I created a simple example application (BlackBerryTabletXMLOptions) that displays a smiley face image to the screen to talk about a couple of the attributes in the blackberry-tablet.xml file.

Here is what the application looks like:

smiley-face-app.png

Smiley Face App

You might be wondering how I got an application to show up over the main interface of the PlayBook. Well lets take a look at the blackberry-tablet.xml:

<qnx>
  <initialWindow>
    <systemChrome>none</systemChrome>
    <transparent>true</transparent>
  </initialWindow>
  <publisher>Renaun Erickson</publisher>
  <category>core.media</category>
  <icon>
    <image>renaun-icon.png</image>
  </icon>
  <splashscreen>renaun_com_splash.png</splashscreen>
</qnx>

What makes this work is the "transparent" attribute set to true. This allows your application to render transparently over the main interface of the playbook. The other attributes in the xml file to call out are "category", "icon.image", and "splashscreen". First the category allows you to set the values: core.media, core.internet, core.games, and core.utils. This category value is used to place the application and its custom icon defined in the xml above in the application categories that show up on the main screen of the PlayBook. See below that the BBTabletXMLOptions application is installed in the Media category area.

application-in-media-category.png

Application in Media Category

The splashscreen is the last attribute that is in this application. It takes a 1024x600 image that is shown before the application is activated.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Renaun Erickson

United States United States
No Biography provided

Comments and Discussions

 
GeneralCould you include some info on setting permissions in the xml file? PinmemberCharles T II22-Apr-11 15:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Mobile
Web02 | 2.8.140415.2 | Last Updated 15 Apr 2011
Article Copyright 2011 by Renaun Erickson
Everything else Copyright © CodeProject, 1999-2014
Terms of Use
Layout: fixed | fluid