CN111708533A - 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
CN111708533A
CN111708533A CN202010396796.2A CN202010396796A CN111708533A CN 111708533 A CN111708533 A CN 111708533A CN 202010396796 A CN202010396796 A CN 202010396796A CN 111708533 A CN111708533 A CN 111708533A
Authority
CN
China
Prior art keywords
thin client
pointer
mouse
display state
content
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.)
Granted
Application number
CN202010396796.2A
Other languages
Chinese (zh)
Other versions
CN111708533B (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 CN202010396796.2A priority Critical patent/CN111708533B/en
Publication of CN111708533A publication Critical patent/CN111708533A/en
Application granted granted Critical
Publication of CN111708533B publication Critical patent/CN111708533B/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

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

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 SDK API 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 BDA0002487904950000051
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 BDA0002487904950000071
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 (28)

1. A method of displaying a mouse, comprising:
the thin client displays the content sent by the server;
the thin client redraws a pointer for operating the content;
the thin client displays the pointer.
2. The method according to claim 1, characterized in that it comprises: the thin client hides the pointer on the content.
3. The method according to claim 1, characterized in that it comprises:
and hiding the pointer by the thin client when the content is displayed as a specific user interface.
4. The method according to claim 1, characterized in that it comprises:
and when the content is played video or demonstration content, the thin client hides the pointer.
5. The method according to any one of claims 1 to 4, characterized in that it comprises:
and the thin client receives a mouse pointer display state setting instruction sent by the server, wherein the mouse pointer display state setting instruction indicates to hide a mouse or display the mouse.
6. The method according to any one of claims 1 to 5, characterized in that it comprises:
and the thin client generates the pointer based on the material image data sent by the server.
7. The method according to any one of claims 1 to 5, characterized in that it comprises:
the thin client generates the pointer to the content match.
8. The method according to any one of claims 1 to 7, characterized in that it comprises:
the thin client acquires the position information of a mouse pointer;
and the thin client displays the pointer at the position specified by the mouse pointer position information.
9. A thin client, characterized in that the thin client comprises:
a transmitting unit for displaying the content transmitted by the server;
a processing unit for redrawing a pointer for manipulating the content;
and the processing unit is used for displaying the pointer.
10. The thin client according to claim 9, wherein said processing unit is configured to hide said pointer over said content.
11. The thin client as claimed in claim 9, wherein said processing unit is configured to hide said pointer when displaying said content as a specific user interface.
12. The thin client according to claim 9, wherein the processing unit is configured to hide the pointer when the content is a played video or a presentation.
13. The thin client according to any one of claims 9 to 12, wherein the receiving unit is configured to receive a mouse pointer display state setting instruction sent by the server, the mouse pointer display state setting instruction indicating to hide a mouse or display a mouse.
14. The thin client according to any one of claims 9 to 13, wherein the processing unit is configured to generate the pointer based on material image data transmitted by the server.
15. The thin client according to any of claims 9 to 13, wherein said processing unit is adapted to generate said pointer to said content match.
16. The thin client according to any of claims 9 to 15, wherein the processing unit is configured to obtain mouse pointer position information, and to display the pointer at a position specified by the mouse pointer position information.
17. A system, characterized in that the system comprises a thin client and a server;
the thin client displays the content sent by the server;
the thin client redraws a pointer for operating the content;
the thin client displays the pointer.
18. The system of claim 17,
the thin client hides the pointer on the content.
19. The system of claim 17,
the thin client hides the pointer when displaying the content as a particular user interface.
20. The system of claim 17,
and the thin client hides the pointer when the content is played video or demonstration content.
21. The system of any one of claims 17 to 20,
and the thin client receives a mouse pointer display state setting instruction sent by the server, wherein the mouse pointer display state setting instruction indicates to hide a mouse or display the mouse.
22. The system according to any one of claims 17 to 21,
and the thin client generates the pointer based on the material image data sent by the server.
23. The system according to any one of claims 17 to 21,
the thin client generates the pointer to the content match.
24. The system according to any one of claims 17 to 23,
the thin client acquires the position information of a mouse pointer;
and the thin client displays the pointer at the position specified by the mouse pointer position information.
25. A thin client, characterized in that it comprises a processor and a memory;
the processor executes the memory-stored instructions to implement the thin client in the system of any of claims 17 to 24.
26. A server, comprising a processor and a memory;
the processor executes the instructions stored by the memory to implement the server in the system of any of claims 17 to 24.
27. A memory storing instructions for implementing a thin client or server in the system of any one of claims 17 to 24.
28. A memory storing instructions for implementing a thin client or server in the system of any one of claims 17 to 24.
CN202010396796.2A 2016-08-31 2016-08-31 Method and device for setting mouse display state in application thin client Active CN111708533B (en)

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

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 true CN111708533A (en) 2020-09-25
CN111708533B CN111708533B (en) 2023-01-06

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 Before (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) 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 (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020029285A1 (en) * 2000-05-26 2002-03-07 Henry Collins Adapting graphical data, processing activity to changing network conditions
CN101132585A (en) * 2006-08-22 2008-02-27 三星电子株式会社 Method of controlling pointer in mobile terminal having pointing device
CN101295264A (en) * 2007-04-24 2008-10-29 珠海金山软件股份有限公司 Apparatus and method for simultaneously displaying mouse in multi-region
US20100269039A1 (en) * 2009-04-15 2010-10-21 Wyse Technology Inc. Custom pointer features for touch-screen on remote client devices
US20110078621A1 (en) * 2009-09-28 2011-03-31 Casio Computer Co., Ltd. Thin client system, server apparatus, client apparatus, and storage medium
CN103297828A (en) * 2012-03-05 2013-09-11 深圳市快播科技有限公司 Method and system for operating set top box with simulation mouse of mobile terminal
CN103412701A (en) * 2012-11-01 2013-11-27 华为技术有限公司 Method and device for processing remote desktop images
WO2014101213A1 (en) * 2012-12-31 2014-07-03 华为技术有限公司 Method, device and system for synchronizing mice
US20150067035A1 (en) * 2009-04-15 2015-03-05 Roshan Sullad Method and apparatus for extending capabilities of a virtualization domain to support features available in a normal desktop application
CN104718524A (en) * 2012-08-31 2015-06-17 日本电气方案创新株式会社 Input control device, thin-client system, input control method, and recording medium
CN105867753A (en) * 2016-04-05 2016-08-17 福建天晴数码有限公司 Android system browser screen dividing method and system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110157196A1 (en) * 2005-08-16 2011-06-30 Exent Technologies, Ltd. Remote gaming features
CN102981867B (en) * 2012-10-31 2015-12-02 山东大学 A kind of thin client desktop arranging system based on file operation and aligning method thereof
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

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020029285A1 (en) * 2000-05-26 2002-03-07 Henry Collins Adapting graphical data, processing activity to changing network conditions
CN101132585A (en) * 2006-08-22 2008-02-27 三星电子株式会社 Method of controlling pointer in mobile terminal having pointing device
CN101295264A (en) * 2007-04-24 2008-10-29 珠海金山软件股份有限公司 Apparatus and method for simultaneously displaying mouse in multi-region
US20100269039A1 (en) * 2009-04-15 2010-10-21 Wyse Technology Inc. Custom pointer features for touch-screen on remote client devices
US20150067035A1 (en) * 2009-04-15 2015-03-05 Roshan Sullad Method and apparatus for extending capabilities of a virtualization domain to support features available in a normal desktop application
US20110078621A1 (en) * 2009-09-28 2011-03-31 Casio Computer Co., Ltd. Thin client system, server apparatus, client apparatus, and storage medium
CN103297828A (en) * 2012-03-05 2013-09-11 深圳市快播科技有限公司 Method and system for operating set top box with simulation mouse of mobile terminal
CN104718524A (en) * 2012-08-31 2015-06-17 日本电气方案创新株式会社 Input control device, thin-client system, input control method, and recording medium
CN103412701A (en) * 2012-11-01 2013-11-27 华为技术有限公司 Method and device for processing remote desktop images
WO2014101213A1 (en) * 2012-12-31 2014-07-03 华为技术有限公司 Method, device and system for synchronizing mice
CN105867753A (en) * 2016-04-05 2016-08-17 福建天晴数码有限公司 Android system browser screen dividing method and system

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
JUNGHWAN RHEE 等: "DeskBench: Flexible virtual desktop benchmarking toolkit", 《2009 IFIP/IEEE INTERNATIONAL SYMPOSIUM ON INTEGRATED NETWORK MANAGEMENT》 *
徐扬: "一种基于广电网瘦客户端交互应用方案的研究与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *
怯肇乾 等: "微型光学手指导航模组的Android***软件操作实现", 《现代显示》 *
杨勇: "基于WebKit嵌入式浏览器的设计与实现", 《中国优秀博硕士学位论文全文数据库(硕士)信息科技辑》 *
许小吟: "桌面虚拟化中基于HTML5的原语翻译机制研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Also Published As

Publication number Publication date
CN106383705A (en) 2017-02-08
CN111708533B (en) 2023-01-06
CN106383705B (en) 2020-05-08

Similar Documents

Publication Publication Date Title
EP4087258A1 (en) Method and apparatus for displaying live broadcast data, and device and storage medium
CN105955888B (en) Page debugging preview method and system
CN105975393B (en) Page display detection method and system
JP7104242B2 (en) Methods for sharing personal information, devices, terminal equipment and storage media
EP3416054B1 (en) Method and device for page display, and storage medium
WO2019047189A1 (en) Message display method and device and terminal
CN110413347B (en) Advertisement processing method and device in application program, storage medium and terminal
CN107580039B (en) Transmission progress display method and device 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
CN113268212A (en) Screen projection method and device, storage medium and electronic equipment
CN111127469A (en) Thumbnail display method, device, storage medium and terminal
CN111078325B (en) Application program running method and device, electronic equipment and storage medium
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
CN108345683B (en) Webpage display method, device, terminal and storage medium
US11194598B2 (en) Information display method, terminal and storage medium
US20180365199A1 (en) Page display method and device and storage medium
CN111324398A (en) Recent content processing method, device, terminal and storage medium
CN112799801A (en) Method, device, equipment and medium for drawing simulation mouse pointer
CN112689177B (en) Method for realizing quick interaction and display equipment
CN111859999A (en) Message translation method, device, storage medium and electronic equipment
CN110853643A (en) Method, device, equipment and storage medium for voice recognition in fast application
CN112199090A (en) Information flow processing method, device and computer readable storage medium

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 Technology 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