CN111708533B - Method and device for setting mouse display state in application thin client - Google Patents
Method and device for setting mouse display state in application thin client Download PDFInfo
- Publication number
- CN111708533B CN111708533B CN202010396796.2A CN202010396796A CN111708533B CN 111708533 B CN111708533 B CN 111708533B CN 202010396796 A CN202010396796 A CN 202010396796A CN 111708533 B CN111708533 B CN 111708533B
- Authority
- CN
- China
- Prior art keywords
- thin client
- pointer
- mouse
- display state
- mouse pointer
- Prior art date
- Legal status (The legal status 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 status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/38—Creation or generation of source code for implementing user interfaces
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
Description
技术领域technical field
本发明涉及通信技术领域,尤其涉及一种在应用瘦客户端中设置鼠标显示状态的方法及装置。The invention relates to the field of communication technology, in particular to a method and a device for setting a mouse display state in an application thin client.
背景技术Background technique
Android是一种基于Linux的自由及开放源代码的操作系统,主要使用于移动设备,由Google公司和开放手机联盟领导及开发。随着Android系统的普及,越来越多的人开始使用Android设备。而随着虚拟机化技术的发展,更多的用户开发使用云办公环境,Android厂商为适应云办公环境,设计了一些接入云办公环境的运行Android操作系统的终端设备,例如Andorid TC盒子。这些基于云办公环境运行Android操作系统的终端设备可以连接鼠标、键盘和显示器,如图1所示,用户只需要在这些终端设备上安装云办公服务的瘦客户端应用,即可在低配置的客户机上使用云服务。Android is a free and open source operating system based on Linux, mainly used in mobile devices, led and developed by Google and the Open Handset Alliance. With the popularization of Android system, more and more people start to use Android devices. With the development of virtual machine technology, more users develop and use the cloud office environment. To adapt to the cloud office environment, Android manufacturers have designed some terminal devices running the Android operating system connected to the cloud office environment, such as Andorid TC boxes. These terminal devices running the Android operating system based on the cloud office environment can be connected to a mouse, keyboard and monitor, as shown in Figure 1, users only need to install the thin client application of the cloud office service on these terminal The cloud service is used on the client computer.
然而,云办公服务的瘦客户端由于部署的终端设备硬件性能较差,因此基于云服务的应用的瘦客户端上通常仅实现了与云办公服务的服务器设备的协议解析和显示的功能,而并不具备较强的本地运行程序的能力,因此,应用瘦客户端通常只能使用安装的终端设备上的Android系统默认的鼠标指针,并不能对其显示状态(隐藏或显示)或指针图案和形状进行绘制,因此在一些需要隐藏鼠标指针的场景中,例如全屏播放视频的场景中,无法将鼠标指针隐藏,也无法根据瘦客户端展示内容的场景变更鼠标的指针图案,这就使得鼠标指针无法起到对用户的操作进行指示的作用,从而造成了操作的便利性不足的问题。However, due to the poor hardware performance of the terminal equipment deployed by the thin client of the cloud office service, the thin client of the application based on the cloud service usually only implements the functions of protocol analysis and display with the server device of the cloud office service, and the It does not have a strong ability to run programs locally. Therefore, the application thin client can only use the default mouse pointer of the Android system on the installed terminal device, and cannot display the status (hide or display) or pointer pattern and Therefore, in some scenarios where the mouse pointer needs to be hidden, such as the scene where the video is played in full screen, the mouse pointer cannot be hidden, and the mouse pointer pattern cannot be changed according to the scene where the thin client displays the content, which makes the mouse pointer The function of instructing the user's operation cannot be played, thereby causing the problem of insufficient convenience of operation.
发明内容Contents of the invention
基于此,为解决传统技术中的Android系统中的应用瘦客户端只能使用系统默认的鼠标指针的设置从而导致的操作便利性不足的技术问题,在本发明的第一方面,特提出了一种在应用瘦客户端中设置鼠标显示状态的方法。Based on this, in order to solve the technical problem that the application thin client in the Android system in the traditional technology can only use the setting of the system default mouse pointer, resulting in insufficient operational convenience, in the first aspect of the present invention, a special method is proposed. A way to set the mouse display state in an application thin client.
一种在应用瘦客户端中设置鼠标显示状态的方法,包括:A method for setting a mouse display state in an application thin client, comprising:
通过应用瘦客户端接收鼠标指针显示状态设置指令;Receive a mouse pointer display state setting instruction through the application thin client;
获取所述鼠标指针显示状态设置指令携带的目标指针显示状态,所述目标指针显示状态包括隐藏状态或显示状态;Obtaining the display state of the target pointer carried by the mouse pointer display state setting instruction, where the display state of the target pointer includes a hidden state or a displayed state;
生成以改变指针显示状态的标识为动作参数的intent消息,将所述目标指针显示状态作为扩展项参数封装到所述intent消息中;Generating an intent message with an identifier for changing the display state of the pointer as an action parameter, and encapsulating the display state of the target pointer as an extension parameter into the intent message;
将所述intent消息广播至Android系统,由所述Android系统根据所述intent消息的动作参数查找相应的第一接口函数,以所述目标指针显示状态为参数调用所述第一接口函数设置鼠标指针的显示状态。The intent message is broadcast to the Android system, and the Android system searches for the corresponding first interface function according to the action parameters of the intent message, and calls the first interface function as a parameter to set the mouse pointer with the display state of the target pointer display status.
可选的,在一个实施例中,所述改变指针显示状态的标识为Android系统中定义的CURSOR_VISIBLE_CHANGED标识。Optionally, in one embodiment, the indicator for changing the display state of the pointer is the CURSOR_VISIBLE_CHANGED indicator defined in the Android system.
可选的,在一个实施例中,所述通过应用瘦客户端接收鼠标指针显示状态设置指令为:Optionally, in one embodiment, the receiving the mouse pointer display state setting instruction through the application thin client is:
通过所述应用瘦客户端接收所述应用瘦客户端对应的服务器下发的鼠标指针显示状态设置指令。The mouse pointer display state setting instruction issued by the server corresponding to the application thin client is received by the application thin client.
此外,为解决传统技术中的Android系统中的应用瘦客户端只能使用系统默认的鼠标指针的设置从而导致的操作便利性不足的技术问题,在本发明的第二方面,提出了一种在应用瘦客户端中设置鼠标显示状态的装置。In addition, in order to solve the technical problem that the application thin client in the Android system in the traditional technology can only use the default mouse pointer setting of the system, resulting in insufficient operation convenience, in the second aspect of the present invention, a method is proposed in the second aspect of the present invention. The device for setting the display state of the mouse in the application thin client.
一种在应用瘦客户端中设置鼠标显示状态的装置,包括:A device for setting the display state of a mouse in an application thin client, comprising:
鼠标指针显示状态设置指令接收模块,用于通过应用瘦客户端接收鼠标指针显示状态设置指令;The mouse pointer display state setting instruction receiving module is used to receive the mouse pointer display state setting instruction through the application thin client;
目标指针显示状态获取模块,用于获取所述鼠标指针显示状态设置指令携带的目标指针显示状态,所述目标指针显示状态包括隐藏状态或显示状态;A target pointer display state acquisition module, configured to obtain the target pointer display state carried by the mouse pointer display state setting instruction, where the target pointer display state includes a hidden state or a displayed state;
Intent消息生成模块,用于生成以改变指针显示状态的标识为动作参数的intent消息,将所述目标指针显示状态作为扩展项参数封装到所述intent消息中;An Intent message generating module, configured to generate an intent message with an indication of changing the pointer display state as an action parameter, and encapsulate the target pointer display state as an extension parameter into the intent message;
鼠标指针的显示状态设置模块,用于将所述intent消息广播至Android系统,由所述Android系统根据所述intent消息的动作参数查找相应的第一接口函数,以所述目标指针显示状态为参数调用所述第一接口函数设置鼠标指针的显示状态。The display state setting module of the mouse pointer is used to broadcast the intent message to the Android system, and the Android system searches for a corresponding first interface function according to the action parameter of the intent message, and uses the display state of the target pointer as a parameter calling the first interface function to set the display state of the mouse pointer.
可选的,在一个实施例中,所述改变指针显示状态的标识为Android系统中定义的CURSOR_VISIBLE_CHANGED标识。Optionally, in one embodiment, the indicator for changing the display state of the pointer is the CURSOR_VISIBLE_CHANGED indicator defined in the Android system.
可选的,在一个实施例中,所述鼠标指针显示状态设置指令接收模块还用于通过所述应用瘦客户端接收所述应用瘦客户端对应的服务器下发的鼠标指针显示状态设置指令。Optionally, in one embodiment, the mouse pointer display state setting instruction receiving module is further configured to receive, through the application thin client, a mouse pointer display state setting instruction issued by a server corresponding to the application thin client.
为解决传统技术中的Android系统中的应用瘦客户端只能使用系统默认的鼠标指针的设置从而导致的操作便利性不足的技术问题,在本发明的第三方面,还提出了一种在应用瘦客户端中重绘鼠标图案的方法。In order to solve the technical problem that the application thin client in the Android system in the traditional technology can only use the setting of the system default mouse pointer, resulting in insufficient operational convenience, in the third aspect of the present invention, a method is also proposed in the application Method for redrawing the mouse icon in the thin client.
一种在应用瘦客户端中重绘鼠标图案的方法,包括:A method for redrawing a mouse pattern in an application thin client, comprising:
获取鼠标指针位置信息;Get the mouse pointer position information;
接收应用瘦客户端对应的服务器下发的素材图像数据;Receive the material image data sent by the server corresponding to the application thin client;
生成以改变指针显示图像的标识为动作参数的intent消息,将所述鼠标指针位置信息和所述素材图像数据作为扩展项参数封装到所述intent消息中;Generating an intent message with the identifier of changing the pointer display image as an action parameter, and encapsulating the mouse pointer position information and the material image data as extension parameters into the intent message;
将所述intent消息广播至Android系统,由所述Android系统根据所述intent消息的动作参数查找相应的第二接口函数,以所述鼠标指针位置信息和所述素材图像数据为参数调用所述第二接口函数设置鼠标指针的显示状态。The intent message is broadcast to the Android system, and the Android system searches for the corresponding second interface function according to the action parameter of the intent message, and calls the second interface function with the mouse pointer position information and the material image data as parameters. The second interface function sets the display state of the mouse pointer.
可选的,在一个实施例中,所述获取鼠标指针位置信息为:Optionally, in one embodiment, the acquisition of mouse pointer position information is:
通过应用瘦客户端接收输入的鼠标指针重绘指令,获取鼠标指针重绘指令携带的鼠标指针位置信息;Receive the input mouse pointer redrawing command by using the thin client, and obtain the mouse pointer position information carried by the mouse pointer redrawing command;
所述接收应用瘦客户端对应的服务器下发的素材图像数据为:The material image data issued by the server corresponding to the receiving application thin client is:
获取所述鼠标指针重绘指令对应的素材链接,根据所述素材链接生成访问请求发送至所述应用瘦客户端对应的服务器,接收所述服务器返回的与所述素材链接对应的素材图像数据。Acquire the material link corresponding to the mouse pointer redrawing instruction, generate an access request according to the material link and send it to the server corresponding to the application thin client, and receive the material image data corresponding to the material link returned by the server.
可选的,在一个实施例中,所述改变指针显示图像的标识为Android系统中定义的MOUSE_ICON_CHANGED标识。Optionally, in one embodiment, the identifier of the display image of the changed pointer is the MOUSE_ICON_CHANGED identifier defined in the Android system.
为解决传统技术中的Android系统中的应用瘦客户端只能使用系统默认的鼠标指针的设置从而导致的操作便利性不足的技术问题,在本发明的第四方面,还提出了一种在应用瘦客户端中重绘鼠标图案的装置。In order to solve the technical problem that the thin client of the application in the Android system in the traditional technology can only use the setting of the system default mouse pointer, resulting in insufficient operational convenience, in the fourth aspect of the present invention, a method is also proposed in the application A device for redrawing mouse graphics in thin clients.
一种在应用瘦客户端中重绘鼠标图案的装置,包括:A device for redrawing a mouse pattern in an application thin client, comprising:
鼠标指针位置信息获取模块,用于获取鼠标指针位置信息;The mouse pointer position information acquisition module is used to obtain the mouse pointer position information;
素材图像数据接收模块,用于接收应用瘦客户端对应的服务器下发的素材图像数据;The material image data receiving module is used to receive the material image data issued by the server corresponding to the application thin client;
Intent消息生成模块,用于生成以改变指针显示图像的标识为动作参数的intent消息,将所述鼠标指针位置信息和所述素材图像数据作为扩展项参数封装到所述intent消息中;An Intent message generating module, configured to generate an intent message that takes the indication of changing the pointer display image as an action parameter, and encapsulates the mouse pointer position information and the material image data as extension parameters into the intent message;
鼠标指针的显示状态设置模块,用于将所述intent消息广播至Android系统,由所述Android系统根据所述intent消息的动作参数查找相应的第二接口函数,以所述鼠标指针位置信息和所述素材图像数据为参数调用所述第二接口函数设置鼠标指针的显示状态。The display state setting module of the mouse pointer is used to broadcast the intent message to the Android system, and the Android system searches for the corresponding second interface function according to the action parameters of the intent message, and uses the mouse pointer position information and the The material image data is used as a parameter to call the second interface function to set the display state of the mouse pointer.
可选的,在一个实施例中,所述鼠标指针位置信息获取模块还用于通过应用瘦客户端接收输入的鼠标指针重绘指令,获取鼠标指针重绘指令携带的鼠标指针位置信息;Optionally, in one embodiment, the mouse pointer position information obtaining module is further configured to receive the input mouse pointer redrawing instruction through the application thin client, and obtain the mouse pointer position information carried by the mouse pointer redrawing instruction;
所述素材图像数据接收模块还用于获取所述鼠标指针重绘指令对应的素材链接,根据所述素材链接生成访问请求发送至所述应用瘦客户端对应的服务器,接收所述服务器返回的与所述素材链接对应的素材图像数据。The material image data receiving module is also used to obtain the material link corresponding to the mouse pointer redrawing instruction, generate an access request according to the material link and send it to the server corresponding to the application thin client, and receive the information returned by the server and The material image data corresponding to the material link.
可选的,在一个实施例中,所述改变指针显示图像的标识为Android系统中定义的MOUSE_ICON_CHANGED标识。Optionally, in one embodiment, the identifier of the display image of the changed pointer is the MOUSE_ICON_CHANGED identifier defined in the Android system.
实施本发明实施例,将具有如下有益效果:Implementing the embodiment of the present invention will have the following beneficial effects:
采用了上述在应用瘦客户端中设置鼠标显示状态方法和在应用瘦客户端中重绘鼠标图案的方法之后,Android设备上运行的云服务的应用瘦客户端可向Android设备发送包含有指示Android设备显示鼠标指针、隐藏鼠标指针和重绘鼠标指针的消息,并在消息中附加参数。Android设备上运行的云服务的应用瘦客户端可根据消息生成相应的intent消息并广播给Android系统,Android系统通过解析该intent消息,并根据intent消息中包含的动作参数调用相应的接口函数来显示、隐藏或重绘鼠标指针,这就使得鼠标指针可被云服务的应用瘦客户端个性化定制,能够更加醒目地指示用户进行相应的操作,从而提高了操作的便利性。After adopting the above method of setting the mouse display state in the application thin client and the method of redrawing the mouse pattern in the application thin client, the application thin client of the cloud service running on the Android device can send an Android device containing an instruction Android The device displays messages for the mouse pointer, hides the mouse pointer, and redraws the mouse pointer, and appends parameters to the messages. The application thin client of the cloud service running on the Android device can generate a corresponding intent message according to the message and broadcast it to the Android system. The Android system parses the intent message and calls the corresponding interface function according to the action parameters contained in the intent message to display , hiding or redrawing the mouse pointer, which enables the mouse pointer to be personalized and customized by the application thin client of the cloud service, and can more conspicuously instruct the user to perform corresponding operations, thereby improving the convenience of operation.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.
其中:in:
图1为传统技术中基于Android终端的云服务平台的架构图;Fig. 1 is the architectural diagram of the cloud service platform based on the Android terminal in the traditional technology;
图2为本发明实施例提供的在应用瘦客户端中显示、隐藏、重绘鼠标图案的原理图;FIG. 2 is a schematic diagram of displaying, hiding, and redrawing mouse patterns in an application thin client provided by an embodiment of the present invention;
图3为本发明实施例提供的一种在应用瘦客户端中设置鼠标显示状态方法的流程图;3 is a flow chart of a method for setting a mouse display state in an application thin client provided by an embodiment of the present invention;
图4为本发明实施例提供的一种在应用瘦客户端中设置鼠标显示状态方法的原理图;4 is a schematic diagram of a method for setting a mouse display state in an application thin client provided by an embodiment of the present invention;
图5为本发明实施例提供的一种在应用瘦客户端中重绘鼠标图案的方法的流程图;FIG. 5 is a flowchart of a method for redrawing a mouse pattern in an application thin client provided by an embodiment of the present invention;
图6为本发明实施例提供的一种在应用瘦客户端中重绘鼠标图案的方法的原理图;FIG. 6 is a schematic diagram of a method for redrawing a mouse pattern in an application thin client provided by an embodiment of the present invention;
图7为本发明实施例提供的一种在应用瘦客户端中设置鼠标显示状态装置的示意图;FIG. 7 is a schematic diagram of a device for setting a mouse display state in an application thin client provided by an embodiment of the present invention;
图8本发明实施例提供的一种在应用瘦客户端中重绘鼠标图案的装置的示意图;FIG. 8 is a schematic diagram of a device for redrawing a mouse pattern in an application thin client provided by an embodiment of the present invention;
图9为本发明实施例提供的一种运行前述在应用瘦客户端中设置鼠标显示状态方法和在应用瘦客户端中重绘鼠标图案的方法的计算机设备的结构示意图。FIG. 9 is a schematic structural diagram of a computer device running the method for setting the mouse display state in the application thin client and the method for redrawing the mouse pattern in the application thin client provided by an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
为解决传统技术中的Android系统中的应用瘦客户端只能使用系统默认的鼠标指针的设置从而导致的操作便利性不足的技术问题,在一个实施例中,特提出了一种在应用瘦客户端中设置鼠标显示状态的方法以及一种在应用瘦客户端中重绘鼠标图案的方法。上述方法的执行基于计算机程序,该计算机程序可运行于基于冯诺依曼体系的以Android系统为操作系统的计算机设备上。该计算机设备可以是Android TV盒子,Android TC盒子等设备等可接入鼠标的Android设备。In order to solve the technical problem that the application thin client in the Android system can only use the default mouse pointer setting of the system in the traditional technology, resulting in insufficient operation convenience, in one embodiment, a special method is proposed in the application thin client. A method for setting the display state of a mouse in a thin client and a method for redrawing a mouse pattern in an application thin client. The execution of the above method is based on a computer program, which can run on a computer device based on the von Neumann system and using the Android system as the operating system. The computer device can be an Android device that can be connected to a mouse, such as an Android TV box, an Android TC box, and the like.
在该在应用瘦客户端中设置鼠标显示状态的方法和在应用瘦客户端中重绘鼠标图案的方法中,如图2所示,Android设备可接收云服务平台上的服务器运行的云办公应用或其他云应用下发的消息或指令,通过Android设备上的SDK API解析该消息或指令,从而实现在显示端显示鼠标指针,隐藏鼠标指针或重绘鼠标指针的操作。In the method for setting the mouse display state in the application thin client and the method for redrawing the mouse pattern in the application thin client, as shown in Figure 2, the Android device can receive the cloud office application run by the server on the cloud service platform or other cloud applications, parse the message or command through the SDK API on the Android device, so as to realize the operation of displaying the mouse pointer on the display, hiding the mouse pointer or redrawing the mouse pointer.
具体的,如图3所示,上述一种在应用瘦客户端中设置鼠标显示状态的方法包括:Specifically, as shown in FIG. 3, the above-mentioned method for setting the mouse display state in the application thin client includes:
步骤S102:通过应用瘦客户端接收鼠标指针显示状态设置指令。Step S102: receiving a mouse pointer display state setting instruction through the application thin client.
步骤S104:获取所述鼠标指针显示状态设置指令携带的目标指针显示状态,所述目标指针显示状态包括隐藏状态或显示状态。Step S104: Obtain the display state of the target pointer carried by the mouse pointer display state setting instruction, where the display state of the target pointer includes a hidden state or a displayed state.
应用瘦客户端即为安装在执行该在应用瘦客户端中设置鼠标显示状态的方法的Android设备上安装的仅具备展示功能或较少功能的应用客户端,应用瘦客户端接收云服务器下发的内容进行展示,但并不对云服务器下发的内容进行处理。The application thin client is the application client installed on the Android device that executes the method of setting the mouse display state in the application thin client, and only has the display function or less functions. The application thin client receives the cloud server. The content of the cloud server is displayed, but the content sent by the cloud server is not processed.
在本实施例中,可通过应用瘦客户端接收所述应用瘦客户端对应的服务器下发的鼠标指针显示状态设置指令。例如,用户在操作应用瘦客户端进入全屏播放PPT或全屏播放视频时,需要将用户的鼠标指针进行隐藏,则可通过预定义的通信协议向该执行该在应用瘦客户端中设置鼠标显示状态的方法的Android设备发送鼠标指针显示状态设置指令,该指令中可包含有目标指针显示状态,目标指针显示状态包括隐藏状态或显示状态。例如,鼠标指针显示状态设置指令中可使用1表示设置为显示状态,表示希望在显示屏上出现鼠标指针,使用0标识设置为隐藏状态,表示希望在显示屏上隐藏鼠标指针。In this embodiment, the mouse pointer display state setting instruction issued by the server corresponding to the application thin client may be received by the application thin client. For example, when the user needs to hide the user's mouse pointer when operating the application thin client to enter full-screen playback of PPT or full-screen video, the user can set the mouse display status in the application thin client through a predefined communication protocol. In the method, the Android device sends a mouse pointer display state setting instruction, the instruction may include the display state of the target pointer, and the display state of the target pointer includes a hidden state or a displayed state. For example, in the mouse pointer display state setting instruction, 1 can be used to indicate that it is set to a display state, indicating that the mouse pointer is expected to appear on the display screen, and 0 can be used to indicate that it is set to a hidden state, indicating that the mouse pointer is expected to be hidden on the display screen.
在另一个实施例中,也可由用户输入鼠标指针显示状态设置指令。例如,在应用瘦客户端的展示窗口上设置虚拟功能键,虚拟功能键的按下和弹起状态可分别表示显示状态和隐藏状态,当用户点击虚拟功能键时,则输入了鼠标指针显示状态设置指令,虚拟功能键的按下或弹起状态即为鼠标指针显示状态设置指令中携带的目标指针显示状态。In another embodiment, a mouse pointer display state setting instruction may also be input by the user. For example, if a virtual function key is set on the display window of the application thin client, the pressed and popped states of the virtual function key can respectively indicate the display state and the hidden state. When the user clicks the virtual function key, the mouse pointer display state setting is entered. instruction, the pressed or popped state of the virtual function key is the display state of the target pointer carried in the mouse pointer display state setting instruction.
步骤S106:生成以改变指针显示状态的标识为动作参数的intent消息,将所述目标指针显示状态作为扩展项参数封装到所述intent消息中。Step S106: Generate an intent message with an indicator for changing the display state of the pointer as an action parameter, and encapsulate the display state of the target pointer as an extension parameter into the intent message.
在Android系统中,提供有Intent机制来协助应用间或组件间的交互与通讯,Intent负责对应用中一次操作的动作、动作涉及数据、附加数据进行描述,Android则根据此Intent的描述,负责找到对应的组件,将Intent传递给调用的组件,并完成组件的调用。Intent不仅可用于应用程序之间,也可用于应用程序内部的Activity/Service之间的交互。因此,可以将Intent理解为不同组件之间通信的“媒介”专门提供组件互相调用的相关信息。In the Android system, an Intent mechanism is provided to assist the interaction and communication between applications or components. Intent is responsible for describing the action, data involved in an operation, and additional data of an operation in an application. Android is responsible for finding the corresponding information based on the description of the Intent. Components, pass the Intent to the calling component, and complete the calling of the component. Intent can be used not only between applications, but also for the interaction between Activities/Services within the application. Therefore, Intent can be understood as a "medium" for communication between different components, which specifically provides information about components calling each other.
Intent有以下几个属性:动作(Action),数据(Data),分类(Category),类型(Type),组件(Compent)以及扩展项(Extra)。Intent has the following properties: action (Action), data (Data), classification (Category), type (Type), component (Compent) and extension (Extra).
在本实施例中,通过设置Intent的动作参数,并附加扩展项参数,然后广播给Android系统,即可由Android系统根据Intent消息将鼠标隐藏或显示。具体的,可使用Android系统中预定义的CURSOR_VISIBLE_CHANGED标识作为Intent消息的动作参数,使用布尔类型的数据表示显示状态还是隐藏状态,即可生成用于通知Android系统底层操作鼠标指针显示状态的intent消息。In this embodiment, by setting the action parameter of the Intent, adding the extension item parameter, and then broadcasting to the Android system, the Android system can hide or display the mouse according to the Intent message. Specifically, the predefined CURSOR_VISIBLE_CHANGED flag in the Android system can be used as the action parameter of the Intent message, and Boolean data can be used to indicate whether the status is displayed or hidden, and an intent message for notifying the bottom layer of the Android system to operate the mouse pointer display status can be generated.
例如,开发人员可预定义函数如表1所示:For example, developers can predefine functions as shown in Table 1:
表1Table 1
其中,生成的Intent类型的消息即为intent对象,而该intent对象的动作参数即为CURSOR_VISIBLE_CHANGED字符串构成的标识,传入的布尔(boolean)类型的形参visbile目标指针显示状态,在该函数中,该布尔变量visbile被添加到该intent对象的扩展项参数中。Among them, the generated Intent type message is the intent object, and the action parameter of the intent object is the identifier composed of CURSOR_VISIBLE_CHANGED string, and the boolean (boolean) type parameter visbile target pointer passed in displays the state. In this function , the boolean variable visbile is added to the extension parameter of the intent object.
在本实施例中,当接收到鼠标指针显示状态设置指令后,即可调用该函数:changeCursorVis,并将鼠标指针显示状态设置指令携带的目标指针显示状态作为形参传递给函数并执行,即可生成相应的intent消息。In this embodiment, after receiving the mouse pointer display state setting instruction, the function: changeCursorVis can be called, and the target pointer display state carried by the mouse pointer display state setting instruction is passed to the function as a formal parameter and executed. Generate the corresponding intent message.
步骤S108:将所述intent消息广播至Android系统,由所述Android系统根据所述intent消息的动作参数查找相应的第一接口函数,以所述目标指针显示状态为参数调用所述第一接口函数设置鼠标指针的显示状态。Step S108: broadcast the intent message to the Android system, and the Android system searches for the corresponding first interface function according to the action parameters of the intent message, and calls the first interface function with the display state of the target pointer as a parameter Sets the display state of the mouse pointer.
如表1所示,在上述changeCursorVis函数被调用时,参考图4所示,可通过上下文对象将前述生成的intent消息广播至Android系统,Android系统查找与CURSOR_VISIBLE_CHANGED标识对应的第一接口函数,并将扩展项参数visible的布尔值作为形参传入后调用,即可设置鼠标指针的显示状态。当visible为true时,则显示鼠标指针;当visible为false时,则隐藏鼠标指针。As shown in Table 1, when the above changeCursorVis function is called, as shown in Figure 4, the aforementioned generated intent message can be broadcast to the Android system through the context object, and the Android system searches for the first interface function corresponding to the CURSOR_VISIBLE_CHANGED identifier, and sends The Boolean value of the extension parameter visible is passed in as a formal parameter and called to set the display state of the mouse pointer. When visible is true, the mouse pointer is displayed; when visible is false, the mouse pointer is hidden.
例如,在一个应用场景中,当应用瘦客户端对应的云服务器下发了需要全屏播放的视频时,则同时下发鼠标指针显示状态设置指令,并在其中设置目标指针显示状态为隐藏,当Android设备接收到该鼠标指针显示状态设置指令后,即可生成以CURSOR_VISIBLE_CHANGED标识为动作参数的intent消息,并在扩展项参数中加入visible为false的属性,然后广播给Android系统,当Android系统接收到该intent消息后,即可根据CURSOR_VISIBLE_CHANGED标识对应的第一接口函数将指针设置为隐藏,此时,应用瘦客户端中全屏播放视频时,鼠标指针即被隐藏。而当视频播放完毕后,应用瘦客户端对应的云服务器即可再次下发鼠标指针显示状态设置指令,并在其中设置目标指针显示状态为显示,当Android设备接收到该鼠标指针显示状态设置指令后,即可生成以CURSOR_VISIBLE_CHANGED标识为动作参数的intent消息,并在扩展项参数中加入visible为true的属性,然后广播给Android系统,当Android系统接收到该intent消息后,即可根据CURSOR_VISIBLE_CHANGED标识对应的第一接口函数将指针设置为显示,此时,应用瘦客户端中即恢复显示了鼠标指针,用户即可通过操作鼠标进行下一步操作。这就使得鼠标指针完好地起到了指示用户操作的作用,从而提高了操作的便利性。For example, in an application scenario, when the cloud server corresponding to the application thin client sends a video that needs to be played in full screen, it will send the mouse pointer display state setting instruction at the same time, and set the target pointer display state to hidden. After the Android device receives the mouse pointer display state setting instruction, it can generate an intent message with the CURSOR_VISIBLE_CHANGED flag as the action parameter, and add the attribute of visible to false in the extension parameter, and then broadcast it to the Android system. When the Android system receives After the intent message, the pointer can be set to be hidden according to the first interface function corresponding to the CURSOR_VISIBLE_CHANGED flag. At this time, when the video is played in full screen in the application thin client, the mouse pointer is hidden. And when the video is finished playing, the cloud server corresponding to the application thin client can issue the mouse pointer display state setting instruction again, and set the target pointer display state as display in it, when the Android device receives the mouse pointer display state setting instruction After that, the intent message with the CURSOR_VISIBLE_CHANGED flag as the action parameter can be generated, and the attribute visible is true can be added to the extension parameter, and then broadcast to the Android system. When the Android system receives the intent message, it can correspond to the CURSOR_VISIBLE_CHANGED flag. The first interface function of the function sets the pointer to display. At this time, the mouse pointer is restored to be displayed in the application thin client, and the user can perform the next operation by operating the mouse. This makes the mouse pointer fully play the role of indicating the user's operation, thereby improving the convenience of operation.
在另一个实施例中,为解决传统技术中的Android系统中的应用瘦客户端只能使用系统默认的鼠标指针的设置从而导致的操作便利性不足的技术问题,还提出了一种在应用瘦客户端中重绘鼠标图案的方法,具体的,如图5所示,该方法包括:In another embodiment, in order to solve the technical problem that the application thin client in the Android system in the traditional technology can only use the default mouse pointer settings of the system, resulting in insufficient operation convenience, a thin application in the application thin client is also proposed. The method for redrawing the mouse pattern in the client, specifically, as shown in Figure 5, the method includes:
步骤S202:获取鼠标指针位置信息。Step S202: Acquiring the position information of the mouse pointer.
步骤S204:接收应用瘦客户端对应的服务器下发的素材图像数据。Step S204: receiving the material image data delivered by the server corresponding to the application thin client.
应用瘦客户端即为安装在执行该在应用瘦客户端中设置鼠标显示状态的方法的Android设备上安装的仅具备展示功能或较少功能的应用客户端,应用瘦客户端接收云服务器下发的内容进行展示,但并不对云服务器下发的内容进行处理。The application thin client is the application client installed on the Android device that executes the method of setting the mouse display state in the application thin client, and only has the display function or less functions. The application thin client receives the cloud server. The content of the cloud server is displayed, but the content sent by the cloud server is not processed.
在本实施例中,可通过应用瘦客户端接收所述应用瘦客户端对应的服务器下发的素材图像数据。例如,用户在操作应用瘦客户端进入具有动画或一定图像风格的场景时,需要将用户的鼠标指针的图标修改成与场景相符的图标。例如,在一个幼教的云应用中,小朋友可操作幼教应用的瘦客户端进入动物园场景的学汉字识动物的教学课程,此时需要将鼠标指针的图标修改成卡通风格的箭头。在该应用场景中,则可通过预定义的通信协议向该执行在应用瘦客户端中重绘鼠标图案的方法的Android设备发送卡通风格的素材图像数据(例如,使用bitmap对象封装的卡通图像),后续即可使该执行在应用瘦客户端中重绘鼠标图案的方法的Android设备以此素材图像为基础重绘鼠标指针。In this embodiment, the material image data issued by the server corresponding to the application thin client may be received through the application thin client. For example, when a user operates an application thin client to enter a scene with animation or a certain image style, the icon of the user's mouse pointer needs to be changed to an icon consistent with the scene. For example, in a cloud application for preschool education, children can operate the thin client of the preschool education application to enter the teaching course of learning Chinese characters and animals in the zoo scene. At this time, the icon of the mouse pointer needs to be changed to a cartoon-style arrow. In this application scenario, a cartoon-style material image data (for example, a cartoon image encapsulated by a bitmap object) can be sent to the Android device implementing the method of redrawing the mouse pattern in the application thin client through a predefined communication protocol. Afterwards, the Android device executing the method for redrawing the mouse pattern in the application thin client can redraw the mouse pointer based on the material image.
在另一个实施例中,用于重绘鼠标指针的素材图像也可由操作应用瘦客户端的用户选择设置,具体的,获取鼠标指针位置信息为:In another embodiment, the material image used for redrawing the mouse pointer may also be selected and set by the user who operates the thin client of the application application. Specifically, obtaining the mouse pointer position information is as follows:
通过应用瘦客户端接收输入的鼠标指针重绘指令,获取鼠标指针重绘指令携带的鼠标指针位置信息。The mouse pointer position information carried by the mouse pointer redrawing command is obtained by using the thin client to receive the input mouse pointer redrawing command.
接收应用瘦客户端对应的服务器下发的素材图像数据为:The material image data delivered by the server corresponding to the receiving application thin client is:
获取所述鼠标指针重绘指令对应的素材链接,根据所述素材链接生成访问请求发送至所述应用瘦客户端对应的服务器,接收所述服务器返回的与所述素材链接对应的素材图像数据。Acquire the material link corresponding to the mouse pointer redrawing instruction, generate an access request according to the material link and send it to the server corresponding to the application thin client, and receive the material image data corresponding to the material link returned by the server.
也就是说,应用瘦客户端对应的服务器可下发页面,其中包含多个素材链接url,每个素材链接对应相应的素材图像,用户可通过点击素材链接触发鼠标指针重绘指令,同时根据该素材链接向应用瘦客户端对应的服务器发起请求,应用瘦客户端对应的服务器接收该访问请求之后,则可将素材链接对应的素材图像数据下发给应用瘦客户端。That is to say, the server corresponding to the application thin client can deliver a page, which contains multiple material link urls, and each material link corresponds to a corresponding material image. The user can click the material link to trigger the mouse pointer to redraw the command, and at the same time, according to the The material link initiates a request to the server corresponding to the application thin client, and after receiving the access request, the server corresponding to the application thin client can send the material image data corresponding to the material link to the application thin client.
步骤S206:生成以改变指针显示图像的标识为动作参数的intent消息,将所述鼠标指针位置信息和所述素材图像数据作为扩展项参数封装到所述intent消息中。Step S206: Generate an intent message with the indicator of changing the pointer display image as an action parameter, and encapsulate the mouse pointer position information and the material image data as extension parameters into the intent message.
在Android系统中,提供有Intent机制来协助应用间或组件间的交互与通讯,Intent负责对应用中一次操作的动作、动作涉及数据、附加数据进行描述,Android则根据此Intent的描述,负责找到对应的组件,将Intent传递给调用的组件,并完成组件的调用。Intent不仅可用于应用程序之间,也可用于应用程序内部的Activity/Service之间的交互。因此,可以将Intent理解为不同组件之间通信的“媒介”专门提供组件互相调用的相关信息。In the Android system, an Intent mechanism is provided to assist the interaction and communication between applications or components. Intent is responsible for describing the action, data involved in an operation, and additional data of an operation in an application. Android is responsible for finding the corresponding information based on the description of the Intent. Components, pass the Intent to the calling component, and complete the calling of the component. Intent can be used not only between applications, but also for the interaction between Activities/Services within the application. Therefore, Intent can be understood as a "medium" for communication between different components, which specifically provides information about components calling each other.
Intent有以下几个属性:动作(Action),数据(Data),分类(Category),类型(Type),组件(Compent)以及扩展项(Extra)。Intent has the following properties: action (Action), data (Data), classification (Category), type (Type), component (Compent) and extension (Extra).
在本实施例中,通过设置Intent的动作参数,并附加扩展项参数,然后广播给Android系统,即可由Android系统根据Intent消息将鼠标重绘。具体的,可使用Android系统中预定义的MOUSE_ICON_CHANGED标识作为Intent消息的动作参数,使用当前鼠标的鼠标指针位置信息以及服务器下发的素材图像数据作为扩展项参数生成用于通知Android系统底层重绘鼠标指针的intent消息。In this embodiment, by setting the action parameter of the Intent and adding the extension parameter, and then broadcasting to the Android system, the Android system can redraw the mouse according to the Intent message. Specifically, the predefined MOUSE_ICON_CHANGED flag in the Android system can be used as the action parameter of the Intent message, and the current mouse pointer position information and the material image data sent by the server can be used as the extension parameter generation to notify the bottom layer of the Android system to redraw the mouse. The intent message of the pointer.
例如,开发人员可预定义函数如表2所示:For example, developers can predefine functions as shown in Table 2:
表2Table 2
其中,生成的Intent类型的消息即为intent对象,而该intent对象的动作参数即为MOUSE_ICON_CHANGED字符串构成的标识,传入的位图(Bitmap)类型的形参bit即为素材图像数据,数字类型的x和y分别表示鼠标当前的x轴位置和y轴位置,在该函数中,该位图Bitmap类型的数据和鼠标的位置(x,y)被添加到该intent对象的扩展项参数中。Among them, the generated message of the Intent type is the intent object, and the action parameter of the intent object is the identifier composed of the MOUSE_ICON_CHANGED string, and the bitmap (Bitmap) type parameter passed in is the material image data, and the number type x and y represent the current x-axis position and y-axis position of the mouse respectively. In this function, the data of the bitmap type Bitmap and the mouse position (x, y) are added to the extension parameter of the intent object.
在本实施例中,当接收到鼠标指针显示状态设置指令后,即可调用该函数:changeCursorVis,并将服务器下发的位图类型的素材图像数据和获取到的当前的鼠标位置作为形参传递给函数并执行,即可生成相应的intent消息。In this embodiment, after receiving the mouse pointer display state setting instruction, the function: changeCursorVis can be called, and the material image data of the bitmap type sent by the server and the obtained current mouse position are passed as formal parameters Give the function and execute it to generate the corresponding intent message.
步骤S208:将所述intent消息广播至Android系统,由所述Android系统根据所述intent消息的动作参数查找相应的第二接口函数,以所述鼠标指针位置信息和所述素材图像数据为参数调用所述第二接口函数设置鼠标指针的显示状态。Step S208: broadcast the intent message to the Android system, and the Android system searches for a corresponding second interface function according to the action parameters of the intent message, and calls it with the mouse pointer position information and the material image data as parameters The second interface function sets the display state of the mouse pointer.
如表2所示,在上述changeCursorVis函数被调用时,参考图6所示,可通过上下文对象将前述生成的intent消息广播至Android系统,Android系统查找与MOUSE_ICON_CHANGED标识对应的第一接口函数,并将扩展项参数位图Bitmap类型的素材图像和鼠标位置的x和y值作为形参传入后调用,即可设置鼠标指针的重绘图案和重绘位置。例如,当鼠标位置为(0,0)时,素材图像数据若为卡通图,则在显示界面的(0,0)位置绘制该卡通图,用于替代鼠标指针。As shown in Table 2, when the above changeCursorVis function is called, as shown in Figure 6, the aforementioned generated intent message can be broadcast to the Android system through the context object, and the Android system searches for the first interface function corresponding to the MOUSE_ICON_CHANGED identifier, and sends Extension Parameter Bitmap The material image of the Bitmap type and the x and y values of the mouse position are passed in as formal parameters and called to set the redrawing pattern and redrawing position of the mouse pointer. For example, when the mouse position is (0,0), if the material image data is a cartoon image, the cartoon image is drawn at the (0,0) position of the display interface to replace the mouse pointer.
例如,在一个应用场景中,当应用瘦客户端对应的云服务器下发了卡通类型的素材图像数据后,Android设备接收到该素材图像数据,并获取到当前鼠标指针的位置,即可生成以MOUSE_ICON_CHANGED标识为动作参数的intent消息,并在扩展项参数中加入bitmap为素材图像数据,鼠标位置为(x,y)的属性,然后广播给Android系统,当Android系统接收到该intent消息后,即可根据MOUSE_ICON_CHANGED标识对应的第一接口函数将在显示界面的(x,y)位置绘制该bitmap图像,此时,应用瘦客户端中的鼠标指针即被重绘为该bitmap图像。这就使得鼠标指针在不同显示背景中能够以更加醒目的效果进行展示,从而完好地起到了指示用户操作的作用,从而提高了操作的便利性。For example, in an application scenario, after the cloud server corresponding to the application thin client sends the material image data of cartoon type, the Android device receives the material image data and obtains the current position of the mouse pointer to generate the following MOUSE_ICON_CHANGED is the intent message identified as the action parameter, and the bitmap is added to the extension parameter as the material image data, and the mouse position is the attribute of (x, y), and then broadcast to the Android system. When the Android system receives the intent message, that is According to the first interface function corresponding to the MOUSE_ICON_CHANGED flag, the bitmap image will be drawn at the (x, y) position of the display interface. At this time, the mouse pointer in the application thin client is redrawn as the bitmap image. This enables the mouse pointer to be displayed in a more eye-catching effect in different display backgrounds, thereby fully playing the role of indicating user operations, thereby improving the convenience of operation.
此外,为解决传统技术中的Android系统中的应用瘦客户端只能使用系统默认的鼠标指针的设置从而导致的操作便利性不足的技术问题,在本实施例中,还提出了一种在应用瘦客户端中设置鼠标显示状态的装置,具体的,如图7所示,上述在应用瘦客户端中设置鼠标显示状态的装置包括鼠标指针显示状态设置指令接收模块102、目标指针显示状态获取模块104、Intent消息生成模块106以及鼠标指针的显示状态设置模块108,其中:In addition, in order to solve the technical problem that the application thin client in the Android system can only use the system default mouse pointer setting in the traditional technology, which results in insufficient operation convenience, in this embodiment, a method is also proposed in the application The device for setting the mouse display state in the thin client, specifically, as shown in Figure 7, the above-mentioned device for setting the mouse display state in the application thin client includes a mouse pointer display state setting
鼠标指针显示状态设置指令接收模块102,用于通过应用瘦客户端接收鼠标指针显示状态设置指令;The mouse pointer display state setting
目标指针显示状态获取模块104,用于获取所述鼠标指针显示状态设置指令携带的目标指针显示状态,所述目标指针显示状态包括隐藏状态或显示状态;A target pointer display
Intent消息生成模块106,用于生成以改变指针显示状态的标识为动作参数的intent消息,将所述目标指针显示状态作为扩展项参数封装到所述intent消息中;The Intent
鼠标指针的显示状态设置模块108,用于将所述intent消息广播至Android系统,由所述Android系统根据所述intent消息的动作参数查找相应的第一接口函数,以所述目标指针显示状态为参数调用所述第一接口函数设置鼠标指针的显示状态。The display
可选的,在一个实施例中,上述改变指针显示状态的标识为Android系统中定义的CURSOR_VISIBLE_CHANGED标识。Optionally, in one embodiment, the indicator for changing the display state of the pointer is the CURSOR_VISIBLE_CHANGED indicator defined in the Android system.
可选的,在一个实施例中,上述鼠标指针显示状态设置指令接收模块102还用于通过所述应用瘦客户端接收所述应用瘦客户端对应的服务器下发的鼠标指针显示状态设置指令。Optionally, in one embodiment, the mouse pointer display state setting
在另一个实施例中,为解决传统技术中的Android系统中的应用瘦客户端只能使用系统默认的鼠标指针的设置从而导致的操作便利性不足的技术问题,还提出了一种在应用瘦客户端中重绘鼠标图案的装置,具体的,如图8所示,上述在应用瘦客户端中重绘鼠标图案的装置包括鼠标指针位置信息获取模块202、素材图像数据接收模块204、Intent消息生成模块206以及鼠标指针的显示状态设置模块208,其中:In another embodiment, in order to solve the technical problem that the application thin client in the Android system in the traditional technology can only use the default mouse pointer settings of the system, resulting in insufficient operation convenience, a thin application in the application thin client is also proposed. The device for redrawing the mouse pattern in the client, specifically, as shown in FIG. The display
鼠标指针位置信息获取模块202,用于获取鼠标指针位置信息;A mouse pointer position
素材图像数据接收模块204,用于接收应用瘦客户端对应的服务器下发的素材图像数据;The material image
Intent消息生成模块206,用于生成以改变指针显示图像的标识为动作参数的intent消息,将所述鼠标指针位置信息和所述素材图像数据作为扩展项参数封装到所述intent消息中;Intent
鼠标指针的显示状态设置模块208,用于将所述intent消息广播至Android系统,由所述Android系统根据所述intent消息的动作参数查找相应的第二接口函数,以所述鼠标指针位置信息和所述素材图像数据为参数调用所述第二接口函数设置鼠标指针的显示状态。The display
可选的,在一个实施例中,上述鼠标指针位置信息获取模块202还用于通过应用瘦客户端接收输入的鼠标指针重绘指令,获取鼠标指针重绘指令携带的鼠标指针位置信息;素材图像数据接收模块204还用于获取所述鼠标指针重绘指令对应的素材链接,根据所述素材链接生成访问请求发送至所述应用瘦客户端对应的服务器,接收所述服务器返回的与所述素材链接对应的素材图像数据。Optionally, in one embodiment, the above-mentioned mouse pointer position
可选的,在一个实施例中,改变指针显示图像的标识为Android系统中定义的MOUSE_ICON_CHANGED标识。Optionally, in one embodiment, the identifier for changing the display image of the pointer is the MOUSE_ICON_CHANGED identifier defined in the Android system.
采用了上述在应用瘦客户端中设置鼠标显示状态方法和在应用瘦客户端中重绘鼠标图案的方法之后,Android设备上运行的云服务的应用瘦客户端可向Android设备发送包含有指示Android设备显示鼠标指针、隐藏鼠标指针和重绘鼠标指针的消息,并在消息中附加参数。Android设备上运行的云服务的应用瘦客户端可根据消息生成相应的intent消息并广播给Android系统,Android系统通过解析该intent消息,并根据intent消息中包含的动作参数调用相应的接口函数来显示、隐藏或重绘鼠标指针,这就使得鼠标指针可被云服务的应用瘦客户端个性化定制,能够更加醒目地指示用户进行相应的操作,从而提高了操作的便利性。After adopting the above method of setting the mouse display state in the application thin client and the method of redrawing the mouse pattern in the application thin client, the application thin client of the cloud service running on the Android device can send an Android device containing an instruction Android The device displays messages for the mouse pointer, hides the mouse pointer, and redraws the mouse pointer, and appends parameters to the messages. The application thin client of the cloud service running on the Android device can generate a corresponding intent message according to the message and broadcast it to the Android system. The Android system parses the intent message and calls the corresponding interface function according to the action parameters contained in the intent message to display , hiding or redrawing the mouse pointer, which enables the mouse pointer to be personalized and customized by the application thin client of the cloud service, and can more conspicuously instruct the user to perform corresponding operations, thereby improving the convenience of operation.
在一个实施例中,如图9所示,图9展示了一种运行上述在应用瘦客户端中设置鼠标显示状态的方法以及上述在应用瘦客户端中重绘鼠标图案的方法的基于冯诺依曼体系的计算机系统的终端。该计算机系统可以是智能手机、平板电脑、掌上电脑、笔记本电脑或个人电脑等终端设备。具体的,可包括通过系统总线连接的外部输入接口1001、处理器1002、存储器1003和输出接口1004。其中,外部输入接口1001可选的可至少包括网络接口10012。存储器1003可包括外存储器10032(例如硬盘、光盘或软盘等)和内存储器10034。输出接口1004可至少包括显示屏10042等设备。In one embodiment, as shown in FIG. 9, FIG. 9 shows a vonno-based method for running the above-mentioned method for setting the mouse display state in the application thin client and the above-mentioned method for redrawing the mouse pattern in the application thin client The terminal of the Iman system computer system. The computer system can be a terminal device such as a smart phone, a tablet computer, a palmtop computer, a notebook computer or a personal computer. Specifically, it may include an
在本实施例中,本方法的运行基于计算机程序,该计算机程序的程序文件存储于前述基于冯诺依曼体系的计算机系统的外存储器10032中,在运行时被加载到内存储器10034中,然后被编译为机器码之后传递至处理器1002中执行,从而使得基于冯诺依曼体系的计算机系统中形成逻辑上的鼠标指针显示状态设置指令接收模块102、目标指针显示状态获取模块104、Intent消息生成模块106、鼠标指针的显示状态设置模块108以及鼠标指针位置信息获取模块202、素材图像数据接收模块204、Intent消息生成模块206以及鼠标指针的显示状态设置模块208。且在上述在应用瘦客户端中设置鼠标显示状态的方法以及上述在应用瘦客户端中重绘鼠标图案的方法执行过程中,输入的参数均通过外部输入接口1001接收,并传递至存储器1003中缓存,然后输入到处理器1002中进行处理,处理的结果数据或缓存于存储器1003中进行后续地处理,或被传递至输出接口1004进行输出。In this embodiment, the operation of this method is based on a computer program, and the program file of the computer program is stored in the
具体的,在本实施例中,上述处理器1002还用于执行:Specifically, in this embodiment, the above-mentioned
通过应用瘦客户端接收鼠标指针显示状态设置指令;Receive a mouse pointer display state setting instruction through the application thin client;
获取所述鼠标指针显示状态设置指令携带的目标指针显示状态,所述目标指针显示状态包括隐藏状态或显示状态;Obtaining the display state of the target pointer carried by the mouse pointer display state setting instruction, where the display state of the target pointer includes a hidden state or a displayed state;
生成以改变指针显示状态的标识为动作参数的intent消息,将所述目标指针显示状态作为扩展项参数封装到所述intent消息中;Generating an intent message with an identifier for changing the display state of the pointer as an action parameter, and encapsulating the display state of the target pointer as an extension parameter into the intent message;
将所述intent消息广播至Android系统,由所述Android系统根据所述intent消息的动作参数查找相应的第一接口函数,以所述目标指针显示状态为参数调用所述第一接口函数设置鼠标指针的显示状态。The intent message is broadcast to the Android system, and the Android system searches for the corresponding first interface function according to the action parameters of the intent message, and calls the first interface function as a parameter to set the mouse pointer with the display state of the target pointer display status.
在一个可选的实施例中,上述处理器1002还用于执行:通过所述应用瘦客户端接收所述应用瘦客户端对应的服务器下发的鼠标指针显示状态设置指令。In an optional embodiment, the
此外,在另一个实施例中,上述处理器1002还用于执行:In addition, in another embodiment, the above-mentioned
获取鼠标指针位置信息;Get the mouse pointer position information;
接收应用瘦客户端对应的服务器下发的素材图像数据;Receive the material image data sent by the server corresponding to the application thin client;
生成以改变指针显示图像的标识为动作参数的intent消息,将所述鼠标指针位置信息和所述素材图像数据作为扩展项参数封装到所述intent消息中;Generating an intent message with the identifier of changing the pointer display image as an action parameter, and encapsulating the mouse pointer position information and the material image data as extension parameters into the intent message;
将所述intent消息广播至Android系统,由所述Android系统根据所述intent消息的动作参数查找相应的第二接口函数,以所述鼠标指针位置信息和所述素材图像数据为参数调用所述第二接口函数设置鼠标指针的显示状态。The intent message is broadcast to the Android system, and the Android system searches for the corresponding second interface function according to the action parameter of the intent message, and calls the second interface function with the mouse pointer position information and the material image data as parameters. The second interface function sets the display state of the mouse pointer.
可选的,在一个实施例中,上述处理器1002还用于执行通过应用瘦客户端接收输入的鼠标指针重绘指令,获取鼠标指针重绘指令携带的鼠标指针位置信息;获取所述鼠标指针重绘指令对应的素材链接,根据所述素材链接生成访问请求发送至所述应用瘦客户端对应的服务器,接收所述服务器返回的与所述素材链接对应的素材图像数据。Optionally, in one embodiment, the above-mentioned
以上所揭露的仅为本发明较佳实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。The above disclosures are only preferred embodiments of the present invention, and certainly cannot limit the scope of rights of the present invention. Therefore, equivalent changes made according to the claims of the present invention still fall within the scope of the present invention.
Claims (24)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010396796.2A CN111708533B (en) | 2016-08-31 | 2016-08-31 | Method and device for setting mouse display state in application thin client |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010396796.2A CN111708533B (en) | 2016-08-31 | 2016-08-31 | Method and device for setting mouse display state in application thin client |
| CN201610799599.9A CN106383705B (en) | 2016-08-31 | 2016-08-31 | Method and device for setting mouse display state in application thin client |
Related Parent Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201610799599.9A Division CN106383705B (en) | 2016-08-31 | 2016-08-31 | Method and device for setting mouse display state in application thin client |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN111708533A CN111708533A (en) | 2020-09-25 |
| CN111708533B true CN111708533B (en) | 2023-01-06 |
Family
ID=57937985
Family Applications (2)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010396796.2A Active CN111708533B (en) | 2016-08-31 | 2016-08-31 | Method and device for setting mouse display state in application thin client |
| CN201610799599.9A Active CN106383705B (en) | 2016-08-31 | 2016-08-31 | Method and device for setting mouse display state in application thin client |
Family Applications After (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201610799599.9A Active CN106383705B (en) | 2016-08-31 | 2016-08-31 | Method and device for setting mouse display state in application thin client |
Country Status (1)
| Country | Link |
|---|---|
| CN (2) | CN111708533B (en) |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109669591A (en) * | 2018-11-21 | 2019-04-23 | 芜湖智久机器人有限公司 | A kind of full screen display system, method and storage medium for dispatching and monitoring software |
| CN110781425B (en) * | 2019-10-25 | 2022-09-20 | 北京创鑫旅程网络技术有限公司 | Display method, device and equipment of mobile terminal H5 page and storage medium |
| CN113941141A (en) * | 2021-10-18 | 2022-01-18 | 网易(杭州)网络有限公司 | Cloud game-based mouse control method and device, storage medium, and electronic device |
| CN114296588A (en) * | 2021-12-27 | 2022-04-08 | 珠海豹趣科技有限公司 | Cloud-based mouse pointer skin replacement method and device and electronic equipment |
Family Cites Families (17)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7028025B2 (en) * | 2000-05-26 | 2006-04-11 | Citrix Sytems, Inc. | Method and system for efficiently reducing graphical display data for transmission over a low bandwidth transport protocol mechanism |
| KR100780437B1 (en) * | 2006-08-22 | 2007-11-29 | 삼성전자주식회사 | Pointer control method of a mobile terminal having a pointing device |
| US20110157196A1 (en) * | 2005-08-16 | 2011-06-30 | Exent Technologies, Ltd. | Remote gaming features |
| CN101295264B (en) * | 2007-04-24 | 2010-05-26 | 珠海金山软件股份有限公司 | Apparatus and method for simultaneously displaying mouse in multi-region |
| US9189124B2 (en) * | 2009-04-15 | 2015-11-17 | Wyse Technology L.L.C. | Custom pointer features for touch-screen on remote client devices |
| US9553953B2 (en) * | 2009-04-15 | 2017-01-24 | Dell Products L.P. | Method and apparatus for extending capabilities of a virtualization domain to support features available in a normal desktop application |
| JP5067409B2 (en) * | 2009-09-28 | 2012-11-07 | カシオ計算機株式会社 | Thin client system and program |
| CN103297828A (en) * | 2012-03-05 | 2013-09-11 | 深圳市快播科技有限公司 | Method and system for operating set top box with simulation mouse of mobile terminal |
| JP5388246B1 (en) * | 2012-08-31 | 2014-01-15 | Necシステムテクノロジー株式会社 | INPUT DISPLAY CONTROL DEVICE, THIN CLIENT SYSTEM, INPUT DISPLAY CONTROL METHOD, AND PROGRAM |
| CN102981867B (en) * | 2012-10-31 | 2015-12-02 | 山东大学 | A kind of thin client desktop arranging system based on file operation and aligning method thereof |
| CN103412701B (en) * | 2012-11-01 | 2016-08-31 | 华为技术有限公司 | remote desktop image processing method and device |
| CN104067202B (en) * | 2012-12-31 | 2016-12-28 | 华为技术有限公司 | Method, device and system for mouse synchronization |
| CN105227603A (en) * | 2014-06-23 | 2016-01-06 | 中兴通讯股份有限公司 | virtual desktop image processing method, device, virtual desktop server and thin terminal |
| CN104331319B (en) * | 2014-11-14 | 2017-11-17 | 华为技术有限公司 | The management method and device of virtual desktop example |
| CN104951301B (en) * | 2015-06-10 | 2018-11-23 | 腾讯科技(北京)有限公司 | The user interface process method, apparatus and system of home media playback equipment |
| CN105892864B (en) * | 2016-03-31 | 2018-01-19 | 武汉斗鱼网络科技有限公司 | A kind of widget interaction method and device based on Android system player |
| CN105867753B (en) * | 2016-04-05 | 2019-03-15 | 福建天晴数码有限公司 | The method and system of android system browser split screen |
-
2016
- 2016-08-31 CN CN202010396796.2A patent/CN111708533B/en active Active
- 2016-08-31 CN CN201610799599.9A patent/CN106383705B/en active Active
Also Published As
| Publication number | Publication date |
|---|---|
| CN111708533A (en) | 2020-09-25 |
| CN106383705B (en) | 2020-05-08 |
| CN106383705A (en) | 2017-02-08 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11778430B2 (en) | Layers in messaging applications | |
| TWI604375B (en) | Methods for screen sharing and apparatuses using the same | |
| CN110795195A (en) | Web page rendering method, device, electronic device and storage medium | |
| US10637804B2 (en) | User terminal apparatus, communication system, and method of controlling user terminal apparatus which support a messenger service with additional functionality | |
| JP2018531454A (en) | Content integration in non-browser applications | |
| US20210216263A1 (en) | Data processing method and electronic terminal | |
| WO2019047189A1 (en) | Message display method and device and terminal | |
| JP2018531454A6 (en) | Content integration in non-browser applications | |
| CN113268212A (en) | Screen projection method and device, storage medium and electronic equipment | |
| CN105975393B (en) | Page display detection method and system | |
| CN111708533B (en) | Method and device for setting mouse display state in application thin client | |
| CN111240774B (en) | Dynamic wallpaper generation method, device, storage medium and electronic equipment | |
| WO2020143159A1 (en) | User interface processing method and device | |
| CN111127469A (en) | Thumbnail display method, device, storage medium and terminal | |
| CN103514924B (en) | Method, device and player for playing video in Widget of mobile terminal | |
| JP2025521017A (en) | Method, device and electronic device for processing instant messaging session information | |
| CN115562779A (en) | Media information processing method, device, equipment and storage medium | |
| US20240089223A1 (en) | Information display method and apparatus, and electronic device | |
| CN106603851A (en) | Communication shortcut realizing method and electronic equipment | |
| CN113419650B (en) | Data moving method, device, storage medium and electronic device | |
| CN108415746A (en) | Application interface display method and device, storage medium and electronic equipment | |
| CN110785982A (en) | Enabling third parties to add effects to an application | |
| CN107092468A (en) | A kind of message display method and device | |
| CN112612633A (en) | Inter-process communication method, device, storage medium and terminal | |
| CN115048191A (en) | Method for switching display equipment by fast application and related equipment |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| TA01 | Transfer of patent application right | ||
| TA01 | Transfer of patent application right |
Effective date of registration: 20220216 Address after: 550025 Huawei cloud data center, jiaoxinggong Road, Qianzhong Avenue, Gui'an New District, Guiyang City, Guizhou Province Applicant after: Huawei Cloud Computing Technologies Co.,Ltd. Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen Applicant before: HUAWEI TECHNOLOGIES Co.,Ltd. |
|
| GR01 | Patent grant | ||
| GR01 | Patent grant |