J2ME Polish
J2ME Polish 2.4 Documentation
Enough Software

BlackBerry/8310


Display

PropertyValuePreprocessing Access
Screen-Size (width x height)320x240polish.ScreenSize, polish.ScreenWidth, polish.ScreenHeight
Supports Pointer/Touch Eventsnopolish.hasPointerEvents

Platform

PropertyValuePreprocessing Access
VendorBlackBerrypolish.Vendor
PlatformMIDP/2.0, BlackBerry/4.5polish.JavaPlatform, polish.blackberry
ConfigurationCLDC/1.1polish.JavaConfiguration, polish.cldc1.1
Supported APIspimapi, btapi, wmapi, wmapi2.0, fileconnection, locationapi, mmapi, mmapi1.1, wmapi, locationapi, wmapi, pdaapi, mmapi, webservice, btapipolish.JavaPackage, polish.api.pimapi, polish.api.btapi, polish.api.wmapi, polish.api.wmapi2.0, polish.api.fileconnection, polish.api.locationapi, polish.api.mmapi, polish.api.mmapi1.1, polish.api.wmapi, polish.api.locationapi, polish.api.wmapi, polish.api.pdaapi, polish.api.mmapi, polish.api.webservice, polish.api.btapi
Meets the Recommended Capablities for the J2ME Polish GUIyes  --

Multimedia

PropertyValuePreprocessing Access
Supported Audio Formatsmp3polish.SoundFormat, polish.audio.mp3

Keys

KeyValuePreprocessing Variable
Left Soft Key-8polish.key.LeftSoftKey
Middle Soft Key6polish.key.MiddleSoftKey
Right Soft Key6polish.key.RightSoftKey
Clear Key6polish.key.ClearKey

Known Issues

Issue 1AreaDescription
drawRgbNeedsFullBufferuiThe Graphics.drawRGB(..) method does not accept only one row which then can be repeated several times. Usually this trick saves some memory as well as work.
Solution
Give a full buffer (rows * columns) in the drawRGB method instead of only one row.
Preprocessing Symbol
polish.Bugs.drawRgbNeedsFullBuffer
 
Issue 2AreaDescription
ClosedInputstreamWhenEmptyHttpResponseBodyioWhen the body of a HTTP response is empty a closed InputStream is returned on openInputStream() call of HttpConnection.
Solution
The first read() on the InputStream throws a ConnectionClosedException instead of returning -1. This needs to be catched and handled as if -1 would have been directly returned.
Preprocessing Symbol
polish.Bugs.ClosedInputstreamWhenEmptyHttpResponseBody
 

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
midp2resources/midp2
blackberryresources/blackberry
pimapiresources/pimapi
btapiresources/btapi
wmapiresources/wmapi
wmapi2.0resources/wmapi2.0
fileconnectionresources/fileconnection
locationapiresources/locationapi
mmapiresources/mmapi
mmapi1.1resources/mmapi1.1
wmapiresources/wmapi
locationapiresources/locationapi
wmapiresources/wmapi
pdaapiresources/pdaapi
mmapiresources/mmapi
webserviceresources/webservice
btapiresources/btapi
mp3resources/mp3
ScreenSize.320x240resources/ScreenSize.320x240

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.alphalevels16
polish.bugsdrawRgbNeedsFullBuffer, ClosedInputstreamWhenEmptyHttpResponseBody
polish.build.blackberry.jde-version4.5
polish.build.bootclasspathcldc-1.1.jar,blackberry-4.5.0.jar,midp-2.0.jar
polish.build.classes.fullscreennet.rim.device.api.ui.container.FullScreen
polish.build.classes.nativedisplayde.enough.polish.blackberry.ui.NativeDisplayImpl
polish.build.classes.nativefontde.enough.polish.blackberry.ui.Font
polish.build.classes.nativegraphicsde.enough.polish.blackberry.ui.Graphics
polish.build.classes.nativeimagede.enough.polish.blackberry.ui.Image
polish.build.classes.screennet.rim.device.api.ui.container.MainScreen
polish.build.implicitgroupsmidp2
polish.build.obfuscatorblackberry
polish.canvas.isdoublebufferedtrue
polish.colors65536
polish.display.baseclassde.enough.polish.blackberry.ui.BaseScreen
polish.emulator.classBlackBerryEmulator
polish.file.separator/
polish.font.default20
polish.font.large27
polish.font.medium23
polish.font.small18
polish.icondepth55
polish.iconheight44
polish.iconsize44x44
polish.iconwidth44
polish.identifierBlackBerry/8310
polish.imageformatjpeg, gif, bmp, wbmp
polish.javaconfigurationCLDC/1.1
polish.javapackagepimapi, btapi, wmapi2.0, fileconnection, locationapi, mmapi1.1, wmapi1.1,location,wmapi,pdaapi,mmapi,jsr172, btapi
polish.javaplatformMIDP/2.0, BlackBerry/4.5
polish.key.clearkey6
polish.key.down6
polish.key.enterkey655360
polish.key.escapekey1769472
polish.key.fire32
polish.key.gamea113
polish.key.gameb119
polish.key.gamec111
polish.key.gamed112
polish.key.left2
polish.key.leftsoftkey-8
polish.key.menu268566528
polish.key.middlesoftkey6
polish.key.moveleftkey5177410
polish.key.moverightkey5242946
polish.key.returnkey6
polish.key.right5
polish.key.rightsoftkey6
polish.key.selectsoftkey6
polish.key.up1
polish.menubar.positioninvisible
polish.menubar.useextendedmenubartrue
polish.microedition.configurationCLDC-1.1
polish.microedition.encodingISO8859_1
polish.microedition.io.file.fileconnection.version1.0
polish.microedition.jtwi.version1.0
polish.microedition.location.version1.0.1
polish.microedition.media.version1.1
polish.microedition.pim.version1.0
polish.microedition.platformRIM Wireless Handheld
polish.microedition.profilesMIDP-2.0
polish.microedition.smartcardslots0C
polish.mmapi.protocol.captureaudio/amr, audio/basic
polish.mmapi.protocol.deviceaudio/x-tone-seq
polish.mmapi.protocol.fileaudio/midi, audio/mpeg, audio/x-wav, audio/amr, audio/basic, audio/x-gsm, audio/mp4, audio/aac, audio/x-ms-wma, video/mp4, video/3gpp, video/x-msvideo, video/quicktime, video/x-ms-asf, video/x-ms-wm, video/x-ms-wmv, video/x-ms-wmx
polish.mmapi.protocol.httpaudio/midi, audio/mpeg, audio/x-wav, audio/amr, audio/basic, audio/x-gsm, audio/mp4, audio/aac, audio/x-ms-wma, video/mp4, video/3gpp, video/x-msvideo, video/quicktime, video/x-ms-asf, video/x-ms-wm, video/x-ms-wmv, video/x-ms-wmx
polish.name8310
polish.objectmemory8
polish.property.supports.audio.capturetrue
polish.screenheight240
polish.screensize320x240
polish.screenwidth320
polish.soundformatmp3
polish.supportfloatingpointtrue
polish.supports.recordingtrue
polish.timezonesPacific/Kwajalein, Pacific/Midway, Pacific/Honolulu, America/Anchorage, America/Tijuana, America/Los_Angeles, America/Phoenix, America/Denver, America/Tegucigalpa, America/Tegucigalpa_2, America/El_Salvador, America/Regina, America/Chicago, America/Mexico_City, America/Mexico_City_2, America/Bogota, America/Indianapolis, America/New_York, America/Caracas, America/Manaus, America/Santiago, America/Halifax, America/St_Johns, America/Montevideo, America/Buenos_Aires, America/Sao_Paulo, America/Godthab, America/South_Georgia, Atlantic/Cape_Verde, Atlantic/Azores, GMT, Europe/Dublin, Africa/Luanda, Europe/Amsterdam, Europe/Belgrade, Europe/Brussels, Europe/Belgrade Yugoslavia(YU), Africa/Windhoek, Asia/Amman, Africa/Harare, Asia/Jerusalem, Europe/Minsk, Africa/Cairo, Asia/Beirut, Europe/Athens, Europe/Helsinki, Asia/Kuwait, Africa/Nairobi, Asia/Baghdad, Europe/Moscow, Asia/Tbilisi, Asia/Tehran, Asia/Muscat, Asia/Baku, Asia/Yerevan, Asia/Kabul, Asia/Karachi, Asia/Yekaterinburg, Asia/Calcutta, Asia/Colombo, Asia/Katmandu, Asia/Dhaka, Asia/Almaty, Asia/Rangoon, Asia/Bangkok, Asia/Krasnoyarsk, Asia/Hong_Kong, Asia/Kuala_Lumpur, Australia/Perth, Asia/Taipei, Asia/Irkutsk, Asia/Tokyo, Asia/Seoul, Asia/Yakutsk, Australia/Darwin, Australia/Adelaide, Australia/Brisbane, Pacific/Guam, Australia/Sydney, Australia/Hobart, Asia/Vladivostok, Asia/Magadan, Pacific/Fiji, Pacific/Auckland, Pacific/Tongatapu
polish.totalmemory43667488
polish.usepolishtitletrue
polish.vendorBlackBerry
polish.vendor.aliasRIM,Research In Motion Ltd.
polish.wap.useragentBlackBerry8310/4.2.2 Profile/MIDP-2.0 Configuration/CLDC-1.1 VendorID/121

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.alphalevels.16
polish.alphalevels:defined
polish.api.btapi
polish.api.fileconnection
polish.api.fileconnectionapi
polish.api.locationapi
polish.api.mmapi
polish.api.mmapi1.1
polish.api.pdaapi
polish.api.pim
polish.api.pimapi
polish.api.webservice
polish.api.wmapi
polish.api.wmapi2.0
polish.audio.mp3
polish.blackberry
polish.bugs.closedinputstreamwhenemptyhttpresponsebody
polish.bugs.drawrgbneedsfullbuffer
polish.bugs:defined
polish.build.blackberry.jde-version.4.5
polish.build.blackberry.jde-version:defined
polish.build.bootclasspath.blackberry-4.5.0.jar
polish.build.bootclasspath.cldc-1.1.jar
polish.build.bootclasspath.midp-2.0.jar
polish.build.bootclasspath:defined
polish.build.classes.fullscreen.net.rim.device.api.ui.container.fullscreen
polish.build.classes.fullscreen:defined
polish.build.classes.nativedisplay.de.enough.polish.blackberry.ui.nativedisplayimpl
polish.build.classes.nativedisplay:defined
polish.build.classes.nativefont.de.enough.polish.blackberry.ui.font
polish.build.classes.nativefont:defined
polish.build.classes.nativegraphics.de.enough.polish.blackberry.ui.graphics
polish.build.classes.nativegraphics:defined
polish.build.classes.nativeimage.de.enough.polish.blackberry.ui.image
polish.build.classes.nativeimage:defined
polish.build.classes.screen.net.rim.device.api.ui.container.mainscreen
polish.build.classes.screen:defined
polish.build.implicitgroups.midp2
polish.build.implicitgroups:defined
polish.build.obfuscator.blackberry
polish.build.obfuscator:defined
polish.canvas.isdoublebuffered
polish.canvas.isdoublebuffered.true
polish.canvas.isdoublebuffered:defined
polish.cldc
polish.cldc1.1
polish.cldc11
polish.colors.65536
polish.colors:defined
polish.display.baseclass.de.enough.polish.blackberry.ui.basescreen
polish.display.baseclass:defined
polish.emulator.class.blackberryemulator
polish.emulator.class:defined
polish.file.separator./
polish.file.separator:defined
polish.font.default.20
polish.font.default:defined
polish.font.large.27
polish.font.large:defined
polish.font.medium.23
polish.font.medium:defined
polish.font.small.18
polish.font.small:defined
polish.hascommandkeyevents
polish.hasfloatingpoint
polish.hastrackballevents
polish.icondepth.55
polish.icondepth:defined
polish.iconheight:defined
polish.iconsize.44x44
polish.iconsize:defined
polish.iconwidth:defined
polish.identifier.blackberry/8310
polish.identifier:defined
polish.imageformat.bmp
polish.imageformat.gif
polish.imageformat.jpeg
polish.imageformat.wbmp
polish.imageformat:defined
polish.javaconfiguration.cldc/1.1
polish.javaconfiguration:defined
polish.javapackage.btapi
polish.javapackage.fileconnection
polish.javapackage.jsr172
polish.javapackage.location
polish.javapackage.locationapi
polish.javapackage.mmapi
polish.javapackage.mmapi1.1
polish.javapackage.pdaapi
polish.javapackage.pimapi
polish.javapackage.wmapi
polish.javapackage.wmapi1.1
polish.javapackage.wmapi2.0
polish.javapackage:defined
polish.javaplatform.blackberry/4.5
polish.javaplatform.midp/2.0
polish.javaplatform:defined
polish.key.clearkey.6
polish.key.clearkey:defined
polish.key.down.6
polish.key.down:defined
polish.key.enterkey.655360
polish.key.enterkey:defined
polish.key.escapekey.1769472
polish.key.escapekey:defined
polish.key.fire.32
polish.key.fire:defined
polish.key.gamea.113
polish.key.gamea:defined
polish.key.gameb.119
polish.key.gameb:defined
polish.key.gamec.111
polish.key.gamec:defined
polish.key.gamed.112
polish.key.gamed:defined
polish.key.left.2
polish.key.left:defined
polish.key.leftsoftkey.-8
polish.key.leftsoftkey:defined
polish.key.menu.268566528
polish.key.menu:defined
polish.key.middlesoftkey.6
polish.key.middlesoftkey:defined
polish.key.moveleftkey.5177410
polish.key.moveleftkey:defined
polish.key.moverightkey.5242946
polish.key.moverightkey:defined
polish.key.returnkey.6
polish.key.returnkey:defined
polish.key.right.5
polish.key.right:defined
polish.key.rightsoftkey.6
polish.key.rightsoftkey:defined
polish.key.selectsoftkey.6
polish.key.selectsoftkey:defined
polish.key.up.1
polish.key.up:defined
polish.menubar.position.invisible
polish.menubar.position:defined
polish.menubar.useextendedmenubar
polish.menubar.useextendedmenubar.true
polish.menubar.useextendedmenubar:defined
polish.microedition.configuration.cldc-1.1
polish.microedition.configuration:defined
polish.microedition.encoding.iso8859_1
polish.microedition.encoding:defined
polish.microedition.io.file.fileconnection.version.1.0
polish.microedition.io.file.fileconnection.version:defined
polish.microedition.jtwi.version.1.0
polish.microedition.jtwi.version:defined
polish.microedition.location.version.1.0.1
polish.microedition.location.version:defined
polish.microedition.media.version.1.1
polish.microedition.media.version:defined
polish.microedition.pim.version.1.0
polish.microedition.pim.version:defined
polish.microedition.platform.rim wireless handheld
polish.microedition.platform:defined
polish.microedition.profiles.midp-2.0
polish.microedition.profiles:defined
polish.microedition.smartcardslots.0c
polish.microedition.smartcardslots:defined
polish.midp
polish.midp2
polish.mmapi.protocol.capture.audio/amr
polish.mmapi.protocol.capture.audio/basic
polish.mmapi.protocol.capture:defined
polish.mmapi.protocol.device.audio/x-tone-seq
polish.mmapi.protocol.device:defined
polish.mmapi.protocol.file.audio/aac
polish.mmapi.protocol.file.audio/amr
polish.mmapi.protocol.file.audio/basic
polish.mmapi.protocol.file.audio/midi
polish.mmapi.protocol.file.audio/mp4
polish.mmapi.protocol.file.audio/mpeg
polish.mmapi.protocol.file.audio/x-gsm
polish.mmapi.protocol.file.audio/x-ms-wma
polish.mmapi.protocol.file.audio/x-wav
polish.mmapi.protocol.file.video/3gpp
polish.mmapi.protocol.file.video/mp4
polish.mmapi.protocol.file.video/quicktime
polish.mmapi.protocol.file.video/x-ms-asf
polish.mmapi.protocol.file.video/x-ms-wm
polish.mmapi.protocol.file.video/x-ms-wmv
polish.mmapi.protocol.file.video/x-ms-wmx
polish.mmapi.protocol.file.video/x-msvideo
polish.mmapi.protocol.file:defined
polish.mmapi.protocol.http.audio/aac
polish.mmapi.protocol.http.audio/amr
polish.mmapi.protocol.http.audio/basic
polish.mmapi.protocol.http.audio/midi
polish.mmapi.protocol.http.audio/mp4
polish.mmapi.protocol.http.audio/mpeg
polish.mmapi.protocol.http.audio/x-gsm
polish.mmapi.protocol.http.audio/x-ms-wma
polish.mmapi.protocol.http.audio/x-wav
polish.mmapi.protocol.http.video/3gpp
polish.mmapi.protocol.http.video/mp4
polish.mmapi.protocol.http.video/quicktime
polish.mmapi.protocol.http.video/x-ms-asf
polish.mmapi.protocol.http.video/x-ms-wm
polish.mmapi.protocol.http.video/x-ms-wmv
polish.mmapi.protocol.http.video/x-ms-wmx
polish.mmapi.protocol.http.video/x-msvideo
polish.mmapi.protocol.http:defined
polish.name.8310
polish.name:defined
polish.objectmemory.8
polish.objectmemory:defined
polish.property.supports.audio.capture
polish.property.supports.audio.capture.true
polish.property.supports.audio.capture:defined
polish.screenheight:defined
polish.screensize.320x240
polish.screensize:defined
polish.screenwidth:defined
polish.soundformat.mp3
polish.soundformat:defined
polish.supportfloatingpoint
polish.supportfloatingpoint.true
polish.supportfloatingpoint:defined
polish.supports.recording
polish.supports.recording.true
polish.supports.recording:defined
polish.supportspolishgui
polish.timezones.africa/cairo
polish.timezones.africa/harare
polish.timezones.africa/luanda
polish.timezones.africa/nairobi
polish.timezones.africa/windhoek
polish.timezones.america/anchorage
polish.timezones.america/bogota
polish.timezones.america/buenos_aires
polish.timezones.america/caracas
polish.timezones.america/chicago
polish.timezones.america/denver
polish.timezones.america/el_salvador
polish.timezones.america/godthab
polish.timezones.america/halifax
polish.timezones.america/indianapolis
polish.timezones.america/los_angeles
polish.timezones.america/manaus
polish.timezones.america/mexico_city
polish.timezones.america/mexico_city_2
polish.timezones.america/montevideo
polish.timezones.america/new_york
polish.timezones.america/phoenix
polish.timezones.america/regina
polish.timezones.america/santiago
polish.timezones.america/sao_paulo
polish.timezones.america/south_georgia
polish.timezones.america/st_johns
polish.timezones.america/tegucigalpa
polish.timezones.america/tegucigalpa_2
polish.timezones.america/tijuana
polish.timezones.asia/almaty
polish.timezones.asia/amman
polish.timezones.asia/baghdad
polish.timezones.asia/baku
polish.timezones.asia/bangkok
polish.timezones.asia/beirut
polish.timezones.asia/calcutta
polish.timezones.asia/colombo
polish.timezones.asia/dhaka
polish.timezones.asia/hong_kong
polish.timezones.asia/irkutsk
polish.timezones.asia/jerusalem
polish.timezones.asia/kabul
polish.timezones.asia/karachi
polish.timezones.asia/katmandu
polish.timezones.asia/krasnoyarsk
polish.timezones.asia/kuala_lumpur
polish.timezones.asia/kuwait
polish.timezones.asia/magadan
polish.timezones.asia/muscat
polish.timezones.asia/rangoon
polish.timezones.asia/seoul
polish.timezones.asia/taipei
polish.timezones.asia/tbilisi
polish.timezones.asia/tehran
polish.timezones.asia/tokyo
polish.timezones.asia/vladivostok
polish.timezones.asia/yakutsk
polish.timezones.asia/yekaterinburg
polish.timezones.asia/yerevan
polish.timezones.atlantic/azores
polish.timezones.atlantic/cape_verde
polish.timezones.australia/adelaide
polish.timezones.australia/brisbane
polish.timezones.australia/darwin
polish.timezones.australia/hobart
polish.timezones.australia/perth
polish.timezones.australia/sydney
polish.timezones.europe/amsterdam
polish.timezones.europe/athens
polish.timezones.europe/belgrade
polish.timezones.europe/belgrade yugoslavia(yu)
polish.timezones.europe/brussels
polish.timezones.europe/dublin
polish.timezones.europe/helsinki
polish.timezones.europe/minsk
polish.timezones.europe/moscow
polish.timezones.gmt
polish.timezones.pacific/auckland
polish.timezones.pacific/fiji
polish.timezones.pacific/guam
polish.timezones.pacific/honolulu
polish.timezones.pacific/kwajalein
polish.timezones.pacific/midway
polish.timezones.pacific/tongatapu
polish.timezones:defined
polish.totalmemory.43667488
polish.totalmemory:defined
polish.usepolishtitle
polish.usepolishtitle.true
polish.usepolishtitle: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.blackberry8310/4.2.2 profile/midp-2.0 configuration/cldc-1.1 vendorid/121
polish.wap.useragent:defined
back to top