Header Sep
Java Tips, Tricks & Code
我的评分 用户评价
登录票选本页

October 2004
Using JAD file to configure screen size on V800

[Back]

All Sony Ericsson, non-Symbian OS MIDP 2.0 phones, including the Z1010, K700, K500, Z500 and S700/S710 series as well as the Vodafone-specific F500i and V800 phones, share a new feature that allows the user to manually set the screen size for Java MIDlets. The configuration can be found on the phones in the Entertainment/Games & More/More/Screen menu.

The V800 has an additional feature that also allows the MIDlet developer to configure the screen size from within the MIDlet, or to be more specific, from the JAD file. This can be very useful for preventing the consumer from reconfiguring the setting manually. Even if the consumer has changed the screen size value manually, the JAD entries can change it back when the MIDlet is run.

The tag to use in the JAD file on the V800 is called "MIDxlet-Application-Range" and takes two parameters: width and screen height. Some examples of valid tags are:

MIDxlet-Application-Range: 200, 200   // Set screen size to 200x200
MIDxlet-Application-Range: 100-200, 50-200  // The phone can chose the screen size within this range
MIDxlet-Application-Range: 0, 0  // Use the maximum screen size possible 

我的评分 用户评价
登录票选本页