Just An Application

July 23, 2009

What’s New In MIDP 3.0 ? Part 34: MIDlet Splash Screens

Filed under: Java, JME, MIDlets, MIDP, MIDP3 — Tags: , , , , , — Simon Lewis @ 7:38 am

1. Specifying A Splash Screen

At installation time it is possible to specify an image to be used as a splash screen during the launch of any MIDlet in the MIDlet Suite.

This is done by using the

    MIDlet-Splash-Screen-Image

attribute to specify a comma separated list of file names. Each name should be the absolute path of a file within the MIDlet Suite JAR containing an Image.

At runtime the list is traversed in the order specified and the first image, if any, that is successfully loaded is used as the splash screen.

Alternatively the value of the attribute can be specified as

    suppress

in which case there will be no visual indication that the MIDlet is being started.

2. Splash Screen Behaviour

The splash screen image is displayed automatically on the primary Display when the MIDlet is started by the user, and is guaranteed to be visible to the user by the time the MIDlet’s startApp() method is called.

It then remains visible until the MIDlet’s startApp() method returns, or the MIDlet shows a Displayable on the primary Display if this occurs first, or if the MIDlet’s primary Display is no longer in the foreground state.

The amount of time for which the splash screen has been visible to the user can be determined by calling the MIDlet’s getSplashScreenTime() method.


Copyright (c) 2009 By Simon Lewis. All Rights Reserved

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: