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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Web and WebWorks Development

Reply
New Contributor
y4yogi
Posts: 8
Registered: ‎06-18-2012
My Carrier: None

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: 839
Registered: ‎04-12-2010
My Carrier: Bell

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?

 

 

Please note that I will be unavailable between May 19th and June 4th. Sincere apologies for any delays during this time. I will do my best to follow-up as soon as I am able.

Erik Oros
BlackBerry Development Advisor
@WaterlooErik
Please use plain text.
New Contributor
y4yogi
Posts: 8
Registered: ‎06-18-2012
My Carrier: None

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: 839
Registered: ‎04-12-2010
My Carrier: Bell

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

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

Please note that I will be unavailable between May 19th and June 4th. Sincere apologies for any delays during this time. I will do my best to follow-up as soon as I am able.

Erik Oros
BlackBerry Development Advisor
@WaterlooErik
Please use plain text.