Nokia s60v5 j2me禁用softkeypad
来源:互联网 发布:美联储基准利率数据 编辑:程序博客网 时间:2024/06/02 23:50
j2me程序在s60v5上运行时会被自带的softkeypad占去半个屏幕,要禁用softkeypad需要在JAD文件中加入
Nokia-MIDlet-On-Screen-Keypad: no
附JAD and JAR manifest attributes:
Attribute Name
Since S60 Edition
Description
Value
Nokia-MIDlet-Category
2nd Edition
Defines localized installation folder for MIDlet.
Category can be one of the following:
Application (all S60 1st Edition MIDlets use this)
Game
Nokia-MIDlet-Target-Display-Size
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 Nokia-MIDlet-Original-Display-Size
(see below). Scaling applies to full screen LCDUI Canvases
only.
<width,height>
Example:
Nokia-MIDlet-Target-Display-Size: 240,320
Nokia-MIDlet-Original-Display-Size
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 full screen LCDUI Canvas
es only.
<width,height>
Example:
Nokia-MIDlet-Original-Display-Size: 176,208
Nokia-MIDlet-Canvas-Scaling-Orientation-Switch
3rd Edition FP 2
Nokia-MIDlet-Canvas-Scaling-Orientation-Switch
is always used together with Nokia-MIDlet-Original-Display-Size
(see above). As Nokia-MIDlet-Original-Display-Size
is used to indicate a fixed resolution that full screen Canvas
content of the MIDlet is designed for, then additionally specifying Nokia-MIDlet-Canvas-Scaling-Orientation-Switch
to true
indicates that the MIDlet can also support the given resolution in both portrait and landscape resolutions.
For an illustration, see figure LCDUI Canvas scaling on orientation switch.
Note: Behavior of combination Nokia-MIDlet-Canvas-Scaling-Orientation-Switch: true
and set Nokia-MIDlet-Target-Display-Size
is undefined. You should avoid using these two attributes together.
true
or false
Example:
Nokia-MIDlet-Canvas-Scaling-Orientation-Switch: true
Nokia-Scalable-Icon
(and Nokia-Scalable-Icon-MIDlet-<n>)
3rd Edition FP 2
Specifies scalable MIDlet icon support.
When developing MIDlet suites, the MIDlet specific attributes MIDlet-n
and Nokia-Scalable-Icon-MIDlet-<n>
must be used.
For more information, see Scalable icon support.
<link to svg icon>
Example:
Nokia-Scalable-Icon: /icons/gamesuite.svg
Nokia-MIDlet-UID-<n>
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:
Unprotected range 0xA0000000 - 0xAFFFFFFF
Protected range 0x20000000 - 0x2FFFFFFF
Test range 0xE0000000 - 0xEFFFFFFF
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-MIDlet-UID-1: 0xE0000000
Nokia-MIDlet-UID-2: 0xE0000001
Nokia-UI-Enhancement
3rd Edition FP 2
Specifies the following:
Theme (skin) behaviour on a normal mode
Canvas
(not full screen) component. The background image is shown if the attribute value isCanvasHasBackground
. If the attribute is not defined, by default the background is white (corresponds toDisplay.getColor(COLOR_BACKGROUND)
). If the MIDlet does not render all the pixels of a given clip region in the paint method, the theme background is shown.Receiving media key events while the MIDlet is running.
Replacing the full-screen
TextBox
with a pop-upTextBox
.
Examples:
Nokia-UI-Enhancement: CanvasHasBackground
Nokia-UI-Enhancement: MusicKeysSupported
Nokia-UI-Enhancement: PopUpTextBox
Nokia-MIDlet-No-Exit
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.
true
or false
Example:
Nokia-MIDlet-No-Exit: true
Nokia-MIDlet-Flip-Close
3rd Edition FP 2
Specifies MIDlet behaviour on flip-close event.
If value is pause
, pauseApp()
is called when the flip is closed. If the flip is then opened, startApp()
is called.
By default the attribute value is run
and therefore pauseApp()
and startApp()
are not called when flip is closed.
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 ShowNotify()
call in Canvas
or using an Options menu Command
with a call to resumeRequest()
in a Form
based MIDlet.
Attribute Nokia-Background-Event
(see below) with value pause
can be used as well.
pause
or run
Example:
Nokia-MIDlet-Flip-Close: pause
Nokia-MIDlet-Background-Event
3rd Edition FP 2
Specifies MIDlet behavior to background event.
If value is pause
, pauseApp()
is called when on to background event takes place. If on to foreground event takes place, startApp()
is called.
By default the attribute value is run
and therefore pauseApp()
and startApp()
are not called when on to background event takes place.
Note: When designing the MIDlet, take into account that startApp()
can be called many times.
pause
or run
Example:
Nokia-MIDlet-Background-Event: pause
Nokia-MIDlet-Block-Uninstall
3rd Edition FP 2
Prevents uninstallation of the MIDlet Suite if value of this attribute is true
.
Only Manufacturer or Operator signed applications are able to use this attribute.
Note: This attribute must be specified in the JAR manifest file.
true
or false
Example:
Nokia-MIDlet-Block-Uninstall: true
Nokia-MIDlet-S60-Selection-Key-Compatibility
3rd Edition FP 2
This attribute changes the default Selection key behaviour in Canvas
and CustomItem
elements.
By default, normal mode Canvas
and CustomItem
do not get low level key events for Selection key even if there is no CommandListener
defined. For backward compatibility to S60 Editions prior to S60 3rd Edition FP 2, it is possible to enable low-level key event triggering from Selection key in CustomItem
, normal mode Canvas
and in full screen Canvas
with Command
s and CommandListener
defined.
If this attribute is set as true
, no Command
s are mapped to Selection key, instead the relevant low-level key event is triggered (-5). Note that in a full screen mode Canvas
without any Command
s and CommandListener
defined, this feature does not have any effect as low level key events are triggered from all softkeys in any case.
true
or false
Example: Nokia-MIDlet-S60-Selection-Key-Compatibility: true
Nokia-MIDlet-On-Screen-Keypad
5th Edition
Specifies the on-screen keypad for a Canvas
application.
This attribute is valid only in touch-enabled devices that have limited physical key availability.
no
, gameactions
or navigationkeys
.
Example:
Nokia-MIDlet-On-Screen-Keypad: gameactions
Nokia-MIDlet-App-Orientation
5th Edition
Allows MIDlet to force either portrait or landscape UI orientation. The orientation is only fixed on devices that support the specific layout.
portrait
or landscape
Nokia-MIDlet-Tap-Detection-Options
5th Edition (Java Runtime 1.4 for S60)
Sets the size of tap detection area and tap timeout on Touch UI devices. If the pointer stays pressed within the detection area and does not surpass the timeout value, the event is considered a single tap. If the pointer leaves the detection area or the timeout 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 timeout value in milliseconds, separated by a comma
Example:
Nokia-MIDlet-Tap-Detection-Options:100,250
Nokia-MIDlet-On-Screen-Softkeys-Position
5th Edition (Java Runtime 1.4 for S60)
Defines where softkeys are placed on the screen when using the on-screen keypad on devices that have no physical softkeys.
right
or bottom
Nokia-MIDlet-national-digit-display
Series 40 5th Edition FP 1
Instructs the Java platform on the device to allow or disallow displaying native digits.
- Nokia s60v5 j2me禁用softkeypad
- Nokia s60v5 j2me禁用softkeypad
- Nokia S60v5 javaME 禁用 softkeypad
- Nokia S60v5的用户小心了
- Nokia的J2ME文档
- Nokia J2ME系统属性
- Nokia的J2ME文档
- Nokia的J2ME文档
- Nokia的J2ME文档
- Nokia的J2ME文档
- Nokia的J2ME文档
- Nokia的J2ME文档
- Nokia的J2ME文档
- Nokia的J2ME资源库
- J2ME Nokia 模拟器 安装运行
- eclipse nokia j2me配置开发
- nokia j2me 开发环境搭建
- nokia 5300 j2me开发问题
- ZZ自己动手写一个Spring (Spring 到底是怎么跑起来的)
- C#中HashTable的用法
- 停止正在执行的JOB的方法
- 我的深圳面试体验--艾默生/西门子/华为/中兴/索尼/富士施乐/长城国际/ 马士基/SGS/宜家/
- 网店客服月收入最高2000元:要求不高易跳槽
- Nokia s60v5 j2me禁用softkeypad
- struts2 中 annotation的用法
- C#数据导出到Excel(或Word)源代码大全(一)
- 文本约定RowStatus(在mib中添加删除行)
- SD大会2009-抢占技术制高点 “实践 分享 开放 协作”
- 自己动手写操作系统--笔记之安装DOS
- 公司系统性能测试需求分析
- 【转】C++中的四种强制类型转换的区别
- 构建知识网方法之找相似