Just An Application

July 23, 2009

What’s New In MIDP 3.0 ? Part 36: IdleScreen MIDlets

Filed under: Java, JME, MIDlets, MIDP, MIDP3 — Tags: , , , , , — Simon Lewis @ 11:52 am

The IdleScreen MIDlet Model

  • An Idlescreen MIDlet is any MIDlet which has been declared with a type of idlescreen at installation time.

  • A user may choose to add an Idlescreen MIDlet to the idle screen of a Display.

    • If the chosen MIDlet is not running when added then it will be started automatically.

  • An Idlescreen MIDlet can access the idle screen of a Display using an IdleItem.

  • An Idlescreen MIDlet which has been added to the idle screen of a Display but which does not access it using an IdleItem may be removed from the idle screen and terminated

  • A MIDlet which is not declared to be an Idlescreen MIDlet cannot access the idle screen of any of its Displays

Notes

  1. Should it have access to the idle screens of multiple Displays it is not clear how an Idlescreen MIDlet is supposed to determine which of them,
    if any, it is supposed to be responsible for displaying on.

  2. The javax.microedition.lcdui documentation says

    If a MIDlet that has not announced itself as an idle screen MIDlet with the JAD or JAR Manifest attribute
    tries to add content to the idle screen, the system MUST ignore this request.

    Presumably this means that any calls to Display.setIdleItem(IdleItem) will simply have no effect.


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

Advertisements

June 18, 2009

What’s New In MIDP 3.0 ? Part 13: MIDlet Types

Filed under: Java, JME, MIDlets, MIDP, MIDP3 — Tags: , , , , , , , — Simon Lewis @ 4:05 pm

There are three specialized MIDlet types in MIDP 3.0

  • AutoStart
  • IdleScreen
  • ScreenSaver

If a MIDlet is of one or more of these types, then they must be declared at installation time using a

    MIDlet-<n>-Type

attribute corresponding to the

    MIDlet-<n>

attribute used to declare the MIDlet itself.

The value of the attribute is of the form

    <type> ["," <type>]*

where <type> is one of

  • autostart
  • idlescreen
  • screensaver

To declare the type of a MIDlet as autostart a MIDlet Suite must be granted the javax.microedition.midlet.AutoStartPermission.


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

Blog at WordPress.com.

%d bloggers like this: