CN106383705B - 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 PDF

Info

Publication number
CN106383705B
CN106383705B CN201610799599.9A CN201610799599A CN106383705B CN 106383705 B CN106383705 B CN 106383705B CN 201610799599 A CN201610799599 A CN 201610799599A CN 106383705 B CN106383705 B CN 106383705B
Authority
CN
China
Prior art keywords
display state
thin client
mouse
pointer
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
Application number
CN201610799599.9A
Other languages
Chinese (zh)
Other versions
CN106383705A (en
Inventor
杨乐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Cloud Computing Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201610799599.9A priority Critical patent/CN106383705B/en
Priority to CN202010396796.2A priority patent/CN111708533B/en
Publication of CN106383705A publication Critical patent/CN106383705A/en
Application granted granted Critical
Publication of CN106383705B publication Critical patent/CN106383705B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The embodiment of the invention discloses a method and a device for setting a mouse display state in an application thin client, wherein the method comprises the following steps: receiving a mouse pointer display state setting instruction through an application thin client; acquiring a target pointer display state carried by the mouse pointer display state setting instruction, wherein the target pointer display state comprises a hidden state or a display state; generating an intent message with an identifier for changing the display state of a pointer as an action parameter, and packaging the display state of the target pointer as an extension item parameter into the intent message; broadcasting the intent message to an Android system, searching a corresponding first interface function by the Android system according to an action parameter of the intent message, and calling the first interface function to set a display state of a mouse pointer by taking the display state of the target pointer as a parameter. By adopting the invention, the convenience of operation can be improved.

Description

Method and device for setting mouse display state in application thin client
Technical Field
The invention relates to the technical field of communication, in particular to a method and a device for setting a mouse display state in an application thin client.
Background
Android is a Linux-based operating system with free and open source codes, is mainly used for mobile devices, and is led and developed by Google corporation and open mobile phone alliance. With the popularization of the Android system, more and more people start to use the Android devices. With the development of the virtualization technology, more users develop and use a cloud office environment, and Android manufacturers design some terminal devices, such as Andorid TC boxes, which are connected to the cloud office environment and run an Android operating system, in order to adapt to the cloud office environment. The terminal devices running the Android operating system based on the cloud office environment can be connected with a mouse, a keyboard and a display, and as shown in fig. 1, a user can use the cloud service on a low-configuration client machine only by installing a thin client application of the cloud office service on the terminal devices.
However, the thin client of the cloud office service generally only implements the functions of protocol parsing and display with the server device of the cloud office service on the thin client of the cloud service-based application due to the poor hardware performance of the deployed terminal device, and does not have strong capability of locally running programs, therefore, the thin application client can only use the default mouse pointer of the Android system on the installed terminal device, and cannot draw the display state (hidden or displayed) or the pointer pattern and shape, therefore, in some scenes needing to hide the mouse pointer, such as scenes playing videos in a full screen mode, the mouse pointer cannot be hidden, the pointer pattern of the mouse cannot be changed according to the scenes displaying contents of the thin client, this makes the mouse pointer unable to function as an indication for the user's operation, thereby posing a problem of insufficient convenience of operation.
Disclosure of Invention
Based on this, in order to solve the technical problem that the application thin client in the Android system in the conventional technology is insufficient in operation convenience due to the fact that only the default mouse pointer setting can be used by the application thin client, in a first aspect of the present invention, a method for setting a mouse display state in the application thin client is provided.
A method of setting a mouse display state in an application thin client, comprising:
receiving a mouse pointer display state setting instruction through an application thin client;
acquiring a target pointer display state carried by the mouse pointer display state setting instruction, wherein the target pointer display state comprises a hidden state or a display state;
generating an intent message with an identifier for changing the display state of a pointer as an action parameter, and packaging the display state of the target pointer as an extension item parameter into the intent message;
broadcasting the intent message to an Android system, searching a corresponding first interface function by the Android system according to an action parameter of the intent message, and calling the first interface function to set a display state of a mouse pointer by taking the display state of the target pointer as a parameter.
Optionally, in an embodiment, the identifier for changing the display state of the pointer is a curser _ VISIBLE _ CHANGED identifier defined in the Android system.
Optionally, in an embodiment, the receiving, by the thin client, a mouse pointer display state setting instruction includes:
and receiving a mouse pointer display state setting instruction sent by a server corresponding to the application thin client through the application thin client.
In addition, in order to solve the technical problem that the application thin client in the Android system in the conventional technology can only use the default setting of the mouse pointer, so that the operation convenience is insufficient, in a second aspect of the invention, a device for setting the mouse display state in the application thin client is provided.
An apparatus for setting a mouse display state in an application thin client, comprising:
the mouse pointer display state setting instruction receiving module is used for receiving a mouse pointer display state setting instruction through the application thin client;
a target pointer display state acquisition module, configured to acquire a 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 display state;
the Intent message generating module is used for generating an Intent message with an identifier for changing the display state of the pointer as an action parameter, and packaging the display state of the target pointer as an extension parameter into the Intent message;
and the display state setting module of the mouse pointer is used for broadcasting the intent message to an Android system, searching a corresponding first interface function by the Android system according to the action parameter of the intent message, and calling the first interface function to set the display state of the mouse pointer by taking the display state of the target pointer as a parameter.
Optionally, in an embodiment, the identifier for changing the display state of the pointer is a curser _ VISIBLE _ CHANGED identifier defined in the Android system.
Optionally, in an embodiment, the mouse pointer display state setting instruction receiving module is further configured to receive, by the application thin client, a mouse pointer display state setting instruction issued by a server corresponding to the application thin client.
In order to solve the technical problem that the application thin client in the Android system in the prior art can only use the default setting of the mouse pointer, so that the operation convenience is insufficient, in the third aspect of the invention, a method for redrawing the mouse pattern in the application thin client is also provided.
A method of redrawing a mouse pattern in an application thin client, comprising:
acquiring position information of a mouse pointer;
receiving material image data sent by a server corresponding to the application thin client;
generating an intent message with the identifier of the changed pointer display image as an action parameter, and packaging the mouse pointer position information and the material image data into the intent message as an extension parameter;
broadcasting the intent message to an Android system, searching a corresponding second interface function by the Android system according to an action parameter of the intent message, and calling the second interface function to set a display state of a mouse pointer by using the position information of the mouse pointer and the material image data as parameters.
Optionally, in an embodiment, the obtaining of the position information of the mouse pointer is:
receiving an input mouse pointer redrawing instruction through the thin client, and acquiring mouse pointer position information carried by the mouse pointer redrawing instruction;
the receiving of the material image data sent by the server corresponding to the application thin client comprises the following steps:
and acquiring a material link corresponding to the mouse pointer redrawing instruction, generating an access request according to the material link, sending the access request to a server corresponding to the application thin client, and receiving material image data corresponding to the material link returned by the server.
Optionally, in an embodiment, the identifier of the pointer display image is a motion _ ICON _ CHANGED identifier defined in an Android system.
In order to solve the technical problem that the application thin client in the Android system in the prior art can only use the default setting of the mouse pointer, so that the operation convenience is insufficient, in the fourth aspect of the invention, the invention also provides a device for redrawing the mouse pattern in the application thin client.
An apparatus for redrawing a mouse pattern in an application thin client, comprising:
the mouse pointer position information acquisition module is used for acquiring the mouse pointer position information;
the material image data receiving module is used for receiving material image data sent by a server corresponding to the application thin client;
the Intent message generating module is used for generating an Intent message with the identifier of the pointer display image changed as an action parameter, and packaging the mouse pointer position information and the material image data as extension parameters into the Intent message;
and the display state setting module of the mouse pointer is used for broadcasting the intent message to an Android system, the Android system searches a corresponding second interface function according to the action parameter of the intent message, and the Android system calls the second interface function to set the display state of the mouse pointer by taking the position information of the mouse pointer and the material image data as parameters.
Optionally, in an embodiment, the mouse pointer position information obtaining module is further configured to receive an input mouse pointer redrawing instruction through the thin client, and obtain mouse pointer position information carried by the mouse pointer redrawing instruction;
the material image data receiving module is further used for obtaining a material link corresponding to the mouse pointer redrawing instruction, generating an access request according to the material link, sending the access request to a server corresponding to the application thin client, and receiving material image data corresponding to the material link and returned by the server.
Optionally, in an embodiment, the identifier of the pointer display image is a motion _ ICON _ CHANGED identifier defined in an Android system.
The embodiment of the invention has the following beneficial effects:
after 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 are adopted, the application thin client of the cloud service running on the Android device can send a message containing an instruction for the Android device to display the mouse pointer, hide the mouse pointer and redraw the mouse pointer to the Android device, and parameters are added to the message. The method comprises the steps that the thin client side of the cloud service running on the Android device can generate a corresponding intent message according to the message and broadcast the intent message to an Android system, the Android system analyzes the intent message and calls a corresponding interface function according to action parameters contained in the intent message to display, hide or redraw a mouse pointer, so that the mouse pointer can be customized individually by the thin client side of the cloud service, corresponding operation can be instructed to a user more remarkably, and convenience in operation is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Wherein:
fig. 1 is an architecture diagram of a cloud service platform based on an Android terminal in the prior art;
FIG. 2 is a schematic diagram of displaying, hiding, and redrawing a mouse pattern in an application thin client according to an embodiment of the present invention;
fig. 3 is a flowchart of a method for setting a mouse display state in a thin client application according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a method for setting a mouse display state in an application thin client according to an embodiment of the present invention;
FIG. 5 is a flowchart illustrating a method for redrawing a mouse pattern in an application thin client according to an embodiment of the present invention;
FIG. 6 is a schematic diagram illustrating a method for redrawing a mouse pattern in an application thin client according to an embodiment of the present invention;
FIG. 7 is a diagram illustrating an apparatus for setting a mouse display state in an application thin client according to an embodiment of the present invention;
FIG. 8 is a diagram illustrating an apparatus for redrawing a mouse pattern in a thin client application according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a computer device running the aforementioned method for setting a mouse display state in an application thin client and the method for redrawing a mouse pattern in the application thin client according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to solve the technical problem that in the prior art, the application thin client in the Android system only can use the default setting of a mouse pointer, so that the operation convenience is insufficient, in one embodiment, a method for setting a mouse display state in the application thin client and a method for redrawing a mouse pattern in the application thin client are particularly provided. The above method is performed on the basis of a computer program which is executable on a computer device based on the von neumann architecture with the Android system as operating system. The computer equipment can be Android equipment such as an Android TV box and an Android TC box which can be connected with a mouse.
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 fig. 2, the Android device can receive a message or a command issued by a cloud office application or other cloud applications operated by a server on a cloud service platform, and the message or the command is analyzed through an SDKAPI on the Android device, so that the operations of displaying a mouse pointer on a display terminal and hiding the mouse pointer or redrawing the mouse pointer are realized.
Specifically, as shown in fig. 3, the method for setting a mouse display state in an application thin client includes:
step S102: and receiving a mouse pointer display state setting instruction through the application thin client.
Step S104: and acquiring a target pointer display state carried by the mouse pointer display state setting instruction, wherein the target pointer display state comprises a hidden state or a display state.
The application thin client is an application client which is installed on Android equipment executing the method for setting the mouse display state in the application thin client and only has a display function or a few functions, receives and displays content issued by the cloud server, and does not process the content issued by the cloud server.
In this embodiment, a mouse pointer display state setting instruction issued by a server corresponding to an application thin client may be received by the application thin client. For example, when a user operates the application thin client to enter a full-screen playing PPT or a full-screen playing video, a mouse pointer of the user needs to be hidden, a mouse pointer display state setting instruction may be sent to the Android device executing the method for setting the mouse display state in the application thin client through a predefined communication protocol, where the instruction may include a target pointer display state, and the target pointer display state includes a hidden state or a display state. For example, in the mouse pointer display state setting instruction, a setting to a display state may be indicated by 1, indicating that the mouse pointer is desired to appear on the display screen, and a setting to a hidden state may be indicated by 0, indicating that the mouse pointer is desired 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, a virtual function key is set on a display window of the thin application client, the pressed and popped states of the virtual function key can respectively represent a display state and a hidden state, when a user clicks the virtual function key, a mouse pointer display state setting instruction is input, and the pressed or popped state of the virtual function key is a target pointer display state carried in the mouse pointer display state setting instruction.
Step S106: and generating an intent message with the identifier for changing the display state of the pointer as an action parameter, and packaging the display state of the target pointer as an extension item parameter into the intent message.
In an Android system, an Intent mechanism is provided to assist interaction and communication between applications or components, wherein the Intent is responsible for describing actions and action related data and additional data of one operation in the applications, and the Android is responsible for finding a corresponding component according to the description of the Intent, transmitting the Intent to a called component and completing calling of the component. Intent can be used not only between applications, but also for interactions between activities/services within applications. Accordingly, Intent may be understood as an intermediary in the communication between different components that specifically provides the information about the components' calls to each other.
Intent has several attributes: action (Action), Data (Data), Category (Category), Type (Type), component (component), and extension (Extra).
In this embodiment, by setting an Intent action parameter and adding an extension parameter, and then broadcasting the extension parameter to the Android system, the Android system can hide or display the mouse according to an Intent message. Specifically, a predefined CURSOR _ VISIBLE _ CHANGED identifier in the Android system can be used as an action parameter of the Intent message, and Boolean-type data is used for representing a display state or a hidden state, so that the Intent message for informing the Android system of the display state of the bottom-layer operating mouse pointer can be generated.
For example, a developer may predefine a function as shown in Table 1:
TABLE 1
Figure BDA0001108461300000071
The generated message of the Intent type is an Intent object, the action parameter of the Intent object is an identifier formed by a CURSOR _ VISIBLE _ CHANGED character string, the shape parameter visbile target pointer of the incoming Boolean (boolean) type shows a state, and in the function, the Boolean variable visbile is added to the extension parameter of the Intent object.
In this embodiment, after receiving a mouse pointer display state setting instruction, the function may be called: and changeCursorVis, and transferring the display state of the target pointer carried by the mouse pointer display state setting instruction as a form parameter to a function and executing the function to generate the corresponding intent message.
Step S108: broadcasting the intent message to an Android system, searching a corresponding first interface function by the Android system according to an action parameter of the intent message, and calling the first interface function to set a display state of a mouse pointer by taking the display state of the target pointer as a parameter.
As shown in table 1, when the changeCursorVis function is called, referring to fig. 4, the generated intent message may be broadcast to the Android system through the context object, the Android system searches for the first interface function corresponding to the curser _ VISIBLE _ CHANGED identifier, and calls the boolean value of the extension parameter VISIBLE as a profile parameter, so as to set the display state of the mouse pointer. When the visual is true, displaying a mouse pointer; when the visible is false, the mouse pointer is hidden.
For example, in an application scenario, when a cloud server corresponding to an application thin client issues a video needing full-screen playing, a mouse pointer display state setting instruction is issued at the same time, a target pointer display state is set to be hidden, after an Android device receives the mouse pointer display state setting instruction, an event message with a CURSOR _ VISIBLE _ CHANGED identifier as an action parameter can be generated, a VISIBLE attribute is added to an extension parameter and then broadcasted to an Android system, after the Android system receives the event message, the pointer can be set to be hidden according to a first interface function corresponding to the CURSOR _ VISIBLE _ CHANGED identifier, and at the moment, when the video is played in the full-screen mode in the application thin client, the mouse pointer is hidden. And after the video is played, the cloud server corresponding to the application thin client can issue a mouse pointer display state setting instruction again, a target pointer display state is set in the mouse pointer display state setting instruction to be displayed, after the Android device receives the mouse pointer display state setting instruction, an event message with a CURSOR _ VISIBLE _ CHANGED identifier as an action parameter can be generated, a VISIBLE attribute is added into an extension parameter to be a true attribute, the event message is broadcasted to the Android system, after the Android system receives the event message, the pointer can be set to be displayed according to a first interface function corresponding to the CURSOR _ VISIBLE _ CHANGED identifier, at the moment, the mouse pointer is restored and displayed in the application thin client, and a user can perform next operation by operating the mouse. This allows the mouse pointer to perfectly function as an indication for the user operation, thereby improving the convenience of the operation.
In another embodiment, in order to solve the technical problem of insufficient operation convenience caused by the fact that the thin application client in the Android system in the conventional technology can only use the default setting of the mouse pointer, a method for redrawing a mouse pattern in the thin application client is further provided, and specifically, as shown in fig. 5, the method includes:
step S202: and acquiring the position information of the mouse pointer.
Step S204: and receiving material image data sent by a server corresponding to the application thin client.
The application thin client is an application client which is installed on Android equipment executing the method for setting the mouse display state in the application thin client and only has a display function or a few functions, receives and displays content issued by the cloud server, and does not process the content issued by the cloud server.
In this embodiment, the material image data sent by the server corresponding to the thin client application can be received by the thin client application. For example, when a user operates an application thin client to enter a scene having animation or a certain image style, it is necessary to modify an icon of a mouse pointer of the user to an icon that coincides with the scene. For example, in a cloud application of preschool education, a child can operate a thin client of the preschool education application to enter a Chinese character learning and animal recognition teaching course in a zoo scene, and the icon of a mouse pointer needs to be modified into an arrow of a card ventilation lattice. In the application scenario, the Android device executing the method for redrawing the mouse pattern in the application thin client may send the material image data of the card ventilation grid (for example, the cartoon image packaged by using a bitmap object) to the Android device executing the method for redrawing the mouse pattern in the application thin client through a predefined communication protocol, and then the Android device executing the method for redrawing the mouse pattern in the application thin client may redraw the mouse pointer based on the material image.
In another embodiment, the material image for redrawing the mouse pointer may also be set by a user operating the thin client application, and specifically, the obtaining of the mouse pointer position information is:
and receiving the input mouse pointer redrawing instruction through the thin client, and acquiring the mouse pointer position information carried by the mouse pointer redrawing instruction.
Receiving material image data sent by a server corresponding to the application thin client:
and acquiring a material link corresponding to the mouse pointer redrawing instruction, generating an access request according to the material link, sending the access request to a server corresponding to the application thin client, and receiving material image data corresponding to the material link returned by the server.
That is to say, a server corresponding to the application thin client can issue a page, wherein the page comprises a plurality of material links url, each material link corresponds to a corresponding material image, a user can trigger a mouse pointer redrawing instruction by clicking the material link, meanwhile, a request is initiated to the server corresponding to the application thin client according to the material link, and after the server corresponding to the application thin client receives the access request, the server can issue material image data corresponding to the material link to the application thin client.
Step S206: and generating an intent message with the identifier of the changed pointer display image as an action parameter, and packaging the mouse pointer position information and the material image data into the intent message as an extension parameter.
In an Android system, an Intent mechanism is provided to assist interaction and communication between applications or components, wherein the Intent is responsible for describing actions and action related data and additional data of one operation in the applications, and the Android is responsible for finding a corresponding component according to the description of the Intent, transmitting the Intent to a called component and completing calling of the component. Intent can be used not only between applications, but also for interactions between activities/services within applications. Accordingly, Intent may be understood as an intermediary in the communication between different components that specifically provides the information about the components' calls to each other.
Intent has several attributes: action (Action), Data (Data), Category (Category), Type (Type), component (component), and extension (Extra).
In this embodiment, by setting an Intent action parameter and adding an extension parameter, and then broadcasting the extension parameter to the Android system, the Android system can redraw the mouse according to the Intent message. Specifically, a predefined MOUSE _ ICON _ CHANGED identifier in the Android system can be used as an action parameter of the Intent message, and the MOUSE pointer position information of the current MOUSE and the material image data sent by the server are used as extension parameters to generate the Intent message for notifying the Android system of redrawing the MOUSE pointer at the bottom layer.
For example, a developer may predefine a function as shown in Table 2:
TABLE 2
Figure BDA0001108461300000101
The generated message of the Intent type is an Intent object, the action parameter of the Intent object is an identifier formed by a MOUSE _ ICON _ CHANGED character string, the introduced shape parameter bit of the Bitmap (Bitmap) type is material image data, x and y of the digital type respectively represent the current x axis position and y axis position of the MOUSE, and in the function, the data of the Bitmap type and the position (x, y) of the MOUSE are added into the expansion item parameter of the Intent object.
In this embodiment, after receiving a mouse pointer display state setting instruction, the function may be called: and changeCursorVis, and transmitting the bitmap-type material image data sent by the server and the acquired current mouse position as parameters to a function and executing the function to generate the corresponding intent message.
Step S208: broadcasting the intent message to an Android system, searching a corresponding second interface function by the Android system according to an action parameter of the intent message, and calling the second interface function to set a display state of a mouse pointer by using the position information of the mouse pointer and the material image data as parameters.
As shown in table 2, when the changeCursorVis function is called, referring to fig. 6, the generated intent message may be broadcast to the Android system through the context object, the Android system searches for the first interface function corresponding to the motion _ ICON _ CHANGED identifier, and calls the material image of the extended item parameter Bitmap type and the x and y values of the MOUSE position as parameters after being transmitted, that is, the redrawing pattern and the redrawing position of the MOUSE pointer may be set. 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.
For example, in an application scenario, after a cloud server corresponding to an application thin client issues cartoon-type material image data, Android equipment receives the material image data and acquires the position of a current MOUSE pointer, an intent message with a MOUSE _ ICON _ CHANGED identifier as an action parameter is generated, a bitmap is added into an extension parameter as the material image data, the MOUSE position is an attribute of (x, y), the attribute is broadcast to an Android system, after the Android system receives the intent message, the bitmap image can be drawn at the (x, y) position of a display interface according to a first interface function corresponding to the MOUSE _ ICON _ CHANGED identifier, and at the moment, the MOUSE pointer in the application thin client is redrawn as the bitmap image. Therefore, the mouse pointer can be displayed in different display backgrounds with a more striking effect, so that the function of indicating the operation of the user is well played, and the convenience of the operation is improved.
In addition, in order to solve the technical problem of insufficient operation convenience caused by the fact that the thin client application in the Android system in the conventional technology can only use the default setting of the mouse pointer, in this embodiment, a device for setting a mouse display state in the thin client application is further provided, specifically, as shown in fig. 7, the device for setting the mouse display state in the thin client application comprises a mouse pointer display state setting instruction receiving module 102, a target pointer display state acquiring module 104, an Intent message generating module 106, and a mouse pointer display state setting module 108, wherein:
a mouse pointer display state setting instruction receiving module 102, configured to receive a mouse pointer display state setting instruction through an application thin client;
a target pointer display state obtaining module 104, configured to obtain a 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 display state;
an Intent message generating module 106, configured to generate an Intent message with an identifier for changing a display state of a pointer as an action parameter, and package the display state of the target pointer as an extension parameter into the Intent message;
and the display state setting module 108 of the mouse pointer is used for broadcasting the intent message to an Android system, searching a corresponding first interface function by the Android system according to the action parameter of the intent message, and calling the first interface function to set the display state of the mouse pointer by taking the display state of the target pointer as a parameter.
Optionally, in an embodiment, the identifier for changing the display state of the pointer is a curser _ VISIBLE _ CHANGED identifier defined in the Android system.
Optionally, in an embodiment, the mouse pointer display state setting instruction receiving module 102 is further configured to receive, by the application thin client, a mouse pointer display state setting instruction issued by a server corresponding to the application thin client.
In another embodiment, in order to solve the technical problem of insufficient operation convenience caused by the fact that the thin client application in the Android system in the conventional technology can only use the default setting of the mouse pointer, an apparatus for redrawing a mouse pattern in the thin client application is further provided, and specifically, as shown in fig. 8, the apparatus for redrawing a mouse pattern in the thin client application comprises a mouse pointer position information obtaining module 202, a material image data receiving module 204, an Intent message generating module 206, and a mouse pointer display state setting module 208, wherein:
a mouse pointer position information obtaining module 202, configured to obtain mouse pointer position information;
the material image data receiving module 204 is used for receiving material image data sent by a server corresponding to the application thin client;
an Intent message generating module 206, configured to generate an Intent message with an identifier of a pointer display image changed as an action parameter, and package the mouse pointer position information and the material image data as extension parameters into the Intent message;
and the display state setting module 208 of the mouse pointer is used for broadcasting the intent message to an Android system, searching a corresponding second interface function by the Android system according to the action parameter of the intent message, and calling the second interface function to set the display state of the mouse pointer by using the position information of the mouse pointer and the material image data as parameters.
Optionally, in an embodiment, the mouse pointer position information obtaining module 202 is further configured to receive an input mouse pointer redrawing instruction through the thin client, and obtain mouse pointer position information carried by the mouse pointer redrawing instruction; the material image data receiving module 204 is further configured to obtain a material link corresponding to the mouse pointer redrawing instruction, generate an access request according to the material link, send the access request to a server corresponding to the thin application client, and receive material image data corresponding to the material link and returned by the server.
Optionally, in an embodiment, the identifier of the pointer display image is CHANGED to a motion _ ICON _ CHANGED identifier defined in the Android system.
After 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 are adopted, the application thin client of the cloud service running on the Android device can send a message containing an instruction for the Android device to display the mouse pointer, hide the mouse pointer and redraw the mouse pointer to the Android device, and parameters are added to the message. The method comprises the steps that the thin client side of the cloud service running on the Android device can generate a corresponding intent message according to the message and broadcast the intent message to an Android system, the Android system analyzes the intent message and calls a corresponding interface function according to action parameters contained in the intent message to display, hide or redraw a mouse pointer, so that the mouse pointer can be customized individually by the thin client side of the cloud service, corresponding operation can be instructed to a user more remarkably, and convenience in operation is improved.
In one embodiment, as shown in fig. 9, fig. 9 illustrates a terminal of a computer system based on von neumann system which runs the above-described method of setting a mouse display state in an application thin client and the above-described method of redrawing a mouse pattern in an application thin client. The computer system can be terminal equipment such as a smart phone, a tablet computer, a palm computer, a notebook computer or a personal computer. Specifically, an external input interface 1001, a processor 1002, a memory 1003, and an output interface 1004 connected through a system bus may be included. The external input interface 1001 may optionally include at least a network interface 10012. Memory 1003 can include external memory 10032 (e.g., a hard disk, optical or floppy disk, etc.) and internal memory 10034. The output interface 1004 may include at least a display 10042 or the like.
In this embodiment, the method is executed based on a computer program, program files of the computer program are stored in the external memory 10032 of the computer system based on the von neumann system, loaded into the internal memory 10034 at the time of execution, and then compiled into machine code and then transferred to the processor 1002 to be executed, so that the logical mouse pointer display state setting instruction receiving module 102, the target pointer display state acquiring module 104, the Intent message generating module 106, the mouse pointer display state setting module 108, the mouse pointer position information acquiring module 202, the material image data receiving module 204, the Intent message generating module 206, and the mouse pointer display state setting module 208 are formed in the computer system based on the von neumann system. In the execution process of 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, the input parameters are received through the external input interface 1001, are transferred to the memory 1003 for caching, are input into the processor 1002 for processing, and the processed result data is cached in the memory 1003 for subsequent processing or is transferred to the output interface 1004 for outputting.
Specifically, in this embodiment, the processor 1002 is further configured to:
receiving a mouse pointer display state setting instruction through an application thin client;
acquiring a target pointer display state carried by the mouse pointer display state setting instruction, wherein the target pointer display state comprises a hidden state or a display state;
generating an intent message with an identifier for changing the display state of a pointer as an action parameter, and packaging the display state of the target pointer as an extension item parameter into the intent message;
broadcasting the intent message to an Android system, searching a corresponding first interface function by the Android system according to an action parameter of the intent message, and calling the first interface function to set a display state of a mouse pointer by taking the display state of the target pointer as a parameter.
In an alternative embodiment, the processor 1002 is further configured to: and receiving a mouse pointer display state setting instruction sent by a server corresponding to the application thin client through the application thin client.
In another embodiment, the processor 1002 is further configured to:
acquiring position information of a mouse pointer;
receiving material image data sent by a server corresponding to the application thin client;
generating an intent message with the identifier of the changed pointer display image as an action parameter, and packaging the mouse pointer position information and the material image data into the intent message as an extension parameter;
broadcasting the intent message to an Android system, searching a corresponding second interface function by the Android system according to an action parameter of the intent message, and calling the second interface function to set a display state of a mouse pointer by using the position information of the mouse pointer and the material image data as parameters.
Optionally, in an embodiment, the processor 1002 is further configured to execute a mouse pointer redrawing instruction received and input through the thin client, and acquire mouse pointer position information carried in the mouse pointer redrawing instruction; and acquiring a material link corresponding to the mouse pointer redrawing instruction, generating an access request according to the material link, sending the access request to a server corresponding to the application thin client, and receiving material image data corresponding to the material link returned by the server.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.

Claims (12)

1. A method of setting a mouse display state in an application thin client, comprising:
receiving a mouse pointer display state setting instruction through an application thin client; the application thin client is used for receiving and displaying the content transmitted by the corresponding server, but not processing the content transmitted by the server; the mouse pointer display state setting instruction is an instruction received by the application thin client when the application thin client displays a specific user interface or receives user operation acting on a virtual function key, wherein the specific user interface comprises a user interface for playing PPT and a user interface for playing a video in a full screen mode;
acquiring a target pointer display state carried by the mouse pointer display state setting instruction, wherein the target pointer display state comprises a hidden state or a display state;
generating an intent message with an identifier for changing the display state of a pointer as an action parameter, and packaging the display state of the target pointer as an extension item parameter into the intent message;
broadcasting the intent message to an Android system, searching a corresponding first interface function by the Android system according to an action parameter of the intent message, and calling the first interface function to set a display state of a mouse pointer by taking the display state of the target pointer as a parameter.
2. The method of setting a display state of a mouse in an application thin client according to claim 1, wherein the indication of changing the display state of the pointer is:
a CURSOR _ VISIBLE _ CHANGED identifier defined in the Android system.
3. The method of setting a mouse display state in an application thin client according to claim 1, wherein the receiving of the mouse pointer display state setting command through the application thin client is:
and receiving a mouse pointer display state setting instruction sent by a server corresponding to the application thin client through the application thin client.
4. An apparatus for setting a mouse display state in an application thin client, comprising:
the mouse pointer display state setting instruction receiving module is used for receiving a mouse pointer display state setting instruction through the application thin client; the application thin client is used for receiving and displaying the content transmitted by the corresponding server, but not processing the content transmitted by the server; the mouse pointer display state setting instruction is an instruction received by the application thin client when the application thin client displays a specific user interface or receives user operation acting on a virtual function key, wherein the specific user interface comprises a user interface for playing PPT and a user interface for playing a video in a full screen mode;
a target pointer display state acquisition module, configured to acquire a 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 display state;
the Intent message generating module is used for generating an Intent message with an identifier for changing the display state of the pointer as an action parameter, and packaging the display state of the target pointer as an extension parameter into the Intent message;
and the display state setting module of the mouse pointer is used for broadcasting the intent message to an Android system, searching a corresponding first interface function by the Android system according to the action parameter of the intent message, and calling the first interface function to set the display state of the mouse pointer by taking the display state of the target pointer as a parameter.
5. The apparatus of setting a display state of a mouse in an application thin client according to claim 4, wherein the indication of changing the display state of the pointer is:
a CURSOR _ VISIBLE _ CHANGED identifier defined in the Android system.
6. The apparatus of claim 4, wherein the mouse pointer display state setting instruction receiving module is further configured to receive, via the application thin client, a mouse pointer display state setting instruction issued by a server corresponding to the application thin client.
7. A method of redrawing a mouse pattern in an application thin client, comprising:
acquiring position information of a mouse pointer;
receiving material image data sent by a server corresponding to the application thin client; the application thin client is used for receiving and displaying the content transmitted by the corresponding server, but not processing the content transmitted by the server;
generating an intent message with the identifier of the changed pointer display image as an action parameter, and packaging the mouse pointer position information and the material image data into the intent message as an extension parameter;
broadcasting the intent message to an Android system, searching a corresponding second interface function by the Android system according to an action parameter of the intent message, and calling the second interface function to set a display state of a mouse pointer by using the position information of the mouse pointer and the material image data as parameters.
8. The method for redrawing a mouse pattern in a thin client application according to claim 7, wherein said obtaining mouse pointer position information is:
receiving an input mouse pointer redrawing instruction through the thin client, and acquiring mouse pointer position information carried by the mouse pointer redrawing instruction;
the receiving of the material image data sent by the server corresponding to the application thin client comprises the following steps:
and acquiring a material link corresponding to the mouse pointer redrawing instruction, generating an access request according to the material link, sending the access request to a server corresponding to the application thin client, and receiving material image data corresponding to the material link returned by the server.
9. The method of redrawing a mouse pattern in an application thin client according to claim 7, wherein the change of the indication of the pointer display image is:
a MOUSE _ ICON _ CHANGED identifier defined in the Android system.
10. An apparatus for redrawing a mouse pattern in an application thin client, comprising:
the mouse pointer position information acquisition module is used for acquiring the mouse pointer position information;
the material image data receiving module is used for receiving material image data sent by a server corresponding to the application thin client; the application thin client is used for receiving and displaying the content transmitted by the corresponding server, but not processing the content transmitted by the server;
the Intent message generating module is used for generating an Intent message with the identifier of the pointer display image changed as an action parameter, and packaging the mouse pointer position information and the material image data as extension parameters into the Intent message;
and the display state setting module of the mouse pointer is used for broadcasting the intent message to an Android system, the Android system searches a corresponding second interface function according to the action parameter of the intent message, and the Android system calls the second interface function to set the display state of the mouse pointer by taking the position information of the mouse pointer and the material image data as parameters.
11. The apparatus for redrawing a mouse pattern in an application thin client according to claim 10, wherein the mouse pointer position information obtaining module is further configured to receive an input mouse pointer redrawing instruction through the application thin client, and obtain mouse pointer position information carried by the mouse pointer redrawing instruction;
the material image data receiving module is further used for obtaining a material link corresponding to the mouse pointer redrawing instruction, generating an access request according to the material link, sending the access request to a server corresponding to the application thin client, and receiving material image data corresponding to the material link and returned by the server.
12. The apparatus for redrawing a mouse pattern in a thin client application according to claim 10, wherein said change of the indication of the pointer display image is:
a MOUSE _ ICON _ CHANGED identifier defined in the Android system.
CN201610799599.9A 2016-08-31 2016-08-31 Method and device for setting mouse display state in application thin client Active CN106383705B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610799599.9A CN106383705B (en) 2016-08-31 2016-08-31 Method and device for setting mouse display state in application thin client
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 (1)

Application Number Priority Date Filing Date Title
CN201610799599.9A CN106383705B (en) 2016-08-31 2016-08-31 Method and device for setting mouse display state in application thin client

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202010396796.2A Division CN111708533B (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
CN106383705A CN106383705A (en) 2017-02-08
CN106383705B true CN106383705B (en) 2020-05-08

Family

ID=57937985

Family Applications (2)

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
CN202010396796.2A Active CN111708533B (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
CN202010396796.2A Active CN111708533B (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) CN106383705B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
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

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105892864A (en) * 2016-03-31 2016-08-24 武汉斗鱼网络科技有限公司 Control interaction method based on Android player and control interaction device based on Android player

Family Cites Families (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001093525A2 (en) * 2000-05-26 2001-12-06 Citrix Systems, 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 삼성전자주식회사 Control method for pointer of mobile terminal having 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 华为技术有限公司 The methods, devices and systems that mouse synchronizes
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
CN105867753B (en) * 2016-04-05 2019-03-15 福建天晴数码有限公司 The method and system of android system browser split screen

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105892864A (en) * 2016-03-31 2016-08-24 武汉斗鱼网络科技有限公司 Control interaction method based on Android player and control interaction device based on Android player

Also Published As

Publication number Publication date
CN111708533A (en) 2020-09-25
CN111708533B (en) 2023-01-06
CN106383705A (en) 2017-02-08

Similar Documents

Publication Publication Date Title
EP3623942B1 (en) Message processing method and apparatus, storage medium, and computer device
EP3816823A1 (en) Webpage rendering method, device, electronic apparatus and storage medium
EP4087258A1 (en) Method and apparatus for displaying live broadcast data, and device and storage medium
CN107992301B (en) User interface implementation method, client and storage medium
CN105955888B (en) Page debugging preview method and system
CN117056622A (en) Voice control method and display device
EP3416054B1 (en) Method and device for page display, and storage medium
JP7104242B2 (en) Methods for sharing personal information, devices, terminal equipment and storage media
CN110704136A (en) Rendering method of small program assembly, client, electronic device and storage medium
CN110413347B (en) Advertisement processing method and device in application program, storage medium and terminal
CN106843794B (en) Split screen display method and system based on android
CN111240777A (en) Dynamic wallpaper generation method and device, storage medium and electronic equipment
US20210216177A1 (en) Navigation bar controlling method and terminal
CN110609965A (en) Page display method and device and storage medium
CN112217671B (en) Method and equipment for performing interface display on front-end micro-service based on split deployment
CN109683760B (en) Recent content display method, device, terminal and storage medium
CN106383705B (en) Method and device for setting mouse display state in application thin client
CN111127469A (en) Thumbnail display method, device, storage medium and terminal
CN106293658B (en) Interface component generation method and equipment
US11194598B2 (en) Information display method, terminal and storage medium
CN107220371B (en) Page display method and device and storage medium
CN111046265B (en) Card data display method, device, equipment and storage medium
CN112689177B (en) Method for realizing quick interaction and display equipment
CN112291412B (en) Application program control method and device and electronic equipment
CN114690996A (en) Content display method and device and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200420

Address after: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Applicant after: HUAWEI TECHNOLOGIES Co.,Ltd.

Address before: 301, A building, room 3, building 301, foreshore Road, No. 310053, Binjiang District, Zhejiang, Hangzhou

Applicant before: Huawei Technologies Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220207

Address after: 550025 Huawei cloud data center, jiaoxinggong Road, Qianzhong Avenue, Gui'an New District, Guiyang City, Guizhou Province

Patentee after: Huawei Cloud Computing Technology Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.