Nokia的S60和S40系列jad和jar manifest的属性列表见下,也可参见原文:
The following JAD and JAR manifest attributes are specified for Symbian devices.
Attribute name |
Since Symbian Edition |
Description |
Value |
---|---|---|---|
MIDlet-Data-Size |
S60 3rd Edition FP1 |
Used at installation time to determine whether the destination drive has capacity for accommodating both the application files and the RMS space needed to run the application. The amount of RMS
space defined by Installation is allowed only to drives
with enough free space. The amount of needed space is calculated from
the attributes |
S60 3rd Edition FP1 and earlier: The maximum value is 1MB and is checked during installation. RMS implementation also allocates space from file system according to this attribute. S60 3rd Edition FP2 - S60 5th Edition: The maximum value is 1MB and is checked during installation. No reserve file is made. Symbian^3 and later (JRT2.1 onwards): No maximum value. No reservation file is made.. |
Nokia-Forward-Lock |
Symbian^3 (Java Runtime 2.1) |
Specifies whether the MIDlet suite in the MIDlet Message is installed as forward-locked. Forward-locked means that the MIDlet suite JAR file from the MIDlet Message is DRM-encrypted during installation. If this attribute is set to This is an optional attribute. For more information, see MIDlet Message. |
Possible values:
Example:
|
S60 5th Edition |
Allows MIDlet to force either portrait or landscape UI orientation. The orientation is only fixed on devices that support the specific layout. |
| |
S60 3rd Edition FP 2 |
Specifies MIDlet behavior to background event. If
value is By default the attribute value is Note: When designing the MIDlet, take into account that |
Example:
| |
Nokia-MIDlet-Block-Uninstall |
S60 3rd Edition FP 2 |
Prevents uninstallation of the MIDlet Suite if value of
this attribute is Only Manufacturer or Operator signed applications are able to use this attribute. Note: This attribute must be specified in the JAR manifest file. |
Example:
|
Nokia-MIDlet-Canvas-Scaling-Orientation-Switch |
S60 3rd Edition FP 2 |
For an illustration, see figure LCDUI Canvas scaling on orientation switch. Note: Behavior of combination |
Example:
|
Nokia-MIDlet-Category |
S60 2nd Edition |
Defines localized installation folder for MIDlet. |
Possible values:
|
Symbian^3 (Java Runtime 2.1) |
Specifies the localized confirmation prompt shown by the Application Management Software (AMS) when the user selects to remove the MIDlet or MIDlet suite. For a list of supported locales, see section Supported locales. For
the non-localized version of this attribute, see |
Examples:
| |
Nokia-MIDlet-Flip-Close |
S60 3rd Edition FP 2 |
Specifies MIDlet behavior on flip-close event. If
value is By default the attribute value
is Note: If a MIDlet is already in background, it does not get any notification about flip close event. Note: In some cases, MIDlets may remain in background when the flip
is opened. In these cases, the user needs to bring MIDlet to foreground,
by using the Attribute |
Example:
|
Nokia-MIDlet-Launch-Params |
Symbian^3 (Java Runtime 2.1) |
Specifies the set of parameters that the application supports
when launched using For more information, see Launching a MIDlet from another MIDlet . |
Comma separated list of property names. Example:
|
Nokia-MIDlet-Name-<locale> |
Symbian^3 (Java Runtime 2.1) |
The localized name of the MIDlet suite for the specified locale. For more information, see MIDlet name localization |
Examples:
|
Nokia-MIDlet-<n>-<locale> |
Symbian^3 (Java Runtime 2.1) |
The localized name of the MIDlet. For more information, see MIDlet name localization |
Examples:
|
S60 3rd Edition FP 2 |
Prevents the MIDlet from closing via pressing the End key. Instead of closing the MIDlet it is put to the background. The MIDlet can be still closed from the list of open applications. |
Example:
| |
S60 5th Edition |
Specifies the on-screen keypad for a This attribute is valid only in touch-enabled devices that have limited physical key availability. |
Example:
| |
S60 5th Edition (Java Runtime 1.4) |
Defines where softkeys are placed on the screen when using the on-screen keypad on devices that have no physical softkeys. |
| |
Nokia-MIDlet-Original-Display-Size |
S60 3rd Edition |
Specifies the resolution for which the MIDlet was designed.
This is used to adapt the MIDlet for full-screen mode on a mobile
device. Scaling applies to a full screen LCDUI |
Example:
|
S60 3rd Edition FP 2 |
This attribute changes the default Selection key behavior
in By default, normal mode If this
attribute is set as |
Example:
| |
Symbian^3 (Java Runtime 2.1) |
Defines the custom start-up screen ("splash screen") used by the MIDlet. This attribute can also be used to define multiple custom start-up screens for the device to choose from or to disable ("suppress") the start-up screen for the MIDlet. |
Examples:
| |
S60 5th Edition (Java Runtime 1.4) |
Sets the size of tap detection area and tap time-out on Touch UI devices. If the pointer stays pressed within the detection area and does not surpass the time-out value, the event is considered a single tap. If the pointer leaves the detection area or the time-out passes, drag events start being generated. The detection area is a rectangle, measured in twips. The entered value is half the length of one side of the rectangle. |
Size of the detection rectangle in twips and time-out value in milliseconds, separated by a comma Example:
| |
S60 3rd Edition |
Specifies the target size for the MIDlet. This is usually
the same as the screen size of the target device. This attribute is
usually used in conjunction with the |
Example:
| |
Nokia-MIDlet-UID-<n> |
S60 3rd Edition FP 2 |
Predefined UID (Unique IDentifier) for a MIDlet. The value of <n> must match to MIDlet-<n> attribute. UID can be from following ranges:
Note: In the case the UID is from protected range, the MIDlet Suite must be signed and the UID must be specified in both the JAD and the JAR manifest file. For more details, see section Pre-defined UID attributes For more information on UID values in MIDlet development, see Symbian signed process web page. |
Examples:
|
Nokia-Scalable-Icon (and Nokia-Scalable-Icon-MIDlet-<n>) |
S60 3rd Edition FP 2 |
Specifies scalable MIDlet icon support. When developing
MIDlet suites, the MIDlet specific attributes For more information, see Scalable icon support. |
Example:
|
S60 3rd Edition FP 2 |
Specifies the following:
Note: The attribute value is a comma-separated list, so several values can be specified. |
Examples:
|
The following JAD and JAR manifest attributes are specified for Series 40 devices.
Attribute name |
Since Series 40 Edition |
Description |
Value |
---|---|---|---|
Nokia-MIDlet-Background-Exit-Confirm-<locale> |
Series 40 6th Edition |
Prompt to use in a confirmation before stopping a background MIDlet prior when freeing heap space. Note: Background MIDlets are enabled only for operator and manufacturer domains. |
Example:
|
Nokia-MIDlet-bg-launchpad |
Series 40 5th Edition FP 1 |
Indicates MIDlet-n in the suite that is a launchpad MIDlet (JAR explorer). Note: Background MIDlets are enabled only for operator and manufacturer domains. |
Example:
|
Nokia-MIDlet-bg-memory-size |
Series 40 3rd Edition FP 2 |
Indicates that the MIDlet can run in the background and defines the amount of heap it is allowed in the background in kb. Note: Background MIDlets are enabled only for operator and manufacturer domains. |
Integer Example:
|
Nokia-MIDlet-bg-server |
Series 40 5th Edition FP 1 |
Indicates MIDlet-n in the suite that is a BG server. Note: Background MIDlets are enabled only for operator and manufacturer domains. |
Example:
|
Nokia-MIDlet-bg-user-disable |
Series 40 5th Edition FP 1 |
Indicates if the MIDlet can be stopped by the user to free
background heap for another MIDlet to start. Note: Note: Background MIDlets are enabled only for operator and manufacturer domains. |
Example:
|
Nokia-MIDlet-bg-version |
Series 40 6th Edition |
Indicates the background API version required to run the MIDlet. Note: Background MIDlets are enabled only for operator and manufacturer domains. |
Example:
|
Nokia-MIDlet-Category |
Series 40 6th Edition |
Used to determine the folder to which MIDlets are stored following an OTA Download. Note: This is a JAD only attribute and applicable only to BG MIDlets. The value is case sensitive. |
Possible values:
|
Nokia-MIDlet-Category |
Series 40 6th Edition |
|
Example:
|
Nokia-MIDlet-Close-Gprs-Context |
Series 40 5th Edition FP 1 |
If set to |
Example:
|
Nokia-MIDlet-Connectionsettings |
Series 40 6th Edition Lite |
Provides an identifier string for provisioned connection settings. It specifies provisioned proxy or access point settings to be used when the MIDlet is accessing the network (over HTTP or TCP/UDP). The given identifier provides one-to-one mapping to the connection settings. The identifier has to conform with OMA DM and WAP Provisioning standards. The identifier strings are specific to the manufacturer or operator. If settings are not specified, default settings are used. |
|
Nokia-MIDlet-Name-<locale> |
Series 40 3rd Edition |
Localized MIDlet suite name For more information, see MIDlet name localization |
Example:
|
Nokia-MIDlet-Name-n-<locale> |
Series 40 3rd Edition |
Localized MIDlet name for MIDlets in the suite For more information, see MIDlet name localization |
Example:
|
Nokia-MIDlet-national-digit-display |
Series 40 5th Edition |
Used to enable national rather than Latin digit display. |
Example:
|
Nokia-MIDlet-no-exit |
Series 40 3rd Edition FP 2 |
Indicates a MIDlet that cannot exit once started. |
Example: Nokia-MIDlet-no-exit: true |
Nokia-MIDlet-Save-Location |
Series 40 5th Edition FP 1 |
Used to determine download folder (currently only supports
the root ( |
Example:
|
Nokia-Service |
Series 40 5th Edition FP 1 |
Used to indicate an upload service. Upload services are downloaded with different UI to other MIDlets. |
Example:
|
Nokia-UI-Enhancement |
Series 40 3rd Edition |
Specifies the following:
Note: The attribute value is a comma-separated list, so several values can be specified. |
Examples:
|
Nokia-Update |
Series 40 3rd Edition |
Version update URL, used when doing Update Check. If no URL then Update Check is disabled. |
Example:
|
progressive_download |
Series 40 3rd Edition FP 2 |
Set to |
Example:
|
Background MIDlets
Background MIDlets are enabled for operator and
manufacturer domains only. The number of MIDlets that can run concurrently
is determined by product configuration that takes into account the
amount of RAM that can be made available for the Java heap. The ability
of the device to run MIDlets in the background is a key enabler for
services such as Email
and IM
that need to remain in contact with a remote server even when not
on display. MIDlets that run in the background are pre-allocated heap
space from the available background heap. The amount allocated is
determined by the Nokia-MIDlet-BG-memory-size
attribute in their JAD file.