Click here to Skip to main content
15,883,961 members
Articles / Mobile Apps / Blackberry

Exploring the PlayBook Application’s Blackberry-tablet.xml

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
15 Apr 2011CPOL1 min read 16.3K   5   1
Description of the application descriptor file called "blackberry-tablet.xml"

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:

blackberry-tablet-xml/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 let's take a look at the blackberry-tablet.xml:

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.

blackberry-tablet-xml/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.

History

  • 15th April, 2011: Initial version

License

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


Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

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

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

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