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

Adobe AIR Development

Reply
Contributor
eldes
Posts: 13
Registered: ‎03-05-2012
My Device: PlayBook

Re: Splashscreen not appearing

[ Edited ]

It is in the same folder as all the others files (bar, icon, swf).

 

http://twitpic.com/9jirtn

 

 

 

Please use plain text.
Developer
jtegen
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10

Re: Splashscreen not appearing

What is in your .BAT script? Are you including the file in the script command?
Please use plain text.
Contributor
eldes
Posts: 13
Registered: ‎03-05-2012
My Device: PlayBook

Re: Splashscreen not appearing

In .BAT:

 

@echo off
call blackberry-airpackager -package CityGame.bar -installApp -launchApp CityGame-app.xml CityGame.swf blackberry-tablet.xml Icon_86.png blackberry-splash.png -devMode -device 169.254.0.1 -password mypassword

 

 


 

In CityGame-app.xml:

 

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<application xmlns="http://ns.adobe.com/air/application/2.5">
  <id>br.com.frux.citygame</id>
  <versionNumber>0.1.0</versionNumber>
  <filename>Eco City</filename>
  <description>Eco City v.alfa 1.0</description>
  <name>Eco City</name>
  <copyright>http://www.frux.com.br</copyright>
  <initialWindow>
    <content>CityGame.swf</content>
    <systemChrome>standard</systemChrome>
    <transparent>false</transparent>
    <visible>true</visible>
    <fullScreen>false</fullScreen>
    <autoOrients>false</autoOrients>
    <aspectRatio>portrait</aspectRatio>
    <renderMode>auto</renderMode>
    <maximizable>false</maximizable>
    <minimizable>true</minimizable>
    <resizable>false</resizable>
  </initialWindow>
  <customUpdateUI>false</customUpdateUI>
  <allowBrowserInvocation>false</allowBrowserInvocation>
</application>

 

 



blackberry-tablet.xml:

 

<qnx>
  <initialWindow>
    <systemChrome>none</systemChrome>
    <transparent>true</transparent>
    <visible>true</visible>
    <autoOrients>true</autoOrients>
    <aspectRatio>portrait</aspectRatio>
  </initialWindow>
   <publisher>frux.com.br</publisher>
   <author>Frux Design</author>
  <authorId>myauthorid</authorId>
   <buildId>1000</buildId>
   <platformVersion>2.0.0.0</platformVersion>
   <category>core.games</category>
   <icon>
    <image>Icon_86.png</image>
  </icon>

  <splashscreen>blackberry-splash.png</splashscreen>
</qnx>

Please use plain text.
Developer
jtegen
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10

Re: Splashscreen not appearing

Try button blackberry-splash.png in quotes or try removing the hyphan in all places.
Please use plain text.
Contributor
eldes
Posts: 13
Registered: ‎03-05-2012
My Device: PlayBook

Re: Splashscreen not appearing

Thank you, jtegen.

 

But, as I write previously I tried using a name without a hyphen (splashsceen.png). So it did not work.

Please use plain text.
Developer
JohnPinkerton
Posts: 350
Registered: ‎01-21-2011
My Device: Curve 8900 (Personal) / Bold 9650 (Work)

Re: Splashscreen not appearing

When you removed it from the filename you removed it from the xml right?
Please use plain text.
Developer
JohnPinkerton
Posts: 350
Registered: ‎01-21-2011
My Device: Curve 8900 (Personal) / Bold 9650 (Work)

Re: Splashscreen not appearing

Also, have you tried a different image to verify the png isn't corrupt in some way?
Please use plain text.
Contributor
moseslecce
Posts: 31
Registered: ‎01-20-2011
My Device: Torch 9800

Re: Splashscreen not appearing

Did you try unzipping your bar file (rename to .zip first) and checking if the file was actually packaged inside the bar in the proper directory?

Please use plain text.
Contributor
eldes
Posts: 13
Registered: ‎03-05-2012
My Device: PlayBook

Re: Splashscreen not appearing

Thank you, JohnPinkerton.

I tried a other image and JPEG too (with the corresponding names in the xml.). Didn't work.
Please use plain text.
Contributor
eldes
Posts: 13
Registered: ‎03-05-2012
My Device: PlayBook

Re: Splashscreen not appearing

Yes. I unzipped my BAR and the image files (icon and splash) was inside into the (relative BAR) root folder.

...

Sim, quando eu descompactei o BAR encontrei os arquivos de imagem (ícone e splash) se encontravam lá, na pasta apropriada.
Please use plain text.