CN112462994B - Method and device for displaying different colors of multiple flying mouse cursors, storage medium and terminal - Google Patents

Method and device for displaying different colors of multiple flying mouse cursors, storage medium and terminal Download PDF

Info

Publication number
CN112462994B
CN112462994B CN202011404672.0A CN202011404672A CN112462994B CN 112462994 B CN112462994 B CN 112462994B CN 202011404672 A CN202011404672 A CN 202011404672A CN 112462994 B CN112462994 B CN 112462994B
Authority
CN
China
Prior art keywords
android system
mouse
eventhub
equipment
cursor
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
CN202011404672.0A
Other languages
Chinese (zh)
Other versions
CN112462994A (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.)
Guangzhou Lango Electronic Science and Technology Co Ltd
Original Assignee
Guangzhou Lango Electronic Science and Technology 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 Guangzhou Lango Electronic Science and Technology Co Ltd filed Critical Guangzhou Lango Electronic Science and Technology Co Ltd
Priority to CN202011404672.0A priority Critical patent/CN112462994B/en
Publication of CN112462994A publication Critical patent/CN112462994A/en
Application granted granted Critical
Publication of CN112462994B publication Critical patent/CN112462994B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04812Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser

Abstract

The invention discloses a method, a device, a storage medium and a terminal for displaying different colors of multiple mouse cursors in an android system, wherein the method comprises the following steps: the android system reads the corresponding equipment IDs of the plurality of aerial volleys and adds a record array according to each equipment ID; obtaining device display color IDs corresponding to the plurality of aerial volatees in the android system based on the record array; writing the device display color IDs corresponding to the airborne volleys and the corresponding record arrays into an android database, and monitoring the state change of the airborne volleys in the android database; and when the state change of the air mouse is monitored, displaying the equipment display color ID of the cursor corresponding to the air mouse according to the corresponding state change or recovering the default and hiding the equipment display color ID. In the embodiment of the invention, different air volleys use different color cursors, so that the current operators can be distinguished, and the user experience and the conference experience are improved.

Description

Method and device for displaying different colors of multiple mouse cursors, storage medium and terminal
Technical Field
The invention relates to the technical field of all-in-one machines, in particular to a method and a device for displaying different colors of multiple mouse cursors in an android system, a storage medium and a terminal.
Background
In a specific implementation scene of the all-in-one conference machine, a device of an aerial mouse needs to be used, and after the device is connected to an android system, a common mouse cursor can be displayed. During the meeting process, the presenter can use the device to indicate the current content, and the device has the function similar to a laser pen to help the presenter to improve the quality of the meeting.
However, when the air mouse is connected to the android system, the android system can only display a common black mouse cursor by default, and can only display a mouse cursor of one color when a plurality of air mice are connected, so that when a plurality of users need to control in a conference, which user can not be identified, and the experience is not good.
Disclosure of Invention
The invention aims to overcome the defects of the prior art, and provides a method, a device, a storage medium and a terminal for displaying different colors of multiple flying mouse cursors in an android system, so that different flying mice use cursors with different colors, current operators can be distinguished, and user experience and conference experience are improved.
In order to solve the technical problem, an embodiment of the present invention provides a method for displaying different colors of multiple mice cursors in an android system, where the method includes:
when a plurality of aerial volleys are connected with an android system running in a terminal and used, the android system reads corresponding equipment IDs of the aerial volleys in the EventHub, and adds a record array in the EventHub according to each equipment ID, wherein the record array comprises equipment nodes and the current connection state of the equipment;
acquiring device display color IDs corresponding to the plurality of air flying mice in the android system based on the record array in the Eventhub;
writing the device display color IDs corresponding to the airborne flying rats and the corresponding record arrays in the EventHub into an android database, and monitoring the state change of the airborne flying rats in the android database;
and when the state change of the air mouse is monitored, displaying the equipment display color ID of the cursor corresponding to the air mouse according to the corresponding state change or recovering the default and hiding the equipment display color ID.
Optionally, when there are a plurality of airborne flying rats connected to and used by an android system running in the terminal, the android system reads the corresponding device IDs of the plurality of airborne flying rats in eventlibs, and adds a record array in the eventlibs according to each device ID, including:
when a plurality of aerial volleys are connected with an android system running in a terminal and used, the aerial volleys are identified as a plurality of input devices by the android system, and the input devices have a unique device ID;
and the android system reads the device IDs of a plurality of input devices corresponding to the plurality of airborne flying rats in the EventHub, and adds a record array in the EventHub according to each device ID.
Optionally, the obtaining, in the android system, device display color IDs corresponding to the multiple airborne flying rats based on the record array in the eventwub includes:
judging whether each equipment ID is connected with an android system running in the terminal for the first time and is used;
if the device is connected with an android system running in the terminal for the first time and used, inquiring all device nodes and the current connection state of each device in a record array in the Eventhub, and finding the front unoccupied device color ID from the record array in the Eventhub as the device display color ID of the device ID;
and if the device is not connected with an android system operated in the terminal for the first time and is used, inquiring an occupation record of the device color ID occupied by the device ID in a record array in the EventHub, and obtaining the device display color ID of the device ID according to the occupation record.
Optionally, the resource definition of the device display color ID includes:
adding pictures with different color IDs in the frames/base/core/res/res/drawable-mdpi/of the android system; adding xml of different color IDs in the frames/base/core/res/res/drawable/color; xml adds resource configuration of different color IDs; xml references resources of different color IDs, modified frames/base/core/res/res/values/attrs.
Optionally, the monitoring of changes of the state of the airborne vole in the android database includes:
the android system monitors the state change of the airborne flying mouse in the android database through the inputManagerservice of the android framework layer.
Optionally, the corresponding state change includes turning on a cursor of the airborne flying mouse, turning off the cursor of the airborne flying mouse, or removing the cursor of the airborne flying mouse.
Optionally, the displaying the device display color ID of the cursor corresponding to the aerial volleyball according to the corresponding state change or recovering to default and hiding, includes:
when the corresponding state change is the cursor of the air mouse, calling a setPonterIconType function of the android native API and transmitting a device display color ID corresponding to the current air mouse to display the color of the cursor;
and when the corresponding state changes to be the cursor of the air mouse is closed or the cursor of the air mouse is removed, restoring the cursor to a default cursor and hiding the cursor.
In addition, the embodiment of the invention also provides a device for displaying a plurality of mouse cursors in different colors in the android system, which comprises:
a reading and adding module: the method comprises the steps that when a plurality of aerial flying mice are connected with an android system running in a terminal and used, the android system reads corresponding equipment IDs of the aerial flying mice in EventHub, and a record array is added in the EventHub according to each equipment ID, wherein the record array comprises equipment nodes and the current connection state of equipment;
an obtaining module: the device display color IDs corresponding to the plurality of air flying mice are obtained in the android system based on the record array in the EventHub;
and a write-in monitoring module: the device display color IDs corresponding to the aerial volleys and the corresponding record arrays in the EventHub are written into an android database, and the states of the aerial volleys in the android database are monitored in a changing manner;
a change processing module: and the device display color ID display or default recovery and hiding processing is carried out on the cursor corresponding to the air mouse according to the corresponding state change when the state change of the air mouse is monitored.
In addition, the embodiment of the invention also provides a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and when the computer program is executed by a processor, the method for displaying different colors of multiple mouse cursors is realized.
In addition, an embodiment of the present invention further provides a terminal device, which includes:
one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications configured to: executing the method for displaying different colors of the plurality of the flying mouse cursors.
In the embodiment of the invention, the specific cursor adaptation to the specific aerial mouse can be added on the premise of not changing the icon and the processing logic of the android native mouse cursor, and a plurality of different aerial mice use the cursors with different colors, so that different users can distinguish the current operator, and the user experience and the conference experience are 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.
Fig. 1 is a schematic flow chart of a method for displaying different colors of multiple mice cursors in an android system in an embodiment of the present invention;
fig. 2 is a schematic structural composition diagram of a plurality of display devices with different colors for a mouse cursor in an android system in the embodiment of the present invention;
fig. 3 is a schematic structural component diagram of a terminal device in the 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.
Examples
Referring to fig. 1, fig. 1 is a schematic flow chart of a method for displaying different colors of multiple mice cursors in an android system in an embodiment of the present invention.
As shown in fig. 1, a method for displaying different colors of multiple mouse cursors in an android system includes:
s11: when a plurality of aerial volleys are connected with an android system running in a terminal and used, the android system reads corresponding equipment IDs of the aerial volleys in the EventHub, and adds a record array in the EventHub according to each equipment ID, wherein the record array comprises equipment nodes and the current connection state of the equipment;
in a specific implementation process of the present invention, when there are a plurality of airborne flying rats connected to and used by an android system running in a terminal, the android system reads corresponding device IDs of the plurality of airborne flying rats in eventhhub, and adds a record array in eventhhub according to each device ID, including: when a plurality of aerial volleys are connected with an android system running in a terminal and used, the aerial volleys are identified by the android system as a plurality of input devices, and the input devices have a unique device ID; and the android system reads the device IDs of a plurality of input devices corresponding to the plurality of airborne flying rats in the EventHub, and adds a record array in the EventHub according to each device ID.
Specifically, the terminal is generally a conference all-in-one terminal, and when a plurality of aerial volleys are connected to an android system running on the conference all-in-one terminal device, the aerial volleys are recognized as a plurality of input devices by the android system, and the input devices all have a unique device ID.
When a plurality of aerial volleys are connected with an android system running in the conference all-in-one machine terminal and used, the aerial volleys are identified as a plurality of input devices by the android system, and the input devices are provided with a unique device ID; in the process of controlling different aerial volleys, the android system reads the device IDs of a plurality of input devices corresponding to the aerial volleys in the ventHub, and adds a record array in the Eventhub according to each device ID; the element in the record array is a structure body, and the structure body comprises equipment nodes and the current connection state of the equipment; for recording the current device status.
S12: obtaining device display color IDs corresponding to the plurality of air flying mice in the android system based on the record array in the EventHub;
in a specific implementation process of the present invention, the obtaining, in the android system, device display color IDs corresponding to the multiple airborne flying rats based on the record array in the eventwub includes: judging whether each equipment ID is connected with an android system running in the terminal for the first time and is used; if the connection is connected with an android system operated in the terminal for the first time and used, inquiring all equipment nodes and the current connection state of each piece of equipment in a record array in the EventHub, and finding the front equipment color ID which is not occupied from the record array in the EventHub as the equipment display color ID of the equipment ID; and if the device is not connected with an android system running in the terminal for the first time and is not used, inquiring an occupation record of the device color ID occupied by the device ID in a record array in the Eventhub, and obtaining the device display color ID of the device ID according to the occupation record.
Further, the resource definition of the device display color ID includes: adding pictures with different color IDs in a frame/base/core/res/res/drawable-mdpi/of the android system; adding xml of different color IDs in the frames/base/core/res/res/drawable/color; xml adds resource configuration of different color IDs; xml references resources with different color IDs by modifying frame/base/core/res/res/values/attrs.
Specifically, whether each device ID is connected to and used by an android system running in the terminal for the first time needs to be judged; when the connection with the android system running in the terminal is judged to be used for the first time, inquiring all equipment nodes and the current connection state of each equipment in a record array in the EventHub, and finding the front unoccupied equipment color ID from the record array in the EventHub as the equipment display color ID of the equipment ID; and if the device is judged not to be connected with the android system operated in the terminal for the first time and used, inquiring an occupation record of the device color ID occupied by the device ID in the record array in the EventHub, and obtaining the device display color ID of the device ID according to the occupation record.
Adding custom style resources of different device display color IDs: adding pictures with different color IDs in the frames/base/core/res/res/drawable-mdpi/of the android system; adding xml of different color IDs in the frames/base/core/res/res/drawable/color; xml adds resource configuration of different color IDs; xml references resources of different color IDs, modified frames/base/core/res/res/values/attrs.
S13: writing the device display color IDs corresponding to the airborne flying rats and the corresponding record arrays in the EventHub into an android database, and monitoring the state change of the airborne flying rats in the android database;
in the specific implementation process of the invention, the monitoring of the change of the state of the airborne vole in the android database comprises the following steps: the android system monitors the state change of the airborne flying mouse in the android database through the inputManagerservice of the android framework layer.
Specifically, when the airborne flying mouse is connected and used, the device display color IDs corresponding to the airborne flying mice and the corresponding record arrays in the EventHub are written into an android database, and then the android system monitors the state change of the airborne flying mouse in the android database through an inputManagerservice layer of an android; and when monitoring that the android database changes, executing a callback function to perform subsequent operation.
S14: and when the state change of the air mouse is monitored, displaying the equipment display color ID of the cursor corresponding to the air mouse according to the corresponding state change or recovering the default and hiding the equipment display color ID.
In the implementation process of the invention, the corresponding state change comprises opening the cursor of the airborne flying mouse, closing the cursor of the airborne flying mouse or removing the cursor of the airborne flying mouse.
Further, the displaying of the device display color ID of the cursor corresponding to the air mouse according to the corresponding state change or the recovering of default and hiding processing includes: when the corresponding state change is the cursor of the air mouse, calling a setPonterIconType function of the android native API and transmitting a device display color ID corresponding to the current air mouse to display the color of the cursor; and when the corresponding state changes to be the cursor of the air mouse is closed or the cursor of the air mouse is removed, restoring the cursor to a default cursor and hiding the cursor.
Specifically, the state change to be obtained is to open a cursor of the airborne volleyball, close the cursor of the airborne volleyball or remove the cursor of the airborne volleyball; when the corresponding state change is the cursor of the air mouse, calling a setPonterIconType function of the android native API and transmitting a device display color ID corresponding to the current air mouse to display the color of the cursor; and when the corresponding state is changed to close the cursor of the aerial mouse or remove the cursor of the aerial mouse, restoring the cursor to a default cursor and hiding the cursor.
And when the change to the airborne vole is device removal, the relevant array of records is retrieved from the EventHub of the android system, and the assigned device display color ID in the corresponding array of records is deleted.
In the embodiment of the invention, the specific cursor adaptation to the specific aerial mouse can be added on the premise of not changing the icon and the processing logic of the android native mouse cursor, and a plurality of different aerial mice use the cursors with different colors, so that different users can distinguish the current operator, and the user experience and the conference experience are improved.
Examples
Referring to fig. 2, fig. 2 is a schematic structural composition diagram of a plurality of display devices with different colors for a mouse cursor in an android system in an embodiment of the present invention.
As shown in fig. 2, a device for displaying different colors of multiple mouse cursors in an android system, the device includes:
the read addition module 21: the method comprises the steps that when a plurality of aerial flying mice are connected with an android system running in a terminal and used, the android system reads corresponding equipment IDs of the aerial flying mice in EventHub, and a record array is added in the EventHub according to each equipment ID, wherein the record array comprises equipment nodes and the current connection state of equipment;
in a specific implementation process of the present invention, when there are a plurality of airborne flying rats connected to and used by an android system running in a terminal, the android system reads corresponding device IDs of the plurality of airborne flying rats in eventhhub, and adds a record array in eventhhub according to each device ID, including: when a plurality of aerial volleys are connected with an android system running in a terminal and used, the aerial volleys are identified by the android system as a plurality of input devices, and the input devices have a unique device ID; and the android system reads the device IDs of a plurality of input devices corresponding to the plurality of airborne flying rats in the EventHub, and adds a record array in the EventHub according to each device ID.
Specifically, the terminal is generally a conference all-in-one terminal, and when a plurality of aerial volleys are connected to an android system running on the conference all-in-one terminal device, the aerial volleys are recognized as a plurality of input devices by the android system, and the input devices all have a unique device ID.
When a plurality of aerial volleys are connected with an android system running in the conference all-in-one machine terminal and used, the aerial volleys are identified as a plurality of input devices by the android system, and the input devices are provided with a unique device ID; in the process of controlling different aerial volleys, the android system reads the device IDs of a plurality of input devices corresponding to the aerial volleys in the ventHub, and adds a record array in the Eventhub according to each device ID; the element in the record array is a structure body, and the structure body comprises equipment nodes and the current connection state of the equipment; for recording the current device status.
The obtaining module 22: the device display color IDs corresponding to the plurality of air flying mice are obtained in the android system based on the record array in the EventHub;
in a specific implementation process of the present invention, the obtaining, in the android system, device display color IDs corresponding to the multiple airborne flying rats based on the record array in the eventwub includes: judging whether each equipment ID is connected with an android system running in the terminal for the first time and is used; if the connection is connected with an android system operated in the terminal for the first time and used, inquiring all equipment nodes and the current connection state of each piece of equipment in a record array in the EventHub, and finding the front equipment color ID which is not occupied from the record array in the EventHub as the equipment display color ID of the equipment ID; and if the device is not connected with an android system operated in the terminal for the first time and is used, inquiring an occupation record of the device color ID occupied by the device ID in a record array in the EventHub, and obtaining the device display color ID of the device ID according to the occupation record.
Further, the resource definition of the device display color ID includes: adding pictures with different color IDs in the frames/base/core/res/res/drawable-mdpi/of the android system; adding xml of different color IDs in the frames/base/core/res/res/drawable/color; xml adds resource configuration of different color IDs; xml references resources with different color IDs by modifying frame/base/core/res/res/values/attrs.
Specifically, whether each device ID is connected to and used by an android system running in the terminal for the first time needs to be judged; if the device is judged to be connected with an android system operated in the terminal for the first time and used, inquiring all device nodes and the current connection state of each device in a record array in the EventHub, and finding the front unoccupied device color ID from the record array in the EventHub as the device display color ID of the device ID; and if the device is judged not to be connected with the android system operated in the terminal for the first time and used, inquiring an occupation record of the device color ID occupied by the device ID in the record array in the EventHub, and obtaining the device display color ID of the device ID according to the occupation record.
Adding custom style resources of different device display color IDs: adding pictures with different color IDs in the frames/base/core/res/res/drawable-mdpi/of the android system; adding xml of different color IDs in the frames/base/core/res/res/drawable/color; xml adds resource configuration of different color IDs; xml references resources of different color IDs, modified frames/base/core/res/res/values/attrs.
The write snoop module 23: the device display color IDs corresponding to the aerial volleys and the corresponding record arrays in the EventHub are written into an android database, and the states of the aerial volleys in the android database are monitored in a changing manner;
in the specific implementation process of the invention, the monitoring of the change of the state of the airborne vole in the android database comprises the following steps: the android system monitors the state change of the airborne flying mouse in the android database through the inputManagerservice of the android framework layer.
Specifically, when the airborne flying mouse is connected and used, the device display color IDs corresponding to a plurality of airborne flying mice and the corresponding record arrays in the EventHub are written into an android database, and then the android system monitors the state change of the airborne flying mouse in the android database through an inputManagerservice of an android frame layer; and when monitoring that the android database changes, executing a callback function to perform subsequent operation.
The change processing module 24: and the device display color ID display or default recovery and hiding processing is carried out on the cursor corresponding to the air mouse according to the corresponding state change when the state change of the air mouse is monitored.
In the implementation process of the invention, the corresponding state change comprises opening the cursor of the airborne flying mouse, closing the cursor of the airborne flying mouse or removing the cursor of the airborne flying mouse.
Further, the displaying of the device display color ID of the cursor corresponding to the air mouse according to the corresponding state change or the recovering of default and hiding processing includes: when the corresponding state change is the cursor of the aerial mouse, calling a setPonterIconType function of the android native API and transmitting a device display color ID corresponding to the current aerial mouse to display the color of the cursor; restoring and hiding the cursor to a default cursor when the corresponding state change is to close or remove the cursor of the flying mouse.
Specifically, the state change to be obtained is to open a cursor of the airborne volleyball, close the cursor of the airborne volleyball or remove the cursor of the airborne volleyball; when the corresponding state change is the cursor of the air mouse, calling a setPonterIconType function of the android native API and transmitting a device display color ID corresponding to the current air mouse to display the color of the cursor; and when the corresponding state is changed to close the cursor of the aerial mouse or remove the cursor of the aerial mouse, restoring the cursor to a default cursor and hiding the cursor.
And when the change to the airborne vole is device removal, the relevant array of records is retrieved from the EventHub of the android system, and the assigned device display color ID in the corresponding array of records is deleted.
In the embodiment of the invention, the specific cursor adaptation to the specific aerial mouse can be added on the premise of not changing the icon and the processing logic of the android native mouse cursor, and a plurality of different aerial mice use the cursors with different colors, so that different users can distinguish the current operator, and the user experience and the conference experience are improved.
The computer-readable storage medium provided by the embodiment of the invention stores a computer program, and when the program is executed by a processor, the method for displaying different colors of multiple mouse cursors in any one of the above embodiments is realized. The computer-readable storage medium includes, but is not limited to, any type of disk including floppy disks, hard disks, optical disks, CD-ROMs, and magneto-optical disks, ROMs (Read-Only memories), RAMs (random access memories), EPROMs (EraSable Programmable Read-Only memories), EEPROMs (Electrically EraSable Programmable Read-Only memories), flash memories, magnetic cards, or optical cards. That is, a storage device includes any medium that stores or transmits information in a form readable by a device (e.g., a computer, a cellular phone), and may be a read-only memory, a magnetic or optical disk, or the like.
The embodiment of the invention also provides a computer application program which runs on a computer and is used for executing the method for displaying the different colors of the multiple mouse cursors in any one of the embodiments.
In addition, fig. 3 is a schematic structural composition diagram of the terminal device in the embodiment of the present invention.
An embodiment of the present invention further provides a terminal device, as shown in fig. 3. The terminal device includes a processor 302, a memory 303, an input unit 304, a display unit 305, and the like. Those skilled in the art will appreciate that the terminal device structure shown in fig. 3 does not constitute a limitation of all devices and may include more or less components than those shown, or some of the components may be combined. The memory 303 may be used to store the application 301 and various functional modules, and the processor 302 executes the application 301 stored in the memory 303, thereby performing various functional applications of the device and data processing. The memory may be internal or external memory, or include both internal and external memory. The memory may comprise read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), flash memory, or random access memory. The external memory may include a hard disk, a floppy disk, a ZIP disk, a usb-disk, a magnetic tape, etc. The disclosed memory includes, but is not limited to, these types of memory. The disclosed memory is by way of example only and not by way of limitation.
The input unit 304 is used for receiving input of signals and receiving keywords input by a user. The input unit 304 may include a touch panel and other input devices. The touch panel can collect touch operations (such as operations of a user on or near the touch panel by using any suitable object or accessory such as a finger, a stylus and the like) on or near the touch panel, and drive the corresponding connecting device according to a preset program; other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as play control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like. The display unit 305 may be used to display information input by a user or information provided to the user and various menus of the terminal device. The display unit 305 may take the form of a liquid crystal display, an organic light emitting diode, or the like. The processor 302 is a control center of the terminal device, connects various parts of the entire device using various interfaces and lines, and performs various functions and processes data by operating or executing software programs and/or modules stored in the memory 302 and calling data stored in the memory.
As an embodiment, the terminal device includes: one or more processors 302, a memory 303, one or more applications 301, wherein the one or more applications 301 are stored in the memory 303 and configured to be executed by the one or more processors 302, the one or more applications 301 configured to perform the method for displaying the different colors of the plurality of mousecursors in any of the above embodiments.
In the embodiment of the invention, the specific cursor adaptation to the specific aerial mouse can be added on the premise of not changing the icon and the processing logic of the android native mouse cursor, and a plurality of different aerial mice use the cursors with different colors, so that different users can distinguish the current operator, and the user experience and the conference experience are improved.
In addition, the method, the device, the storage medium and the terminal for displaying different colors of multiple mouse cursors in an android system provided by the embodiment of the present invention are described in detail above, a specific example should be adopted herein to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (9)

1. A method for displaying different colors of multiple flying mouse cursors in an android system is characterized by comprising the following steps:
when a plurality of aerial volleys are connected with an android system running in a terminal and used, the android system reads corresponding equipment IDs of the aerial volleys in the EventHub, and adds a record array in the EventHub according to each equipment ID, wherein the record array comprises equipment nodes and the current connection state of the equipment;
obtaining device display color IDs corresponding to the plurality of air flying mice in the android system based on the record array in the EventHub;
writing the device display color IDs corresponding to the airborne flying rats and the corresponding record arrays in the EventHub into an android database, and monitoring the state change of the airborne flying rats in the android database;
when the state change of the air mouse is monitored, displaying the equipment display color ID of the cursor corresponding to the air mouse according to the corresponding state change or recovering the default and hiding the equipment display color ID;
the obtaining of the device display color IDs corresponding to the plurality of airborne flying rats in the android system based on the record array in the EventHub comprises the following steps:
judging whether each equipment ID is connected with an android system running in the terminal for the first time and is used;
if the connection is connected with an android system operated in the terminal for the first time and used, inquiring all equipment nodes and the current connection state of each piece of equipment in a record array in the EventHub, and finding the front equipment color ID which is not occupied from the record array in the EventHub as the equipment display color ID of the equipment ID;
and if the device is not connected with an android system operated in the terminal for the first time and is used, inquiring an occupation record of the device color ID occupied by the device ID in a record array in the EventHub, and obtaining the device display color ID of the device ID according to the occupation record.
2. The method for displaying the different colors of the multiple air-mouse cursors according to claim 1, wherein when the multiple air-mouse cursors are connected with an android system running in a terminal and used, the android system reads the corresponding device IDs of the multiple air-mouse cursors in the eventhb, and adds a record array in the eventhb according to each device ID, and the method comprises the following steps:
when a plurality of aerial volleys are connected with an android system running in a terminal and used, the aerial volleys are identified as a plurality of input devices by the android system, wherein each input device in the input devices has a unique device ID;
and the android system reads the device IDs of a plurality of input devices corresponding to the plurality of airborne flying rats in the EventHub, and adds a record array in the EventHub according to each device ID.
3. The method of claim 1, wherein the resource definition of the device display color ID comprises:
adding pictures with different color IDs in a frame/base/core/res/res/drawable-mdpi/of the android system; adding xml of different color IDs in the frames/base/core/res/res/drawable/color; xml adds resource configuration of different color IDs; xml references resources with different color IDs by modifying frame/base/core/res/res/values/attrs.
4. The method for displaying different colors of multiple volleyballs according to claim 1, wherein the monitoring of changes in the status of the airborne volleyballs in the android database comprises:
the android system monitors the state change of the airborne flying mouse in the android database through the inputManagerservice of the android framework layer.
5. The method for displaying a plurality of flying-mouse cursors in different colors according to claim 1, wherein the corresponding state change includes turning on a cursor of the flying-mouse, turning off the cursor of the flying-mouse, or removing the cursor of the flying-mouse.
6. The method for displaying different colors of multiple mice cursors according to claim 5, wherein the performing of the device display color ID display or default restoration and hiding process of the aerial mice corresponding cursors according to the corresponding state change comprises:
when the corresponding state change is the cursor of the aerial mouse, calling a setPonterIconType function of the android native API and transmitting a device display color ID corresponding to the current aerial mouse to display the color of the cursor;
and when the corresponding state changes to be the cursor of the air mouse is closed or the cursor of the air mouse is removed, restoring the cursor to a default cursor and hiding the cursor.
7. A device for displaying different colors of multiple flying mouse cursors in an android system, the device comprising:
a reading and adding module: the method comprises the steps that when a plurality of aerial flying mice are connected with an android system running in a terminal and used, the android system reads corresponding equipment IDs of the aerial flying mice in EventHub, and a record array is added in the EventHub according to each equipment ID, wherein the record array comprises equipment nodes and the current connection state of equipment;
an obtaining module: the device display color IDs corresponding to the plurality of air flying mice are obtained in the android system based on the record array in the EventHub;
and a write-in monitoring module: the device display color IDs corresponding to the aerial volleys and the corresponding record arrays in the EventHub are written into an android database, and the states of the aerial volleys in the android database are monitored in a changing manner;
a change processing module: the device display color display method comprises the steps that when the state change of an aerial volleyball is monitored, the device display color ID display or the default recovery and hiding processing of a cursor corresponding to the aerial volleyball is carried out according to the corresponding state change;
the obtaining of the device display color IDs corresponding to the plurality of airborne flying rats in the android system based on the record array in the EventHub comprises the following steps:
judging whether each equipment ID is connected with an android system running in the terminal for the first time and is used;
if the device is connected with an android system running in the terminal for the first time and used, inquiring all device nodes and the current connection state of each device in a record array in the Eventhub, and finding the front unoccupied device color ID from the record array in the Eventhub as the device display color ID of the device ID;
and if the device is not connected with an android system operated in the terminal for the first time and is used, inquiring an occupation record of the device color ID occupied by the device ID in a record array in the EventHub, and obtaining the device display color ID of the device ID according to the occupation record.
8. A computer-readable storage medium on which a computer program is stored, the program, when executed by a processor, implementing a method of displaying different colors of a plurality of flying mouse cursors according to any one of claims 1 to 6.
9. A terminal device, characterized in that it comprises:
one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications configured to: executing a method of displaying a plurality of flying mouse cursors in different colors according to any one of claims 1 to 6.
CN202011404672.0A 2020-12-02 2020-12-02 Method and device for displaying different colors of multiple flying mouse cursors, storage medium and terminal Active CN112462994B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011404672.0A CN112462994B (en) 2020-12-02 2020-12-02 Method and device for displaying different colors of multiple flying mouse cursors, storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011404672.0A CN112462994B (en) 2020-12-02 2020-12-02 Method and device for displaying different colors of multiple flying mouse cursors, storage medium and terminal

Publications (2)

Publication Number Publication Date
CN112462994A CN112462994A (en) 2021-03-09
CN112462994B true CN112462994B (en) 2022-09-02

Family

ID=74805446

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011404672.0A Active CN112462994B (en) 2020-12-02 2020-12-02 Method and device for displaying different colors of multiple flying mouse cursors, storage medium and terminal

Country Status (1)

Country Link
CN (1) CN112462994B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114401416B (en) * 2022-01-18 2023-06-30 吉林大学 Direct broadcast bidirectional interaction system and method in endoscopic surgery

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101598998A (en) * 2009-06-30 2009-12-09 赵军 Computer double mouse operation method
CN102221960A (en) * 2010-04-16 2011-10-19 索尼公司 Information processing apparatus, information processing method, program, and information processing system
CN104125328A (en) * 2013-04-28 2014-10-29 北京壹人壹本信息科技有限公司 Message processing method, message processing device and mobile terminal
CN110244887A (en) * 2019-05-21 2019-09-17 西藏纳旺网络技术有限公司 Cursor display method, device, electronic equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8749486B2 (en) * 2010-12-21 2014-06-10 Stmicroelectronics, Inc. Control surface for touch and multi-touch control of a cursor using a micro electro mechanical system (MEMS) sensor

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101598998A (en) * 2009-06-30 2009-12-09 赵军 Computer double mouse operation method
CN102221960A (en) * 2010-04-16 2011-10-19 索尼公司 Information processing apparatus, information processing method, program, and information processing system
CN104125328A (en) * 2013-04-28 2014-10-29 北京壹人壹本信息科技有限公司 Message processing method, message processing device and mobile terminal
CN110244887A (en) * 2019-05-21 2019-09-17 西藏纳旺网络技术有限公司 Cursor display method, device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN112462994A (en) 2021-03-09

Similar Documents

Publication Publication Date Title
EP3575962B1 (en) Method and device for preloading application, storage medium and intelligent terminal
US11086663B2 (en) Preloading application using active window stack
US20200342338A1 (en) Method for preloading application, storage medium, and terminal
US20190370022A1 (en) Application preloading method and device, storage medium and terminal
CN106227494B (en) A kind of application operating method and terminal
US20140089824A1 (en) Systems And Methods For Dynamically Altering A User Interface Based On User Interface Actions
WO2019223511A1 (en) Application program preloading method and apparatus, storage medium, and terminal
CN105975170B (en) A kind of method and device of page load
CN103543903A (en) Quick operation method and device and mobile terminal
US8966399B2 (en) Graphical menu interface, implementing method thereof, and operating method thereof
CN108664380B (en) After-execution software debugging system with performance display and debugging method
CN101930399A (en) Method for recording software test
US10809906B2 (en) Electronic device and screenshot capturing method
CN111880879B (en) Playing method, device, equipment and storage medium of dynamic wallpaper
US10983625B2 (en) Systems and methods for measurement of unsupported user interface actions
WO2019228149A1 (en) Collection method and apparatus for prediction sample, and storage medium and smart terminal
CN112083915A (en) Page layout method and device, electronic equipment and storage medium
CN112462994B (en) Method and device for displaying different colors of multiple flying mouse cursors, storage medium and terminal
CN109246467A (en) Label is to the method, apparatus of sharing video frequency, video camera and smart phone
CN109213668B (en) Operation recording method and device and terminal
CN111857497B (en) Operation prompting method and electronic equipment
CN111190674B (en) Unified touch penetration processing method and device, storage medium and all-in-one machine equipment
CN111221723B (en) Test record generation method and device, storage medium and electronic equipment
CN112764833A (en) Application program management method and device and electronic equipment
CN110794986A (en) Conference tablet control method and device based on infrared touch frame and conference tablet

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Room 238, room 406, No.1, Yichuang street, Huangpu District, Guangzhou, Guangdong 510000

Applicant after: Guangzhou langguo Electronic Technology Co.,Ltd.

Address before: Room 238, room 406, No.1, Yichuang street, Huangpu District, Guangzhou, Guangdong 510000

Applicant before: GUANGZHOU LANGO ELECTRONIC SCIENCE & TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant