WO2012163216A1 - Method and apparatus for controlling input of mobile terminal for java program - Google Patents

Method and apparatus for controlling input of mobile terminal for java program Download PDF

Info

Publication number
WO2012163216A1
WO2012163216A1 PCT/CN2012/075221 CN2012075221W WO2012163216A1 WO 2012163216 A1 WO2012163216 A1 WO 2012163216A1 CN 2012075221 W CN2012075221 W CN 2012075221W WO 2012163216 A1 WO2012163216 A1 WO 2012163216A1
Authority
WO
WIPO (PCT)
Prior art keywords
character
input
java program
key
button
Prior art date
Application number
PCT/CN2012/075221
Other languages
French (fr)
Chinese (zh)
Inventor
杨彬
Original Assignee
惠州Tcl移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 惠州Tcl移动通信有限公司 filed Critical 惠州Tcl移动通信有限公司
Publication of WO2012163216A1 publication Critical patent/WO2012163216A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes

Definitions

  • the invention belongs to the technical field of mobile terminals, and in particular relates to a mobile terminal input control method and device for a JAVA program.
  • the most important advantage of the full keyboard mobile phone is that the user can input characters more conveniently and quickly, but for the JAVA program in the full keyboard mobile phone, due to the lack of full keyboard characters directly
  • the specification and technical solution of the transfer can only switch multiple interface calls to the platform input program to implement character input, which makes the above advantages of the full keyboard mobile phone greatly reduced.
  • the difficulty in directly inputting full keyboard characters in a JAVA program is how to make the actual input character values consistent with the input state displayed on the screen, that is, whether the current input is a number, a symbol or a letter, and whether the letter is uppercase or lowercase. letter.
  • the input character value is not uniformly defined in the JAVA standard for the full keyboard, and the input state controlled by several special function keys is recorded by the input method module of the platform, and there is no standard application programming interface. (Application Programming Interface, API) passes these settings between the platform and the JAVA program.
  • API Application Programming Interface
  • the input character value display and input status display are completed in the same interface of the same program, such as in a specific JAVA program.
  • This method is simple and easy to maintain consistency, but requires every JAVA program. To achieve the same function of this content separately, it will cause a waste of work.
  • due to the non-standardization of full keyboard input only a specific JAVA program for a specific model may have such an implementation, and a large number of open JAVA programs for users to download freely cannot support this function, which to some extent It also affects the cross-platform application functions of JAVA programs.
  • the object of the present invention is to provide a mobile terminal input control method and apparatus for a JAVA program, which aims to ensure the consistency of input character values and input state display in a mobile terminal having a JAVA program, and improve the cross-platform application function of the JAVA program. Improve the user experience.
  • the present invention is implemented in this way, a mobile terminal input control method for a JAVA program, the method comprising the following steps:
  • Determining the received key input determining that the key input corresponds to a function key or a character key
  • the input state setting is switched according to the function button value corresponding to the function button
  • the JAVA adaptation layer reads the input state setting, and sets a refresh icon display interface according to the input state.
  • the icon display interface is configured to display an input state, and the icon display interface is suspended in the JAVA program interface in a partially transparent manner;
  • the JAVA program directly displays the character corresponding to the character key in an input box of the JAVA program interface;
  • the JAVA adaptation layer passes the character encoding value corresponding to the character button to the JAVA program
  • the JAVA program displays the character in an input box of the JAVA program interface according to the character encoding value.
  • the icon display interface is independent of the JAVA program interface.
  • the present invention is implemented as such, a mobile terminal input control device for a JAVA program, the device comprising:
  • a key input receiving module for receiving a user's key input
  • a judging module configured to judge the received key input, and determine that the key input corresponds to a function key or a character key
  • a function button processing module configured to: after determining that the button input corresponds to a function button, switch an input state setting according to a function button value corresponding to the function button, and the JAVA adaptation layer reads the input state setting, and according to the The input state setting refresh icon display interface, wherein the icon display interface is used to display an input state, and the icon display interface is suspended above the JAVA program interface;
  • the character button processing module is configured to: after determining that the button input corresponds to a character button, the JAVA program directly displays the character corresponding to the character button in an input box of the JAVA program interface.
  • the icon display interface is suspended on the JAVA program interface in a partially transparent manner.
  • the chart display interface is independent of the JAVA program interface.
  • the character key delivery module is configured to pass the character key to the JAVA adaptation layer
  • a character encoding value passing module configured to transmit a character encoding value corresponding to the character button to the JAVA program
  • a display module configured to display the character in an input box of the JAVA program interface according to the character encoding value.
  • the present invention is implemented in the form of a mobile terminal, the mobile terminal comprising a mobile terminal input control device for a JAVA program, the device comprising:
  • a key input receiving module for receiving a user's key input
  • a judging module configured to judge the received key input, and determine that the key input corresponds to a function key or a character key
  • a function button processing module configured to: after determining that the button input corresponds to a function button, switch an input state setting according to a function button value corresponding to the function button, and the JAVA adaptation layer reads the input state setting, and according to the The input state setting refresh icon display interface, wherein the icon display interface is used to display an input state, and the icon display interface is suspended above the JAVA program interface;
  • the character button processing module is configured to: after determining that the button input corresponds to a character button, the JAVA program directly displays the character corresponding to the character button in an input box of the JAVA program interface.
  • the icon display interface is suspended on the JAVA program interface in a partially transparent manner.
  • the icon display interface is independent of the JAVA program interface.
  • the character key delivery module is configured to pass the character key to the JAVA adaptation layer
  • a character encoding value passing module configured to transmit a character encoding value corresponding to the character button to the JAVA program
  • a display module configured to display the character in an input box of the JAVA program interface according to the character encoding value.
  • the mobile terminal input control method for the JAVA program provided by the present invention, after determining that the user's key input is a function key, switching input according to the function key value corresponding to the function key a state setting, the JAVA adaptation layer reads the input state setting, and sets a refresh icon display interface according to the input state, wherein the icon display interface is used to display an input state, and the icon display interface is suspended in the Above the JAVA program interface, the above method ensures the consistency of the input character value and the input state display in the mobile terminal with the JAVA program, can improve the cross-platform application function of the JAVA program, improve the user experience, and facilitate the mobile terminal technology. Promotion.
  • FIG. 1 is a flow chart of an embodiment of a mobile terminal input control method for a JAVA program in accordance with the present invention
  • FIG. 2 is an internal structural diagram of an embodiment of a mobile terminal for a JAVA program provided in accordance with the present invention
  • FIG. 3 is a structural diagram of an embodiment of a mobile terminal input control apparatus for a JAVA program provided in accordance with the present invention.
  • FIG. 1 is a flow chart of an embodiment of a mobile terminal input control method for a JAVA program according to the present invention.
  • step S101 a user's key input is received.
  • step S102 the received key input is determined, and the key input is determined to correspond to the function key or the character key. If the key input corresponds to the function key, proceed to step S103; if the key input corresponds to If the character is pressed, the process proceeds to step S104.
  • step S103 the input state setting is switched according to the function key value corresponding to the function button, and the JAVA adaptation layer reads the input state setting, and sets a refresh icon display interface according to the input state.
  • the icon display interface is configured to display an input state, and the icon display interface is suspended on the JAVA program interface.
  • the icon display interface is suspended on the JAVA program interface in a partially transparent manner, and the icon display interface is independent of the JAVA program interface.
  • step S104 the JAVA program directly displays the character corresponding to the character button in the input box of the JAVA program interface.
  • the character key is first passed to the JAVA adaptation layer, and the JAVA adaptation layer transmits the character encoding value corresponding to the character key to the JAVA program, and finally, the JAVA program The character is displayed in an input box of the JAVA program interface according to the character encoding value.
  • FIG. 2 is a diagram showing the internal structure of a mobile terminal for a JAVA program according to the present invention.
  • JAVA technology is a cross-platform software technology. JAVA applications conforming to the J2ME specification can be easily adjusted and adapted on different hardware devices without regard to the processor of the hardware device platform. Operating system details.
  • JAVA kernel also known as the JVM.
  • JAVA application manager also known as JAM, or application management layer, application management layer.
  • JAM JAVA application manager
  • application management layer application management layer
  • Running under the JAVA adaptation layer is the system platform, as well as some underlying applications. Other higher-level applications may also communicate with JAVA systems and JAVA applications, but often do not communicate directly, but through the help of JAVA adaptation layer, JAVA kernel and JAM.
  • each JAVA program in order to ensure the consistency of the input character value and the input state display, each JAVA program directly displays the character corresponding to the encoded value unicode transmitted by the JAVA adaptation layer, and the input state icon is separately displayed in the independent by the JAVA adaptation layer.
  • the image display interface is suspended in the JAVA program interface in a partially transparent manner.
  • the present invention maximizes the direct input display of the JAVA program characters in the full keyboard mobile phone with minimal workload, such as frequent input in the MSN chat.
  • the character JAVA program significantly improves the user experience while maintaining the independence of the JAVA program.
  • Fig. 3 shows the structure of a mobile terminal input control device for a JAVA program in the present invention.
  • the button input receiving module 31 is configured to receive a button input of the user.
  • the determining module 32 is configured to determine the received key input, and determine that the key input corresponds to a function key or a character key.
  • the function button processing module 33 is configured to: after determining that the button input corresponds to the function button, switch the input state setting according to the function button value corresponding to the function button, and the JAVA adaptation layer reads the input state setting, and according to The input state setting refresh icon display interface, wherein the icon display interface is used to display an input state, and the icon display interface is suspended above the JAVA program interface.
  • the character button processing module 34 is configured to: after determining that the button input corresponds to a character button, the JAVA program directly displays the character corresponding to the character button in an input box of the JAVA program interface.
  • the icon display interface is suspended on the JAVA program interface in a partially transparent manner, and the chart display interface is independent of the JAVA program interface.
  • the character button processing module 34 further includes:
  • a character key delivery module 341, configured to pass the character key to the JAVA adaptation layer
  • a character encoding value passing module 342, configured to pass the character encoding value corresponding to the character key to the JAVA program
  • the display module 343 is configured to display the character in an input box of the JAVA program interface according to the character encoding value.
  • the mobile terminal input control method for the JAVA program provided by the present invention, after determining that the user's key input is a function key, switching the input state setting according to the function key value corresponding to the function key, and the JAVA adaptation layer reads the input state. Setting, and setting a refresh icon display interface according to the input state, wherein the icon display interface is used to display an input state, and the icon display interface is suspended on the JAVA program interface.
  • the present invention ensures that The consistency of the input character value and the input state display in the mobile terminal of the JAVA program improves the cross-platform application function of the JAVA program, improves the user experience, and facilitates the promotion of the mobile terminal technology.

Abstract

Disclosed are a method and apparatus for controlling the input of a mobile terminal for a JAVA program. The method comprises: judging the received key input; if it is judged that the key input corresponds to a function key, then switching input status setting according to a function key value corresponding to the function key to refresh an icon display interface; and if it is judged that the key input corresponds to a character key, then the JAVA program directly displays a character corresponding to the character key in the input box of a JAVA program interface. The present invention ensures the consistency between the input character value and the input status display of the mobile terminal having the JAVA program, and improves the cross-platform application function of the JAVA program.

Description

一种针对JAVA程序的移动终端输入控制方法和装置  Mobile terminal input control method and device for JAVA program
【技术领域】[Technical Field]
本发明属于移动终端技术领域,尤其涉及一种针对JAVA程序的移动终端输入控制方法和装置。  The invention belongs to the technical field of mobile terminals, and in particular relates to a mobile terminal input control method and device for a JAVA program.
【背景技术】 【Background technique】
随着移动终端技术的不断发展,用户对移动终端功能的要求也越来越高。With the continuous development of mobile terminal technology, users have higher and higher requirements for the functions of mobile terminals.
以全键盘手机为例,相较于传统的12键手机,全键盘手机最重要的优势是使得用户能够更加方便快捷地输入字符,但是对于全键盘手机中的JAVA程序,由于缺乏全键盘字符直接传递的规范和技术方案,只能切换多个界面调用平台输入程序实现字符输入,使得全键盘手机的上述优势大打折扣。Taking a full keyboard mobile phone as an example, compared with the traditional 12-key mobile phone, the most important advantage of the full keyboard mobile phone is that the user can input characters more conveniently and quickly, but for the JAVA program in the full keyboard mobile phone, due to the lack of full keyboard characters directly The specification and technical solution of the transfer can only switch multiple interface calls to the platform input program to implement character input, which makes the above advantages of the full keyboard mobile phone greatly reduced.
在JAVA程序中直接输入显示全键盘字符的难点在于,如何使真正的输入字符值与显示在屏幕上的输入状态保持一致,即当前输入的为数字、符号还是字母,字母的话为大写字母还是小写字母。其中,输入字符值在JAVA标准中对于全键盘而言并没有统一的定义,而被几个特殊功能键控制切换的输入状态是由平台的输入法模块记录的,并没有标准的应用程序编程接口(Application Programming Interface, API)在平台和JAVA程序之间传递这些设置。The difficulty in directly inputting full keyboard characters in a JAVA program is how to make the actual input character values consistent with the input state displayed on the screen, that is, whether the current input is a number, a symbol or a letter, and whether the letter is uppercase or lowercase. letter. Among them, the input character value is not uniformly defined in the JAVA standard for the full keyboard, and the input state controlled by several special function keys is recorded by the input method module of the platform, and there is no standard application programming interface. (Application Programming Interface, API) passes these settings between the platform and the JAVA program.
通常,输入字符值显示和输入状态显示是在同一个程序的同一个界面完成的,比如都在具体的JAVA程序中实现,这种方法逻辑简单且易于保持一致性,但要求每个JAVA程序都分别去实现这个内容相同的功能,会造成工作量的浪费。而且,由于全键盘输入的非标准性,只有针对特定机型的特定JAVA程序有可能做这样的实现,而大量开放的供用户自由下载的JAVA程序则不可能支持这个功能,这在一定程度上也影响了JAVA程序的跨平台应用功能。Usually, the input character value display and input status display are completed in the same interface of the same program, such as in a specific JAVA program. This method is simple and easy to maintain consistency, but requires every JAVA program. To achieve the same function of this content separately, it will cause a waste of work. Moreover, due to the non-standardization of full keyboard input, only a specific JAVA program for a specific model may have such an implementation, and a large number of open JAVA programs for users to download freely cannot support this function, which to some extent It also affects the cross-platform application functions of JAVA programs.
综上,如何保证具有JAVA程序的移动终端中输入字符值和输入状态显示的一致性,提升JAVA程序的跨平台应用功能,提高用户体验,是移动终端技术领域研究的方向之一。In summary, how to ensure the consistency of input character values and input status display in a mobile terminal with JAVA program, improve the cross-platform application function of JAVA program, and improve user experience is one of the research directions in the field of mobile terminal technology.
【发明内容】 [Summary of the Invention]
本发明的目的在于提供一种针对JAVA程序的移动终端输入控制方法和装置,旨在保证具有JAVA程序的移动终端中输入字符值和输入状态显示的一致性,提升JAVA程序的跨平台应用功能,提高用户体验。The object of the present invention is to provide a mobile terminal input control method and apparatus for a JAVA program, which aims to ensure the consistency of input character values and input state display in a mobile terminal having a JAVA program, and improve the cross-platform application function of the JAVA program. Improve the user experience.
本发明是这样实现的,一种针对JAVA程序的移动终端输入控制方法,所述方法包括以下步骤: The present invention is implemented in this way, a mobile terminal input control method for a JAVA program, the method comprising the following steps:
接收用户的按键输入;Receiving a user's key input;
对接收到的按键输入进行判断,判断所述按键输入对应功能按键或者字符按键;Determining the received key input, determining that the key input corresponds to a function key or a character key;
若所述按键输入对应的是功能按键,则根据所述功能按键对应的功能按键值切换输入状态设置,JAVA适配层读取所述输入状态设置,并根据所述输入状态设置刷新图标显示界面,其中,所述图标显示界面用于显示输入状态,且所述图标显示界面以部分透明方式悬浮于所述JAVA程序界面之上;If the button input corresponds to the function button, the input state setting is switched according to the function button value corresponding to the function button, the JAVA adaptation layer reads the input state setting, and sets a refresh icon display interface according to the input state. The icon display interface is configured to display an input state, and the icon display interface is suspended in the JAVA program interface in a partially transparent manner;
若所述按键输入对应的是字符按键,则所述JAVA程序直接将所述字符按键对应的字符显示在JAVA程序界面的输入框内;If the key input corresponds to a character key, the JAVA program directly displays the character corresponding to the character key in an input box of the JAVA program interface;
其中所述JAVA程序直接将所述字符按键对应的字符显示在JAVA程序界面的输入框内的步骤具体包括:The step of the JAVA program directly displaying the character corresponding to the character button in the input box of the JAVA program interface includes:
将所述字符按键传递给所述JAVA适配层;Passing the character button to the JAVA adaptation layer;
所述JAVA适配层将所述字符按键对应的字符编码值传递给所述JAVA程序;The JAVA adaptation layer passes the character encoding value corresponding to the character button to the JAVA program;
所述JAVA程序根据所述字符编码值将所述字符显示在JAVA程序界面的输入框内。The JAVA program displays the character in an input box of the JAVA program interface according to the character encoding value.
其中,所述图标显示界面独立于所述JAVA程序界面之上。The icon display interface is independent of the JAVA program interface.
本发明是这样实现的,一种针对JAVA程序的移动终端输入控制装置,所述装置包括: The present invention is implemented as such, a mobile terminal input control device for a JAVA program, the device comprising:
按键输入接收模块,用于接收用户的按键输入;a key input receiving module for receiving a user's key input;
判断模块,用于对接收到的按键输入进行判断,判断所述按键输入对应功能按键或者字符按键;a judging module, configured to judge the received key input, and determine that the key input corresponds to a function key or a character key;
功能按键处理模块,用于在判断所述按键输入对应的是功能按键后,根据所述功能按键对应的功能按键值切换输入状态设置,JAVA适配层读取所述输入状态设置,并根据所述输入状态设置刷新图标显示界面,其中,所述图标显示界面用于显示输入状态,且所述图标显示界面悬浮于所述JAVA程序界面之上;a function button processing module, configured to: after determining that the button input corresponds to a function button, switch an input state setting according to a function button value corresponding to the function button, and the JAVA adaptation layer reads the input state setting, and according to the The input state setting refresh icon display interface, wherein the icon display interface is used to display an input state, and the icon display interface is suspended above the JAVA program interface;
字符按键处理模块,用于在判断所述按键输入对应的是字符按键后,所述JAVA程序直接将所述字符按键对应的字符显示在JAVA程序界面的输入框内。The character button processing module is configured to: after determining that the button input corresponds to a character button, the JAVA program directly displays the character corresponding to the character button in an input box of the JAVA program interface.
其中,所述图标显示界面以部分透明方式悬浮于所述JAVA程序界面之上。The icon display interface is suspended on the JAVA program interface in a partially transparent manner.
其中,所述图表显示界面独立于所述JAVA程序界面之上。The chart display interface is independent of the JAVA program interface.
其中,所述字符按键处理模块还包括:The character button processing module further includes:
所述字符按键传递模块,用于将所述字符按键传递给所述JAVA适配层;The character key delivery module is configured to pass the character key to the JAVA adaptation layer;
字符编码值传递模块,用于将所述字符按键对应的字符编码值传递给所述JAVA程序;a character encoding value passing module, configured to transmit a character encoding value corresponding to the character button to the JAVA program;
显示模块,用于根据所述字符编码值将所述字符显示在JAVA程序界面的输入框内。And a display module, configured to display the character in an input box of the JAVA program interface according to the character encoding value.
本发明是这样实现的,一种移动终端,所述移动终端包括一针对JAVA程序的移动终端输入控制装置,所述装置包括: The present invention is implemented in the form of a mobile terminal, the mobile terminal comprising a mobile terminal input control device for a JAVA program, the device comprising:
按键输入接收模块,用于接收用户的按键输入;a key input receiving module for receiving a user's key input;
判断模块,用于对接收到的按键输入进行判断,判断所述按键输入对应功能按键或者字符按键;a judging module, configured to judge the received key input, and determine that the key input corresponds to a function key or a character key;
功能按键处理模块,用于在判断所述按键输入对应的是功能按键后,根据所述功能按键对应的功能按键值切换输入状态设置,JAVA适配层读取所述输入状态设置,并根据所述输入状态设置刷新图标显示界面,其中,所述图标显示界面用于显示输入状态,且所述图标显示界面悬浮于所述JAVA程序界面之上;a function button processing module, configured to: after determining that the button input corresponds to a function button, switch an input state setting according to a function button value corresponding to the function button, and the JAVA adaptation layer reads the input state setting, and according to the The input state setting refresh icon display interface, wherein the icon display interface is used to display an input state, and the icon display interface is suspended above the JAVA program interface;
字符按键处理模块,用于在判断所述按键输入对应的是字符按键后,所述JAVA程序直接将所述字符按键对应的字符显示在JAVA程序界面的输入框内。The character button processing module is configured to: after determining that the button input corresponds to a character button, the JAVA program directly displays the character corresponding to the character button in an input box of the JAVA program interface.
其中,所述图标显示界面以部分透明方式悬浮于所述JAVA程序界面之上。The icon display interface is suspended on the JAVA program interface in a partially transparent manner.
其中,所述图标显示界面独立于所述JAVA程序界面之上。The icon display interface is independent of the JAVA program interface.
其中,所述字符按键处理模块还包括:The character button processing module further includes:
所述字符按键传递模块,用于将所述字符按键传递给所述JAVA适配层;The character key delivery module is configured to pass the character key to the JAVA adaptation layer;
字符编码值传递模块,用于将所述字符按键对应的字符编码值传递给所述JAVA程序;a character encoding value passing module, configured to transmit a character encoding value corresponding to the character button to the JAVA program;
显示模块,用于根据所述字符编码值将所述字符显示在JAVA程序界面的输入框内。And a display module, configured to display the character in an input box of the JAVA program interface according to the character encoding value.
本发明的有益效果是:区别于现有技术,本发明提供的针对JAVA程序的移动终端输入控制方法,在判断用户的按键输入为功能按键后,根据所述功能按键对应的功能按键值切换输入状态设置,JAVA适配层读取所述输入状态设置,并根据所述输入状态设置刷新图标显示界面,其中,所述图标显示界面用于显示输入状态,且所述图标显示界面悬浮于所述JAVA程序界面之上,通过上述方式,本发明保证了具有JAVA程序的移动终端中输入字符值和输入状态显示的一致性,能够提升JAVA程序的跨平台应用功能,提高用户体验,利于移动终端技术的推广。The beneficial effects of the present invention are: different from the prior art, the mobile terminal input control method for the JAVA program provided by the present invention, after determining that the user's key input is a function key, switching input according to the function key value corresponding to the function key a state setting, the JAVA adaptation layer reads the input state setting, and sets a refresh icon display interface according to the input state, wherein the icon display interface is used to display an input state, and the icon display interface is suspended in the Above the JAVA program interface, the above method ensures the consistency of the input character value and the input state display in the mobile terminal with the JAVA program, can improve the cross-platform application function of the JAVA program, improve the user experience, and facilitate the mobile terminal technology. Promotion.
【附图说明】 [Description of the Drawings]
图1是根据本发明的针对JAVA程序的移动终端输入控制方法实施例的流程图;1 is a flow chart of an embodiment of a mobile terminal input control method for a JAVA program in accordance with the present invention;
图2是根据本发明提供的针对JAVA程序的移动终端实施例的内部结构图;2 is an internal structural diagram of an embodiment of a mobile terminal for a JAVA program provided in accordance with the present invention;
图3是根据本发明提供的针对JAVA程序的移动终端输入控制装置实施例的结构图。3 is a structural diagram of an embodiment of a mobile terminal input control apparatus for a JAVA program provided in accordance with the present invention.
【具体实施方式】 【detailed description】
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
图1是根据本发明的针对JAVA程序的移动终端输入控制方法的实施例流程。1 is a flow chart of an embodiment of a mobile terminal input control method for a JAVA program according to the present invention.
在步骤S101中,接收用户的按键输入。In step S101, a user's key input is received.
在步骤S102中,对接收到的按键输入进行判断,判断所述按键输入对应功能按键或者字符按键,若所述按键输入对应的是功能按键,则进行步骤S103;若所述按键输入对应的是字符按键,则进行步骤S104。In step S102, the received key input is determined, and the key input is determined to correspond to the function key or the character key. If the key input corresponds to the function key, proceed to step S103; if the key input corresponds to If the character is pressed, the process proceeds to step S104.
在步骤S103中,根据所述功能按键对应的功能按键值切换输入状态设置,JAVA适配层读取所述输入状态设置,并根据所述输入状态设置刷新图标显示界面。In step S103, the input state setting is switched according to the function key value corresponding to the function button, and the JAVA adaptation layer reads the input state setting, and sets a refresh icon display interface according to the input state.
其中,所述图标显示界面用于显示输入状态,且所述图标显示界面悬浮于所述JAVA程序界面之上。The icon display interface is configured to display an input state, and the icon display interface is suspended on the JAVA program interface.
优选的,所述图标显示界面以部分透明方式悬浮于所述JAVA程序界面之上,且所述图标显示界面独立于所述JAVA程序界面之上。Preferably, the icon display interface is suspended on the JAVA program interface in a partially transparent manner, and the icon display interface is independent of the JAVA program interface.
在步骤S104中,所述JAVA程序直接将所述字符按键对应的字符显示在JAVA程序界面的输入框内。In step S104, the JAVA program directly displays the character corresponding to the character button in the input box of the JAVA program interface.
在具体实施过程中,首先将所述字符按键传递给所述JAVA适配层,所述JAVA适配层将所述字符按键对应得字符编码值传递给所述JAVA程序,最后,所述JAVA程序根据所述字符编码值将所述字符显示在JAVA程序界面的输入框内。In a specific implementation process, the character key is first passed to the JAVA adaptation layer, and the JAVA adaptation layer transmits the character encoding value corresponding to the character key to the JAVA program, and finally, the JAVA program The character is displayed in an input box of the JAVA program interface according to the character encoding value.
请参阅图2,图2为根据本发明提供的针对JAVA程序的移动终端的内部结构图。Please refer to FIG. 2. FIG. 2 is a diagram showing the internal structure of a mobile terminal for a JAVA program according to the present invention.
其中,JAVA技术为一种跨平台的软件技术,符合J2ME规范的JAVA应用程序(MIDlet)可以在不同的硬件设备上经过简单的调整和适配而运行,而不必考虑硬件设备平台的处理器及操作系统细节。Among them, JAVA technology is a cross-platform software technology. JAVA applications conforming to the J2ME specification can be easily adjusted and adapted on different hardware devices without regard to the processor of the hardware device platform. Operating system details.
JAVA本身的跨平台特性依赖于其抽象的应用程序运行环境,即JAVA虚拟机。实现JAVA虚拟机核心部分的功能通常被称为JAVA内核(Core),也称为JVM。The cross-platform nature of JAVA itself depends on its abstract application runtime environment, the JAVA virtual machine. The function of implementing the core part of the JAVA virtual machine is often referred to as the JAVA kernel (Core), also known as the JVM.
不同的JAVA应用程序运行在同一个硬件设备上时需要对其资源和记录信息的管理,这部分功能通常称为JAVA应用程序管理器,也称为JAM,或称为应用管理层,应用管理层可以看作JAVA虚拟机的一部分,也可以看作JAVA内核之上的一个基础的应用层。Different JAVA applications need to manage their resources and record information when running on the same hardware device. This part of the function is usually called JAVA application manager, also known as JAM, or application management layer, application management layer. Can be seen as part of the JAVA virtual machine, can also be seen as a basic application layer above the JAVA kernel.
为了将JAVA技术的整体运行于另一个实体软硬件平台上,需要一些嫁接和适配的工作,与此相关的所有软件和硬件的配合部分被称为JAVA的适配,也称为JAVA适配层。In order to run the whole JAVA technology on another physical hardware and software platform, some grafting and adaptation work is required. All the software and hardware cooperation parts related to this are called JAVA adaptation, also known as JAVA adaptation. Floor.
运行在JAVA适配层之下的为系统平台,以及一些底层应用程序。 其他更高层的应用也可能与JAVA系统和JAVA应用程序发生通讯等操作,但往往不能直接通讯,而是通过JAVA适配层、JAVA内核以及JAM的帮助。Running under the JAVA adaptation layer is the system platform, as well as some underlying applications. Other higher-level applications may also communicate with JAVA systems and JAVA applications, but often do not communicate directly, but through the help of JAVA adaptation layer, JAVA kernel and JAM.
本发明中,为了保证输入字符值和输入状态显示的一致性,每个JAVA程序直接显示由JAVA适配层传递的编码值unicode对应的字符,由JAVA适配层将输入状态图标单独显示在独立于并以部分透明方式悬浮在JAVA程序界面上的图标显示界面上,显然,本发明以最小的工作量最大限度地实现全键盘手机中JAVA程序字符直接输入显示,譬如在MSN聊天等需要频繁输入字符的JAVA程序,在保持JAVA程序独立性的同时显著提高用户体验。In the present invention, in order to ensure the consistency of the input character value and the input state display, each JAVA program directly displays the character corresponding to the encoded value unicode transmitted by the JAVA adaptation layer, and the input state icon is separately displayed in the independent by the JAVA adaptation layer. The image display interface is suspended in the JAVA program interface in a partially transparent manner. Obviously, the present invention maximizes the direct input display of the JAVA program characters in the full keyboard mobile phone with minimal workload, such as frequent input in the MSN chat. The character JAVA program significantly improves the user experience while maintaining the independence of the JAVA program.
图3示出了本发明中针对JAVA程序的移动终端输入控制装置的结构。Fig. 3 shows the structure of a mobile terminal input control device for a JAVA program in the present invention.
其中,按键输入接收模块31,用于接收用户的按键输入。The button input receiving module 31 is configured to receive a button input of the user.
判断模块32,用于对接收到的按键输入进行判断,判断所述按键输入对应功能按键或者字符按键。The determining module 32 is configured to determine the received key input, and determine that the key input corresponds to a function key or a character key.
功能按键处理模块33,用于在判断所述按键输入对应的是功能按键后,根据所述功能按键对应的功能按键值切换输入状态设置,JAVA适配层读取所述输入状态设置,并根据所述输入状态设置刷新图标显示界面,其中,所述图标显示界面用于显示输入状态,且所述图标显示界面悬浮于所述JAVA程序界面之上。The function button processing module 33 is configured to: after determining that the button input corresponds to the function button, switch the input state setting according to the function button value corresponding to the function button, and the JAVA adaptation layer reads the input state setting, and according to The input state setting refresh icon display interface, wherein the icon display interface is used to display an input state, and the icon display interface is suspended above the JAVA program interface.
字符按键处理模块34,用于在判断所述按键输入对应的是字符按键后,所述JAVA程序直接将所述字符按键对应的字符显示在JAVA程序界面的输入框内。The character button processing module 34 is configured to: after determining that the button input corresponds to a character button, the JAVA program directly displays the character corresponding to the character button in an input box of the JAVA program interface.
优选的,所述图标显示界面以部分透明方式悬浮于所述JAVA程序界面之上,且所述图表显示界面独立于所述JAVA程序界面之上。Preferably, the icon display interface is suspended on the JAVA program interface in a partially transparent manner, and the chart display interface is independent of the JAVA program interface.
其中,请参阅图3,所述字符按键处理模块34还包括:Referring to FIG. 3, the character button processing module 34 further includes:
字符按键传递模块341,用于将所述字符按键传递给所述JAVA适配层;a character key delivery module 341, configured to pass the character key to the JAVA adaptation layer;
字符编码值传递模块342,用于将所述字符按键对应得字符编码值传递给所述JAVA程序;a character encoding value passing module 342, configured to pass the character encoding value corresponding to the character key to the JAVA program;
显示模块343,用于根据所述字符编码值将所述字符显示在JAVA程序界面的输入框内。The display module 343 is configured to display the character in an input box of the JAVA program interface according to the character encoding value.
本发明提供的针对JAVA程序的移动终端输入控制方法,在判断用户的按键输入为功能按键后,根据所述功能按键对应的功能按键值切换输入状态设置,JAVA适配层读取所述输入状态设置,并根据所述输入状态设置刷新图标显示界面,其中,所述图标显示界面用于显示输入状态,且所述图标显示界面悬浮于所述JAVA程序界面之上,显然,本发明保证了具有JAVA程序的移动终端中输入字符值和输入状态显示的一致性,提升了JAVA程序的跨平台应用功能,提高了用户体验,利于移动终端技术的推广。The mobile terminal input control method for the JAVA program provided by the present invention, after determining that the user's key input is a function key, switching the input state setting according to the function key value corresponding to the function key, and the JAVA adaptation layer reads the input state. Setting, and setting a refresh icon display interface according to the input state, wherein the icon display interface is used to display an input state, and the icon display interface is suspended on the JAVA program interface. Obviously, the present invention ensures that The consistency of the input character value and the input state display in the mobile terminal of the JAVA program improves the cross-platform application function of the JAVA program, improves the user experience, and facilitates the promotion of the mobile terminal technology.
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。 The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection of the present invention. Within the scope.

Claims (10)

  1. 一种针对JAVA程序的移动终端输入控制方法,其中,所述方法包括以下步骤:A mobile terminal input control method for a JAVA program, wherein the method comprises the following steps:
    接收用户的按键输入;Receiving a user's key input;
    对接收到的按键输入进行判断,判断所述按键输入对应功能按键或者字符按键;Determining the received key input, determining that the key input corresponds to a function key or a character key;
    若所述按键输入对应的是功能按键,则根据所述功能按键对应的功能按键值切换输入状态设置,JAVA适配层读取所述输入状态设置,并根据所述输入状态设置刷新图标显示界面,其中,所述图标显示界面用于显示输入状态,且所述图标显示界面以部分透明方式悬浮于所述JAVA程序界面之上;If the button input corresponds to the function button, the input state setting is switched according to the function button value corresponding to the function button, the JAVA adaptation layer reads the input state setting, and sets a refresh icon display interface according to the input state. The icon display interface is configured to display an input state, and the icon display interface is suspended in the JAVA program interface in a partially transparent manner;
    若所述按键输入对应的是字符按键,则所述JAVA程序直接将所述字符按键对应的字符显示在JAVA程序界面的输入框内;If the key input corresponds to a character key, the JAVA program directly displays the character corresponding to the character key in an input box of the JAVA program interface;
    其中所述JAVA程序直接将所述字符按键对应的字符显示在JAVA程序界面的输入框内的步骤具体包括:The step of the JAVA program directly displaying the character corresponding to the character button in the input box of the JAVA program interface includes:
    将所述字符按键传递给所述JAVA适配层;Passing the character button to the JAVA adaptation layer;
    所述JAVA适配层将所述字符按键对应的字符编码值传递给所述JAVA程序;The JAVA adaptation layer passes the character encoding value corresponding to the character button to the JAVA program;
    所述JAVA程序根据所述字符编码值将所述字符显示在JAVA程序界面的输入框内。 The JAVA program displays the character in an input box of the JAVA program interface according to the character encoding value.
  2. 如权利要求1所述的针对JAVA程序的移动终端输入控制方法,其中,所述图标显示界面独立于所述JAVA程序界面之上。The mobile terminal input control method for a JAVA program according to claim 1, wherein the icon display interface is independent of the JAVA program interface.
  3. 一种针对JAVA程序的移动终端输入控制装置,其中,所述装置包括:A mobile terminal input control device for a JAVA program, wherein the device comprises:
    按键输入接收模块,用于接收用户的按键输入;a key input receiving module for receiving a user's key input;
    判断模块,用于对接收到的按键输入进行判断,判断所述按键输入对应功能按键或者字符按键;a judging module, configured to judge the received key input, and determine that the key input corresponds to a function key or a character key;
    功能按键处理模块,用于在判断所述按键输入对应的是功能按键后,根据所述功能按键对应的功能按键值切换输入状态设置,JAVA适配层读取所述输入状态设置,并根据所述输入状态设置刷新图标显示界面,其中,所述图标显示界面用于显示输入状态,且所述图标显示界面悬浮于所述JAVA程序界面之上;a function button processing module, configured to: after determining that the button input corresponds to a function button, switch an input state setting according to a function button value corresponding to the function button, and the JAVA adaptation layer reads the input state setting, and according to the The input state setting refresh icon display interface, wherein the icon display interface is used to display an input state, and the icon display interface is suspended above the JAVA program interface;
    字符按键处理模块,用于在判断所述按键输入对应的是字符按键后,所述JAVA程序直接将所述字符按键对应的字符显示在JAVA程序界面的输入框内。 The character button processing module is configured to: after determining that the button input corresponds to a character button, the JAVA program directly displays the character corresponding to the character button in an input box of the JAVA program interface.
  4. 如权利要求3所述的针对JAVA程序的移动终端输入控制装置,其中,所述图标显示界面以部分透明方式悬浮于所述JAVA程序界面之上。The mobile terminal input control apparatus for a JAVA program according to claim 3, wherein said icon display interface is suspended on said JAVA program interface in a partially transparent manner.
  5. 如权利要求4所述的针对JAVA程序的移动终端输入控制装置,其中,所述图标显示界面独立于所述JAVA程序界面之上。The mobile terminal input control apparatus for a JAVA program according to claim 4, wherein said icon display interface is independent of said JAVA program interface.
  6. 如权利要求3所述的针对JAVA程序的移动终端输入控制装置,其中,所述字符按键处理模块还包括:The mobile terminal input control device for a JAVA program according to claim 3, wherein the character button processing module further comprises:
    所述字符按键传递模块,用于将所述字符按键传递给所述JAVA适配层;The character key delivery module is configured to pass the character key to the JAVA adaptation layer;
    字符编码值传递模块,用于将所述字符按键对应的字符编码值传递给所述JAVA程序;a character encoding value passing module, configured to transmit a character encoding value corresponding to the character button to the JAVA program;
    显示模块,用于根据所述字符编码值将所述字符显示在JAVA程序界面的输入框内。And a display module, configured to display the character in an input box of the JAVA program interface according to the character encoding value.
  7. 一种移动终端,其中,所述移动终端包括一针对JAVA程序的移动终端输入控制装置,所述装置包括:A mobile terminal, wherein the mobile terminal comprises a mobile terminal input control device for a JAVA program, the device comprising:
    按键输入接收模块,用于接收用户的按键输入;a key input receiving module for receiving a user's key input;
    判断模块,用于对接收到的按键输入进行判断,判断所述按键输入对应功能按键或者字符按键;a judging module, configured to judge the received key input, and determine that the key input corresponds to a function key or a character key;
    功能按键处理模块,用于在判断所述按键输入对应的是功能按键后,根据所述功能按键对应的功能按键值切换输入状态设置,JAVA适配层读取所述输入状态设置,并根据所述输入状态设置刷新图标显示界面,其中,所述图标显示界面用于显示输入状态,且所述图标显示界面悬浮于所述JAVA程序界面之上;a function button processing module, configured to: after determining that the button input corresponds to a function button, switch an input state setting according to a function button value corresponding to the function button, and the JAVA adaptation layer reads the input state setting, and according to the The input state setting refresh icon display interface, wherein the icon display interface is used to display an input state, and the icon display interface is suspended above the JAVA program interface;
    字符按键处理模块,用于在判断所述按键输入对应的是字符按键后,所述JAVA程序直接将所述字符按键对应的字符显示在JAVA程序界面的输入框内。The character button processing module is configured to: after determining that the button input corresponds to a character button, the JAVA program directly displays the character corresponding to the character button in an input box of the JAVA program interface.
  8. 如权利要求7所述的移动终端,其中,所述图标显示界面以部分透明方式悬浮于所述JAVA程序界面之上。The mobile terminal of claim 7, wherein the icon display interface is suspended above the JAVA program interface in a partially transparent manner.
  9. 如权利要求8所述的移动终端,其中,所述图标显示界面独立于所述JAVA程序界面之上。 The mobile terminal of claim 8, wherein the icon display interface is independent of the JAVA program interface.
  10. 如权利要求7所述的移动终端,其中,所述字符按键处理模块还包括:The mobile terminal of claim 7, wherein the character button processing module further comprises:
    所述字符按键传递模块,用于将所述字符按键传递给所述JAVA适配层;The character key delivery module is configured to pass the character key to the JAVA adaptation layer;
    字符编码值传递模块,用于将所述字符按键对应的字符编码值传递给所述JAVA程序;a character encoding value passing module, configured to transmit a character encoding value corresponding to the character button to the JAVA program;
    显示模块,用于根据所述字符编码值将所述字符显示在JAVA程序界面的输入框内。And a display module, configured to display the character in an input box of the JAVA program interface according to the character encoding value.
PCT/CN2012/075221 2011-05-30 2012-05-09 Method and apparatus for controlling input of mobile terminal for java program WO2012163216A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110142954.2A CN102184076B (en) 2011-05-30 2011-05-30 Method and device for controlling input of mobile terminal specific to JAVA program
CN201110142954.2 2011-05-30

Publications (1)

Publication Number Publication Date
WO2012163216A1 true WO2012163216A1 (en) 2012-12-06

Family

ID=44570257

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/075221 WO2012163216A1 (en) 2011-05-30 2012-05-09 Method and apparatus for controlling input of mobile terminal for java program

Country Status (2)

Country Link
CN (1) CN102184076B (en)
WO (1) WO2012163216A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020093352A1 (en) * 2018-11-09 2020-05-14 Citrix Systems, Inc. Automated keyboard mapping for virtual desktops

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102184076B (en) * 2011-05-30 2014-04-16 惠州Tcl移动通信有限公司 Method and device for controlling input of mobile terminal specific to JAVA program
CN102523361A (en) * 2011-11-29 2012-06-27 合肥海尔空调器有限公司 Remote control realization method and device for electrical equipment
CN103713907A (en) * 2014-01-14 2014-04-09 成都林海电子有限责任公司 Mobile terminal communication information management method based on Linux QT platform
CN106303639B (en) * 2015-05-14 2020-06-23 Tcl科技集团股份有限公司 Method and system for realizing full keyboard function keys of smart television
CN106886354A (en) * 2015-12-15 2017-06-23 上海嵩恒网络科技有限公司 A kind of touch-controlled electronic devices and its multi input integrated approach

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101339497A (en) * 2008-08-28 2009-01-07 青岛海信移动通信技术股份有限公司 Method and device for displaying pattern produced when operating Java software
CN101437309A (en) * 2007-11-16 2009-05-20 宏达国际电子股份有限公司 Method for displaying dial-up information and mobile communication equipment using the method
CN101655742A (en) * 2009-09-04 2010-02-24 惠州Tcl移动通信有限公司 Key inputting method for mobile communication terminal
CN102184076A (en) * 2011-05-30 2011-09-14 惠州Tcl移动通信有限公司 Method and device for controlling input of mobile terminal specific to JAVA program

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1172726A3 (en) * 2000-07-13 2005-04-20 International Business Machines Corporation Pervasive computing device and method
US20030097345A1 (en) * 2001-10-18 2003-05-22 Mitch Upton System and method for invoking business functionality for a workflow
CN101630194B (en) * 2008-07-18 2013-05-01 联想(北京)有限公司 Terminal equipment and startup method of application programs
CN101800042A (en) * 2009-02-06 2010-08-11 中兴通讯股份有限公司 Method and device for simultaneously displaying multimedia application and other application during concurrence
CN101882047B (en) * 2009-05-05 2012-05-30 三竹资讯股份有限公司 On-screen virtual keyboard system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101437309A (en) * 2007-11-16 2009-05-20 宏达国际电子股份有限公司 Method for displaying dial-up information and mobile communication equipment using the method
CN101339497A (en) * 2008-08-28 2009-01-07 青岛海信移动通信技术股份有限公司 Method and device for displaying pattern produced when operating Java software
CN101655742A (en) * 2009-09-04 2010-02-24 惠州Tcl移动通信有限公司 Key inputting method for mobile communication terminal
CN102184076A (en) * 2011-05-30 2011-09-14 惠州Tcl移动通信有限公司 Method and device for controlling input of mobile terminal specific to JAVA program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020093352A1 (en) * 2018-11-09 2020-05-14 Citrix Systems, Inc. Automated keyboard mapping for virtual desktops
US11681378B2 (en) 2018-11-09 2023-06-20 Citrix Systems, Inc. Automated keyboard mapping for virtual desktops

Also Published As

Publication number Publication date
CN102184076B (en) 2014-04-16
CN102184076A (en) 2011-09-14

Similar Documents

Publication Publication Date Title
WO2012163216A1 (en) Method and apparatus for controlling input of mobile terminal for java program
WO2014173036A1 (en) Wireless communications device and method of adding widget thereof
WO2017096796A1 (en) System updating method and device for smart phone
WO2012060589A2 (en) Touch control method and portable terminal supporting the same
WO2012043962A1 (en) Method and system for visualizing an adaptive screen according to a terminal
WO2013151303A1 (en) Terminal for supporting icon operation and icon operation method
WO2011068372A2 (en) Mobile device and control method thereof
WO2014142471A1 (en) Multi-input control method and system, and electronic device supporting the same
WO2014086145A1 (en) Method for sharing file and handheld device
WO2013013542A1 (en) Wireless communication device, webpage sharing system and method based on wireless communication device
WO2017107557A1 (en) Mobile terminal-based method and system for popping up quick menu
WO2014000459A1 (en) Mobile communication terminal and power management method thereof
WO2013053269A1 (en) Wireless communication device and configuration method thereof
WO2018010269A1 (en) Message processing method and device
WO2016029659A1 (en) Method and system for synchronizing music player functions of intelligent device, and bluetooth headset
WO2013154243A1 (en) Method for managing calls and mobile terminal using the same
WO2018171534A1 (en) Mobile terminal-based dual camera power supply control method, system and mobile terminal
WO2015005646A1 (en) Method for operating communication function and electronic device supporting the same
WO2018058776A1 (en) Method for activating clone function of application, clone function activation device, and terminal
WO2018058835A1 (en) Call mode monitoring method, system and communication terminal
WO2014089965A1 (en) Method and mobile terminal for displaying dlna equipment
WO2018018819A1 (en) Management method, management device and terminal for application
WO2017133263A1 (en) Method of configuring subframe, data transmission method, and related device and system
WO2017101305A1 (en) Method and apparatus for displaying user manual of smartphone
WO2018076880A1 (en) Data backup method, apparatus, storage medium, and terminal

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12792920

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12792920

Country of ref document: EP

Kind code of ref document: A1