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
poc
Contributor
poc
Posts: 13
Registered: ‎09-18-2011
My Device: Z10 LE

Black Screen display after splash screen in BB10 HTML5 app

My App compiled with SDK1.0.1.17 run but not in landscape

 

I download SDK 1.0.2.9, make some modifications in Config.xml ( for Adam Stanley suggestions), compile, deploy to BB10 DevAlpha, and now  the app shows the SplashScreen in landscape and next black screen.

I check the Config.xml and looks ok to me.

What I doing wrong?

Thanks in advance

Please use plain text.
BlackBerry Development Advisor
Nukul
Posts: 115
Registered: ‎06-06-2011
My Device: 9800

Re: Black Screen display after splash screen in BB10 HTML5 app

can I get a zip of your app or some code to see here?
kind of hard to debug without any code here.
@nukulb
Please use plain text.
poc
Contributor
poc
Posts: 13
Registered: ‎09-18-2011
My Device: Z10 LE

Re: Black Screen display after splash screen in BB10 HTML5 app

Hi, I dont think is the App, because the same code with earlier SDK runs well

The thing is with the new config.xml

If you like, i will post the code of it here

Please use plain text.
BlackBerry Development Advisor
Nukul
Posts: 115
Registered: ‎06-06-2011
My Device: 9800

Re: Black Screen display after splash screen in BB10 HTML5 app

sorry but what does "new config.xml" mean?

can you post your config.xml
@nukulb
Please use plain text.
poc
Contributor
poc
Posts: 13
Registered: ‎09-18-2011
My Device: Z10 LE

Re: Black Screen display after splash screen in BB10 HTML5 app

I mean for example the changes to the config.xml structure in 1.0.2.9. orientation and background img now defined by param element

 

https://developer.blackberry.com/html5/documentation/rim_background_element_1265316_11.html

 

https://developer.blackberry.com/html5/documentation/param_element.html

 

Here the code of Config.html

 

<?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" id="m4kids">
 
  <author rim:copyright="2012 EfePe Design" email="pablo.canonico@gmail.com" href="http://www.axworks.com.ar/">Efepe Design</author>

  <name>Multiply4Kids</name>
 
  <description>
    An amazing application for kids to learn multiply tables
  </description>
 
  <rim:smileytongue:ermissions>
    <rim:smileytongue:ermit>access_shared</rim:smileytongue:ermit>
  </rim:smileytongue:ermissions>
  <rim:category name="games"/>    
  <icon src="Img/AppIcon.png"/>
 
  <rim:splash src="Img/Splash.png" />
 
  <content src="Index.html" rim:allowInvokeParams="true" />

  <feature id="blackberry.app.orientation">
    <param name="mode" value="landscape" />
  </feature>
 
  <feature id="blackberry.app">
    <param name="backgroundColor" value="0xFFFF0000" />
  </feature>
 
 </widget>

 

Please use plain text.
BlackBerry Development Advisor
Nukul
Posts: 115
Registered: ‎06-06-2011
My Device: 9800

Re: Black Screen display after splash screen in BB10 HTML5 app

so if you remove the splash screen, orientation and background color, does it work?

if so removing which one fixes it.
Can you try to remove them one by one and see which one fixes it?
@nukulb
Please use plain text.
poc
Contributor
poc
Posts: 13
Registered: ‎09-18-2011
My Device: Z10 LE

Re: Black Screen display after splash screen in BB10 HTML5 app

I remove both, let the minimum necessary and continue with Black Screen, but now in portrait mode

 

Without changing anything, with this version of config.xml I recompiled with SDK 1.0.1.17 and the apps run, the Index.html shows in screen but obviously in portrait

 

So, I do not use the last SDK??

Then, How  I fix the issue of orientation?

Please use plain text.
BlackBerry Development Advisor
Nukul
Posts: 115
Registered: ‎06-06-2011
My Device: 9800

Re: Black Screen display after splash screen in BB10 HTML5 app

the 1.0.0.17 SDK did not wait for a DocumentLoadFinished to display content
but the new 1.0.2.9 does.
If there is an error in your code it can easily never return from DocumentLoadFinished.

Lets fix your issue on the latest SDK otherwise you cannot use orientation.

Can you send me your app (zip)? nbhasin@rim.com
@nukulb
Please use plain text.
poc
Contributor
poc
Posts: 13
Registered: ‎09-18-2011
My Device: Z10 LE

Re: Black Screen display after splash screen in BB10 HTML5 app

OK, I could send the  .bar y yo wish?

Please use plain text.
BlackBerry Development Advisor
Nukul
Posts: 115
Registered: ‎06-06-2011
My Device: 9800

Re: Black Screen display after splash screen in BB10 HTML5 app

till the time you package it with -d, I should be fine. Need to be able to debug in web inspector.
@nukulb
Please use plain text.