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 Developer
Posts: 23
Registered: ‎11-05-2009
My Device: Not Specified

Widget Loading Screen

It would be great if we could use an image for the loading screen, and not just specify a color.

Is this planned? If not it would be a good feature to add!

Retired
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: Widget Loading Screen

Yes this is planned... That way you will be able to add something like an animated gif etc.

 

We are also looking at different ways we can speed up the initial launch.

 

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
New Developer
Posts: 23
Registered: ‎11-05-2009
My Device: Not Specified

Re: Widget Loading Screen

That sounds great Tim.

 

Any idea on the time frame for the next version?

Retired
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: Widget Loading Screen

I don't have a solid time frame for that feature for you.  If you are not afraid of Java, and it is an urgent need, you can open up the Java templates used to package your widget and add the feature yourself. Smiley Happy

 

The full Java source for the widget is in the Widget Packager SDK install directory under "device_templates"

 

 

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
New Developer
Posts: 23
Registered: ‎11-05-2009
My Device: Not Specified

Re: Widget Loading Screen

Hmmmm interesting...

 

So if I was to edit the BrowserFieldScreen.java file for instance, then I could modify the load screen?

And any changes made would then be compiled with the widget by bbwp?

Retired
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: Widget Loading Screen

Correct, any changes you make to the Java files in that directory will then be compiled into any widget you package using the bbwp.exe

 

With that.... I recommend making a copy of the existing templates directory so you have it in standby if your modified source goes rogue on you Smiley Happy

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
New Developer
Posts: 23
Registered: ‎11-05-2009
My Device: Not Specified

Re: Widget Loading Screen

Good deal...

 

Just a quick look and it look's like it "should" be fairly easy... replace the section graphics.SetBackGroundColor with a graphics.SetBackGroundImage and it might just work Smiley Wink

 

I shall try it out later and see where I can get!

 

And yes, always make a backup first Smiley Wink

New Developer
Posts: 4
Registered: ‎10-14-2009
My Device: Not Specified

Re: Widget Loading Screen

How did this work out for you?

New Developer
Posts: 2
Registered: ‎11-18-2009
My Device: Not Specified

Re: Widget Loading Screen

Anyone have any luck getting this to work? I tried, but am not very well versed in Java. Pleae post if you have a solution. Thanks!

Retired
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: Widget Loading Screen

[ Edited ]

Another tip for having your widget launch quicker, is to make sure that if you have javascript that you want to run in the "onload" of the page.  Make sure to put this script in a function that you call in a setTimeout

 

For example:

 

 

<script type="text/javascript">

function doLoad()
{
  // do my logic
}

</script>
<body onload="setTimeout(doLoad, 500)">

</body>

 

 

This is because the UI rendering of the page will not update until your JavaScript thread ends. So the setTimeout() will exit the JavaScript thread and allow the HTML of the page to be rendered.

 

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter