This section lists all blog posts, regardless of topic.
BB10: How to add a splash screenJuly 10, 2012
The following instructions use PNG images, but JPG images work as well.
Right click
bar-descriptor.xml and select
Open With, then
Text Editor.
Look for:
<!-- The splash screen that will appear when your application is launching. Should be 1024x600. --> <!-- <splashscreen></splashscreen> -->
|
|
Note that this comment still refers to the 1024x600 resolution of the PlayBook, but we'll want to use a resolution of 1280x768.
Splash Screen for Landscape-only App
If your app is only intended to be used in landscape mode, then replace the commented out splash screen markup in
bar-descriptor.xml with:
<asset path="splashscreen.png">splashscreen.png</asset> <splashscreen>splashscreen.png</splashscreen>
|
|
Obviously be sure to drag and drop your splash screen image into the root directory of your project.
Also, in the
<initialWindow> section of
bar-descriptor.xml, add:
<aspectRatio>landscape</aspectRatio> <autoOrients>false</autoOrients>
|
|
Splash Screen for Portrait-only App
The
<splashscreen> tag allows you to specify both the landscape and portrait splash screens. To do that, you separate the file names with a colon. (:)
Since we only want the portrait splash screen, we want:
<asset path="splashscreen.png">splashscreen.png</asset> <splashscreen>:splashscreen.png</splashscreen>
|
|
(Note the colon prior to the file name)
Obviously be sure to drag and drop your splash screen image into the root directory of your project.
Also, in the
<initialWindow> section of
bar-descriptor.xml, add:
<aspectRatio>portrait</aspectRatio> <autoOrients>false</autoOrients>
|
|
Splash Screen for Portrait + Landscape App
The
<splashscreen> tag allows you to specify both the landscape and portrait splash screens. To do that, you separate the file names with a colon. (:)
<asset path="splashscreen_portrait.png">splashscreen_portrait.png</asset> <asset path="splashscreen_landscape.png">splashscreen_landscape.png</asset> <splashscreen>splashscreen_landscape.png:splashscreen_portrait.png</splashscreen>
|
|
Obviously be sure to drag and drop your splash screen image into the root directory of your project.
Also, in the
<initialWindow> section of
bar-descriptor.xml, add:
<autoOrients>true</autoOrients>
|
|
See also:
Some documentation of the <splashscreen> tagSearch terms:
"bb10 splash screen", "bb10 splashscreen", "bb10 how to create a splash screen", "bb10 creating a splash screen"
Recipe for creating a splash screen?July 10, 2012
So far I haven't been perfectly successful at creating a splash screen for my Baby Names app.
My first approach was to use a
NavigationPane with a timer whereby the splash screen would be displayed and then the next page would be loaded automatically after a couple of seconds.
But that leads to there being a "Back" button on what should be the first screen.
My second approach was to simply hide the container holding the splash image after the two seconds and show the container holding the first screen, but now that I have an action bar at the bottom of the screen, that is showing when the splash screen is visible.
Ideally there would be a way to replace the "BlackBerry" loading screen with a custom image. Perhaps there is a way to do that.
Forum post:
http://supportforums.blackberry.com/t5/Cascades-Development/How-to-create-a-splash-screen/td-p/1806769Update:
Figured it out
qde.exe FreezesJuly 10, 2012
We had a power outage today for about 30 minutes, and once I got my computer back up and running, the BB10 IDE won't start. When I double click the icon, I can see qde.exe running in Task Manager, but nothing is displayed.
The joys of being a developer.
Update: Got it working by removing the
.metadata directory under my workspace directory. The downside to that fix is that it means you need to reconfigure the IDE and re-add all of your projects.
older >>