J2ME Polish
J2ME Polish 2.4 Documentation
Enough Software

BlackBerry/5820


Display

PropertyValuePreprocessing Access
Screen-Size (width x height)160x160polish.ScreenSize, polish.ScreenWidth, polish.ScreenHeight
Bits per Pixel1
(2 colors)
polish.BitsPerPixel
Supports Pointer/Touch Eventsnopolish.hasPointerEvents

Platform

PropertyValuePreprocessing Access
VendorBlackBerrypolish.Vendor
PlatformMIDP/1.0polish.JavaPlatform, polish.midp1
ConfigurationCLDC/1.0polish.JavaConfiguration, polish.cldc1.0
Meets the Recommended Capablities for the J2ME Polish GUIno--

Known Issues

Issue 1AreaDescription
ReservedKeywordSerializableioClasses called Serializable confuse the device
Solution
The J2ME polish build process works around this by auto-renaming the de.enough.polish.io.Serializable interface.
Preprocessing Symbol
polish.Bugs.ReservedKeywordSerializable
 

Groups

Groups can be used to assemble the resources (like images or sound-files) for an application.
Have a look at the documentation for more info.

GroupResource Folder
midp1resources/midp1
ScreenSize.160x160resources/ScreenSize.160x160
BitsPerPixel.1resources/BitsPerPixel.1
NoSpriteTransformationsresources/NoSpriteTransformations

Preprocessing Capabilities

Capabilities can be used with the "//#=" preprocessing directive and can be compared with the "//#if" directive. For each defined capability a preprocessing symbol with the same name will be defined.
Have a look at the preprocessing documentation for more information.

Examples:

//#if polish.Vendor == BlackBerry
	// this is a BlackBerry device
//#endif
//#ifdef polish.ScreenWidth:defined
	//#= int screenWidth = ${ polish.ScreenWidth };
//#else
	int screenWidth = UNKNOWN_WIDTH;
//#endif

CapabilityValue
polish.bitsperpixel1
polish.bugsReservedKeywordSerializable
polish.build.bootclasspathcldc-1.0.jar,midp-1.0.jar
polish.build.implicitgroupsmidp1
polish.iconheight44
polish.iconsize44x44
polish.iconwidth44
polish.identifierBlackBerry/5820
polish.javaconfigurationCLDC/1.0
polish.javaplatformMIDP/1.0
polish.name5820
polish.screenheight160
polish.screensize160x160
polish.screenwidth160
polish.supportfloatingpointfalse
polish.vendorBlackBerry
polish.vendor.aliasRIM,Research In Motion Ltd.
polish.wap.useragentBlackBerry5820BlackBerry5820/3.6.0

Preprocessing Symbols

Symbols can be evaluated with the "//#ifdef" and related preprocessing directives.
Have a look at the preprocessing documentation for more information.

Example:

//#if polish.api.mmapi || polish.midp2
	// this device supports the Mobile Media API
//#endif

Symbol
polish.bitsperpixel.1
polish.bitsperpixel:defined
polish.bugs.reservedkeywordserializable
polish.bugs:defined
polish.build.bootclasspath.cldc-1.0.jar
polish.build.bootclasspath.midp-1.0.jar
polish.build.bootclasspath:defined
polish.build.implicitgroups.midp1
polish.build.implicitgroups:defined
polish.cldc
polish.cldc1.0
polish.iconheight:defined
polish.iconsize.44x44
polish.iconsize:defined
polish.iconwidth:defined
polish.identifier.blackberry/5820
polish.identifier:defined
polish.javaconfiguration.cldc/1.0
polish.javaconfiguration:defined
polish.javaplatform.midp/1.0
polish.javaplatform:defined
polish.midp
polish.midp1
polish.name.5820
polish.name:defined
polish.screenheight:defined
polish.screensize.160x160
polish.screensize:defined
polish.screenwidth:defined
polish.supportfloatingpoint.false
polish.supportfloatingpoint:defined
polish.vendor.alias.research in motion ltd.
polish.vendor.alias.rim
polish.vendor.alias:defined
polish.vendor.blackberry
polish.vendor:defined
polish.wap.useragent.blackberry5820blackberry5820/3.6.0
polish.wap.useragent:defined
back to top