Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
New Contributor
y4yogi
Posts: 8
Registered: ‎06-18-2012
My Device: Blackberry Playbook Tablet

How to write config.xml for a playbook application.

[ Edited ]

EDIT: Codified the code to avoid :smileytongue: emoticons.

 

It seems that I am getting a Air Packager error because of some issue involved in the config.xml file.

Please suggest what changes I can make to be able to package properly.

 

config.xml

 

<?xml version="1.0" encoding="utf-8"?>
<widget xmlns="http://www.w3.org/ns/widgets"
        xmlns:rim="http://www.blackberry.com/ns/widgets"
        version="2.0.0.0">

  <author href="www.appyogi.blogspot.com" rim:copyright="Copyright 1998-2011 AppYogi">AppYogi</author>

  <name>xxxxxxx</name>

  <description>
   .
   .
  </description>

  <rim:orientation mode="auto"/>

  <rim:loadingScreen backgroundImage="background.png"
             foregroundImage="foreground.gif"
             onLocalPageLoad="true">
    <rim:transitionEffect type="zoomIn"/>
  </rim:loadingScreen>
        
  <rim:category name="games"/>    

  <rim:permissions>
    <rim:permit>access_shared</rim:permit>
    <rim:permit>read_geolocation</rim:permit>
    <rim:permit>use_camera</rim:permit>  
  </rim:permissions>

  <icon src="icons/example.png"/>

  <content src="index.html"/>

  <feature id="blackberry.ui.dialog"/>

  <access uri="http://www.somedomain.com" subdomains="true">
    <feature id="blackberry.app.event"/>
    <feature id="blackberry.invoke"/>
  </access>

</widget>

 

Please use plain text.
BlackBerry Development Advisor
oros
Posts: 1,557
Registered: ‎04-12-2010
My Device: BlackBerry Z10

Re: How to write config.xml for a playbook application.

[ Edited ]

Initially I reproduced the packaging issue by copying your config.xml file and then fixed it by removing this code:

 

  <rim:loadingScreen backgroundImage="background.png"
             foregroundImage="foreground.gif"
             onLocalPageLoad="true">
    <rim:transitionEffect type="zoomIn"/>
  </rim:loadingScreen>

However that's not really a solution :smileyhappy:

 

So I put that code back in and created a dummy background.png and foreground.gif. Following this, it successfully packaged. Can you confirm that these two images exist in the same folder as your config.xml file?

 

 


Erik Oros | @WaterlooErik | eoros@blackberry.com | Developer Issue Tracker

If a reply has answered your question, please click Accept as Solution to help other visitors in the future.
Please use plain text.
New Contributor
y4yogi
Posts: 8
Registered: ‎06-18-2012
My Device: Blackberry Playbook Tablet

Re: How to write config.xml for a playbook application.

Yes both the images exist in that folder. Still no luck.
Please use plain text.
BlackBerry Development Advisor
oros
Posts: 1,557
Registered: ‎04-12-2010
My Device: BlackBerry Z10

Re: How to write config.xml for a playbook application.

If you remove rim:loadingScreen component from config.xml, do you still see issues?


Erik Oros | @WaterlooErik | eoros@blackberry.com | Developer Issue Tracker

If a reply has answered your question, please click Accept as Solution to help other visitors in the future.
Please use plain text.