CN114780179A - Key response method and device for android system - Google Patents
Key response method and device for android system Download PDFInfo
- Publication number
- CN114780179A CN114780179A CN202210703947.3A CN202210703947A CN114780179A CN 114780179 A CN114780179 A CN 114780179A CN 202210703947 A CN202210703947 A CN 202210703947A CN 114780179 A CN114780179 A CN 114780179A
- Authority
- CN
- China
- Prior art keywords
- key
- responded
- application program
- key information
- information
- 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
Links
- 230000004044 response Effects 0.000 title claims abstract description 57
- 238000000034 method Methods 0.000 title claims abstract description 52
- 238000004590 computer program Methods 0.000 claims description 12
- 230000005540 biological transmission Effects 0.000 claims description 6
- 238000012544 monitoring process Methods 0.000 description 6
- 230000008569 process Effects 0.000 description 5
- 238000012545 processing Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 239000011230 binding agent Substances 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000004075 alteration Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000002474 experimental method Methods 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000003825 pressing Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/448—Execution paradigms, e.g. implementations of programming paradigms
- G06F9/4482—Procedural
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The application discloses a key response method and a key response device for an android system, wherein the method is applied to a Linux real-time operating system with at least two user-defined device nodes, and the method comprises the following steps: receiving appointed key information directly sent by an application program in an internal SO mode; transmitting the appointed key information to a Linux kernel driver through a user-defined device node; receiving the key information to be responded, which is directly sent by an application program in an internal SO mode; the Linux kernel driver acquires the information of the key to be responded and judges whether the key is a designated key or not; if not, distributing the data to the application program in the framework; if yes, the application program is called back through the Android interface definition language, and the problems that in the Android system in the prior art, all keys are distributed in the framework layer, so that the link delay is long and the key response speed is low are solved.
Description
Technical Field
The invention relates to the technical field of key response control, in particular to a key response method and device for an android system.
Background
In Android (Android) equipment, key input is an important input source in Android, the key input is obtained from linux kernel after the key is pressed down, then the key input is converted to a Hal layer to be subjected to key mapping, key distribution is completed in a frame layer, finally key monitoring is obtained in view of app, and a link of the key in the whole Android is completed.
Some devices with higher requirements on the full-link delay, such as cloud game items, have higher requirements on the whole key delay. In the cloud game item, key information is acquired from an external handle to android, a cloud game app response is transferred to the cloud game app response and uploaded to a cloud server, the issued picture information is acquired from the cloud server, then decoding is completed by local equipment, and display is completed through HDMI or other equipment, so that closed loop of an integral link is completed. In the closed loop, the Android response speed to the key information directly influences the time delay of the whole link, and has quite direct influence on the user experience, so that the Android response processing to the internal key information is a key link.
Disclosure of Invention
Therefore, the technical problem to be solved by the present invention is to overcome the problems of long link delay and slow key response speed caused by that all keys are distributed in a frame layer in the Android system in the prior art, so as to provide a key response method and device for the Android system.
In order to solve the technical problem, the disclosed embodiment of the present invention at least provides a key response method and device for an android system.
In a first aspect, a disclosed embodiment of the present invention provides a key response method for an android system, where the method is applied to a Linux real-time operating system, where the Linux real-time operating system presets at least two user-defined device nodes, and the method includes:
receiving appointed key information directly sent by an application program in an internal SO mode;
transmitting the appointed key information to a Linux kernel driver through the user-defined equipment node;
receiving the key information to be responded, which is directly sent by the application program in an internal SO mode;
the Linux kernel driver acquires the key information to be responded;
judging whether the key to be responded is an appointed key or not according to the key information;
if the key to be responded is not the designated key, the key to be responded is distributed to an application program in a frame, and the application program performs key response;
and if the key to be responded is the designated key, calling back to the application program through an Android interface definition language, and carrying out key response by the application program.
Optionally, the obtaining, by the Linux kernel driver, the key information to be responded is: and the Linux kernel driver polls each equipment node to acquire the key information to be responded.
Optionally, the method further comprises: receiving the coded data of the key to be responded; and sending the coded data to terminal equipment so that the terminal equipment can decode and respond to the key to be responded.
Optionally, the designated key includes: one or more of up, down, left, right, A, X, and B on the gamepad.
Optionally, after the Linux kernel driver obtains the information of the to-be-responded button, the key words of the to-be-responded button are written into the custom device node, and the callback and return to the application program through the Android interface definition language are as follows: and calling back the keywords of the key to be responded to the application program through an Android interface definition language.
Optionally, the key is an infrared sensing key, a handle key or a touch screen key.
Optionally, the method is applied to cloud game operation, and the application performs a key press response by: and the application program uploads the key information to a cloud server.
In a second aspect, an embodiment of the present disclosure further provides a key response apparatus for an android system, where the apparatus is applied to a Linux real-time operating system, where the Linux real-time operating system presets at least two user-defined device nodes, and the apparatus includes:
the appointed key information receiving module is used for receiving appointed key information directly sent by an application program in an internal SO mode;
the Linux kernel transmission module is used for transmitting the specified key information to the Linux kernel driver through the user-defined equipment node;
the key information receiving module to be responded is used for receiving the key information to be responded, which is directly sent by the application program in an internal SO mode;
the Linux kernel driver acquires the key information to be responded;
the judging module is used for judging whether the key to be responded is an appointed key or not according to the key information;
the frame distribution module is used for distributing the key to be responded to an application program in a frame if the key to be responded is not the designated key, and the application program performs key response;
and the polling module is used for polling the equipment node if the key to be responded is the designated key, calling back the application program through an Android interface definition language, and carrying out key response by the application program.
In a third aspect, an embodiment of the present disclosure further provides a computer device, including: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating via the bus when the computer device is running, the machine-readable instructions when executed by the processor performing the steps of the first aspect or any one of the possible implementations of the first aspect.
In a fourth aspect, the disclosed embodiments of the present invention further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and the computer program is executed by a processor to perform the steps in the first aspect or any possible implementation manner of the first aspect.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
in an Android system, a distribution link in a frame is cancelled aiming at a specific key on a handle, and the distribution link is returned to an app through aidl in a mode of directly reading a linux device node, so that time consumption in the frame is cancelled, and link time delay is saved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
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, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a flowchart illustrating a key response method for an android system according to an embodiment of the disclosure;
fig. 2 and fig. 3 are flowcharts illustrating another key response method for an android system according to the disclosed embodiment of the present invention;
FIG. 4 is a schematic diagram illustrating information interaction between an application and a Linux real-time operating system in an embodiment of the present disclosure;
FIG. 5 is a diagram illustrating an implementation structure of application functions according to an embodiment of the disclosure;
fig. 6 is a schematic structural diagram illustrating a key response device for an android system according to an embodiment of the present disclosure;
fig. 7 shows a schematic structural diagram of a computer device according to an embodiment of the disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
Example 1
As shown in fig. 1, a flowchart of a key response method for an android system according to an embodiment of the present disclosure is applied to a Linux real-time operating system, where the Linux real-time operating system presets at least two user-defined device nodes, and the method includes:
s11: receiving appointed key information directly sent by an application program in an internal SO mode;
s12: transmitting the specified key information to a Linux kernel driver through the user-defined equipment node;
s13: receiving the key information to be responded, which is directly sent by an application program in an internal SO mode;
s14: the Linux kernel driver acquires the key information to be responded;
s15: judging whether the key to be responded is a designated key or not according to the key information, if the key to be responded is the designated key, executing a step S17, and if the key to be responded is not the designated key, executing a step S16;
s16: distributing the key to be responded to the application program in the frame, and carrying out key response by the application program;
s17: and polling the equipment node, calling back the returned application program through the Android interface definition language, and performing key response by the application program.
It can be understood that, in the Android system, a distribution link in a frame is cancelled for a specific Key on a handle, the specific Key is directly read by using a Linux device node and returned to APP through aidl to cancel time consumption in the frame, so that link delay is saved, in the implementation process, specific Key information is set to a Kernel (Linux Kernel) through an APP application layer, a drive of the Linux Kernel is written to a device node by reading a Key value, and a Key transmission module sends the Key value of the device node to the APP; in the current Android architecture, the key flow and logic are optimized.
Example 2
As shown in fig. 2, a flowchart of another key response method for an android system according to an embodiment of the disclosure of the present invention includes:
the method is applied to a Linux real-time operating system, wherein the Linux real-time operating system is preset with at least two user-defined device nodes, and the method comprises the following steps:
s21: receiving appointed key information directly sent by an application program in an internal SO (dynamic library) mode;
s22: transmitting the appointed key information to a Linux kernel driver through a user-defined device node;
s23: receiving the key information to be responded, which is directly sent by an application program in an internal SO mode;
s24: the Linux kernel driver acquires the key information to be responded;
s25: judging whether the key to be responded is a designated key or not according to the key information, if the key to be responded is the designated key, executing a step S27, and if the key to be responded is not the designated key, executing a step S26;
s26: distributing the key to be responded to the application program in the frame, and carrying out key response by the application program;
s27: calling back to an application program through an Android interface definition language, and performing key response by the application program;
s28: receiving coded data of a key to be responded;
s29: and sending the coded data to the terminal equipment so that the terminal equipment can decode and respond to the key to be responded.
In a specific practice, the Linux kernel driver obtains the information of the key to be responded as follows: and polling each equipment node by the Linux kernel driver to acquire the key information to be responded.
In particular practice, the designation of keys includes: one or more of up, down, left, right, A, X, and B keys on the gamepad.
In specific practice, after obtaining the information of the key to be responded, the Linux kernel driver writes the key word of the key to be responded into the custom device node, and the callback and return to the application program through the Android interface definition language is as follows: and calling back the keywords of the key to be responded to the application program through an Android interface definition language.
In specific practice, the keys are infrared sensing keys, handle keys or touch screen keys.
In specific practice, the method is applied to cloud game operation, and the key response of the application program is as follows: and the application program uploads the key information to the cloud server.
For the convenience of the reader, the cloud game link phase is described in detail below:
1, pressing a key, and operating by a normal user;
2, Android terminal equipment, such as set top boxes and other Android equipment, acquires the key information and prepares to distribute the key information to an application layer third party cloud game app;
3, the cloud game App uploads the key information to a cloud server after receiving the key information;
4, after the cloud game server receives the instruction of the terminal equipment, generating a frame of image data on the cloud game server and coding the frame of image data;
6, the cloud game server sends the coded data to STB (set top box);
7, decoding by the terminal equipment;
and 8, displaying the terminal equipment to a display screen through an HDMI (High Definition Multimedia Interface) or other physical links.
In a link in which key input is not optimized, the overall time delay is about 120ms, and the key time delay can be greatly optimized by the key response method and the key response device for the android system provided by the embodiment of the invention; experiments prove that the optimized data is probably between 80 and 90 ms.
As shown in FIG. 3, the key input step is directly optimized through the software layer, and 20-30ms can be optimized in the cloud game project.
It should be noted that, as shown in fig. 4, in the embodiment of the present invention, a linux input driving architecture needs to be adjusted, and a device node, such as/proc/input/keyset,/proc/input/keyset/read, needs to be added in a customized manner; the method comprises the following steps that/proc/input/keyset and the like are used for transmitting user-defined key information from an application layer to a linux kernel driver, normally transmitting key values which do not belong to a user-defined key information range to the application layer through an android input flow, and redirecting the key values which belong to the user-defined key information range to/proc/input/keys/read; and the key information reading module transmits the data to the app application layer after actively polling.
As shown in fig. 5, the interaction between the App application layer (part a) and the key information reading module (part B) is processed by using an Android C/S architecture, that is, based on an aid l (Android Interface Definition Language) of a Binder mechanism, part a is used as a Server (Server), and part B is used as a Client (Client); when the part B reads the key information, calling the interface of the part A through aidl to realize instant communication; and completing a complete flow of information transmission, wherein the core of the Binder mechanism is to realize interprocess communication by using the principle of sharing data of a kernel space and a user space.
It can be understood that, in the Android system, in the cloud game operation process, in the Android system, a distribution link in a frame is cancelled for a specific Key on a handle, the specific Key is returned to the APP through aidl in a manner of directly reading by using a Linux device node, so as to cancel time consumption in the frame and save link delay, in the implementation process, specific Key information is set to Kernel through an APP application layer, a drive of a Linux Kernel is written to a device node by reading a Key value, and a Key transmission module sends the Key value of the device node to the APP; in the current Android architecture, the key press flow and logic are optimized.
Example 3
As shown in fig. 6, an embodiment of the present invention further provides a key response apparatus for an android system, where the apparatus is applied to a Linux real-time operating system, where the Linux real-time operating system presets at least two custom device nodes, and the apparatus includes:
the designated key information receiving module 61 is used for receiving the designated key information directly sent by the application program in an internal SO mode;
the Linux kernel transmission module 62 is used for transmitting the specified key information to the Linux kernel driver through the user-defined device node;
the to-be-responded key information receiving module 63 is used for receiving to-be-responded key information directly sent by the application program in an internal SO mode;
the to-be-responded key information acquisition module 64 is used for acquiring the to-be-responded key information by the Linux kernel driver;
the judging module 65 is configured to judge whether the key to be responded is the designated key according to the key information;
the frame distribution module 66 is used for distributing the key to be responded to the application program in the frame if the key to be responded is not the designated key, and the application program performs key response;
and the polling module 67 is used for calling back the application program through the Android interface definition language if the key to be responded is the designated key, and the application program performs key response.
In a specific practice, as shown in phantom in fig. 6, the apparatus further comprises:
the coded data receiving module 68 is used for receiving coded data of the key to be responded;
and an encoded data sending module 69, configured to send encoded data to the terminal device, so that the terminal device decodes the encoded data and performs a response operation on the key to be responded.
In specific practice, the Linux kernel driver obtains the information of the key to be responded as follows: and polling each equipment node by the Linux kernel driver to acquire the key information to be responded.
In particular practice, the designation of the keys includes: one or more of up, down, left, right, A, X, and B keys on the gamepad.
In specific practice, after obtaining the information of the key to be responded, the Linux kernel driver writes the key word of the key to be responded into the custom device node, and the polling module 47 calls back the return application program through the Android interface definition language as follows: the polling module 47 calls back the keywords of the to-be-responded button to the application program through the Android interface definition language.
In specific practice, the keys are infrared sensing keys, handle keys or touch screen keys.
In a specific practice, the device is applied to cloud game operation, and the application program performs key response as follows: and the application program uploads the key information to the cloud server.
It can be understood that, in the Android system, in the technical scheme provided by this embodiment, a distribution link in a frame is cancelled for a specific Key on a handle, and a Linux device node reading mode is directly used, and the Linux device node is returned to APP through aidl to cancel time consumption in the frame and save link delay; in the current Android architecture, the key flow and logic are optimized.
Example 4
Based on the same technical concept, an embodiment of the present application further provides a computer device, which includes a memory 1 and a processor 2, as shown in fig. 7, where the memory 1 stores a computer program, and the processor 2 implements any one of the key response methods for an android system when executing the computer program.
The memory 1 includes at least one type of readable storage medium, which includes a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, and the like. The memory 1 may in some embodiments be an internal storage unit of the OTT video traffic monitoring system, e.g. a hard disk. The memory 1 may also be an external storage device of the OTT video service monitoring system in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like. Further, the memory 1 may also include both an internal storage unit and an external storage device of the OTT video traffic monitoring system. The memory 1 may be used to store not only application software installed in the OTT video service monitoring system and various data, such as codes of OTT video service monitoring programs, but also temporarily store data that has been output or is to be output.
The processor 2 may be a Central Processing Unit (CPU), a controller, a microcontroller, a microprocessor or other data Processing chip in some embodiments, and is used for running program codes stored in the memory 1 or Processing data, for example, executing OTT video service monitoring program and the like.
It can be understood that, in the Android system, in the technical scheme provided by this embodiment, a distribution link in a frame is cancelled for a specific Key on a handle, and a Linux device node reading mode is directly used, and the Linux device node is returned to APP through aidl to cancel time consumption in the frame and save link delay; in the current Android architecture, the key flow and logic are optimized.
The embodiment of the present disclosure further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the key response method for an android system described in the above method embodiment are executed. The storage medium may be a volatile or non-volatile computer-readable storage medium.
The computer program product for the key response method for the android system provided in the embodiment of the disclosure includes a computer-readable storage medium storing a program code, where instructions included in the program code may be used to execute steps of the key response method for the android system described in the above method embodiment, which may be specifically referred to in the above method embodiment and are not described herein again.
The embodiments disclosed herein also provide a computer program, which when executed by a processor implements any one of the methods of the preceding embodiments. The computer program product may be embodied in hardware, software or a combination thereof. In an alternative embodiment, the computer program product is embodied in a computer storage medium, and in another alternative embodiment, the computer program product is embodied in a Software product, such as a Software Development Kit (SDK), or the like.
It is understood that the same or similar parts in the above embodiments may be mutually referred to, and the same or similar parts in other embodiments may be referred to for the content which is not described in detail in some embodiments.
It should be noted that the terms "first," "second," and the like in the description of the present invention are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In addition, in the description of the present invention, the meaning of "a plurality" means at least two unless otherwise specified.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following technologies, which are well known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried out in the method of implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and the program, when executed, includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.
Claims (10)
1. A key response method for an android system is applied to a Linux real-time operating system, wherein the Linux real-time operating system presets at least two user-defined device nodes, and the method comprises the following steps:
receiving appointed key information directly sent by an application program in an internal SO mode;
transmitting the specified key information to a Linux kernel driver through the user-defined equipment node;
receiving the key information to be responded, which is directly sent by the application program in an internal SO mode;
the Linux kernel driver acquires the key information to be responded;
judging whether the key to be responded is an appointed key or not according to the key information;
if the key to be responded is not the designated key, the key to be responded is distributed to an application program in a frame, and the application program performs key response;
and if the key to be responded is the designated key, calling back to the application program through an Android interface definition language, and carrying out key response by the application program.
2. The key response method for the android system as claimed in claim 1, wherein the obtaining of the key information to be responded by the Linux kernel driver is: and the Linux kernel driver polls each equipment node to acquire the key information to be responded.
3. The key response method for the android system of claim 2, further comprising:
receiving the coded data of the key to be responded;
and sending the coded data to terminal equipment so that the terminal equipment can decode and respond to the key to be responded.
4. The key response method for the android system of claim 3, wherein the designating a key comprises: one or more of up, down, left, right, A, X, and B on the gamepad.
5. The button response method for the Android system as claimed in claim 4, wherein after the Linux kernel driver obtains the information of the button to be responded, the key word of the button to be responded is written into the custom device node, and the callback to the application program through the Android interface definition language is that: and calling back the keywords of the key to be responded to the application program through an Android interface definition language.
6. The key response method for the android system as claimed in any one of claims 1 to 5, wherein the key is an infrared sensing key, a handle key or a touch screen key.
7. The key response method for the android system as claimed in any one of claims 1 to 5, wherein the method is applied to cloud game operation, and the application performs key response as follows: and the application program uploads the key information to a cloud server.
8. A key response device for an android system is applied to a Linux real-time operating system, wherein the Linux real-time operating system presets at least two user-defined device nodes, and the device comprises:
the appointed key information receiving module is used for receiving appointed key information directly sent by an application program in an internal SO mode;
the Linux kernel transmission module is used for transmitting the specified key information to the Linux kernel driver through the user-defined device node;
the key information receiving module to be responded is used for receiving the key information to be responded, which is directly sent by the application program in an internal SO mode;
the Linux kernel driver acquires the key information to be responded;
the judging module is used for judging whether the key to be responded is an appointed key or not according to the key information;
the frame distribution module is used for distributing the key to be responded to an application program in a frame if the key to be responded is not the designated key, and the application program performs key response;
and the polling module is used for calling back the application program through an Android interface definition language if the key to be responded is the specified key, and the application program performs key response.
9. A computer device, comprising: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating over the bus when a computer device is running, the machine-readable instructions when executed by the processor performing the key response method for the android system as recited in any one of claims 1 to 7.
10. A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, performs the key response method for an android system as claimed in any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210703947.3A CN114780179B (en) | 2022-06-21 | 2022-06-21 | Key response method and device for android system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210703947.3A CN114780179B (en) | 2022-06-21 | 2022-06-21 | Key response method and device for android system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114780179A true CN114780179A (en) | 2022-07-22 |
CN114780179B CN114780179B (en) | 2022-08-19 |
Family
ID=82420810
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210703947.3A Active CN114780179B (en) | 2022-06-21 | 2022-06-21 | Key response method and device for android system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114780179B (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103316472A (en) * | 2013-05-17 | 2013-09-25 | 南京睿悦信息技术有限公司 | Android device gas platform system based on Bluetooth handle and implementation method of Android device gas platform system |
WO2014088475A1 (en) * | 2012-12-07 | 2014-06-12 | Yota Devices Ipr Ltd | Coordination of contextual display data on a display screen |
CN103927028A (en) * | 2014-04-30 | 2014-07-16 | 广州视源电子科技股份有限公司 | method for realizing side key function of electromagnetic touch pen |
US20140244362A1 (en) * | 2013-02-27 | 2014-08-28 | Tata Consultancy Services Limited | System and method to provide predictive analysis towards performance of target objects associated with organization |
CN105657551A (en) * | 2014-12-05 | 2016-06-08 | 北京奇虎科技有限公司 | Method and apparatus used by smart television to respond to analog key |
EP3147885A1 (en) * | 2015-09-28 | 2017-03-29 | The Boeing Company | Automated aircraft intent generation process based on specifications expressed in formal languages |
CN107908317A (en) * | 2017-10-27 | 2018-04-13 | 上海飞智电子科技有限公司 | Touch control device and touch control method applied to capacitance touch screen |
CN111142767A (en) * | 2019-12-16 | 2020-05-12 | 华为技术有限公司 | User-defined key method and device of folding device and storage medium |
CN111782094A (en) * | 2019-04-03 | 2020-10-16 | 上海博泰悦臻电子设备制造有限公司 | Application embedding method, terminal equipment and computer storage medium |
-
2022
- 2022-06-21 CN CN202210703947.3A patent/CN114780179B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2014088475A1 (en) * | 2012-12-07 | 2014-06-12 | Yota Devices Ipr Ltd | Coordination of contextual display data on a display screen |
US20140244362A1 (en) * | 2013-02-27 | 2014-08-28 | Tata Consultancy Services Limited | System and method to provide predictive analysis towards performance of target objects associated with organization |
CN103316472A (en) * | 2013-05-17 | 2013-09-25 | 南京睿悦信息技术有限公司 | Android device gas platform system based on Bluetooth handle and implementation method of Android device gas platform system |
CN103927028A (en) * | 2014-04-30 | 2014-07-16 | 广州视源电子科技股份有限公司 | method for realizing side key function of electromagnetic touch pen |
CN105657551A (en) * | 2014-12-05 | 2016-06-08 | 北京奇虎科技有限公司 | Method and apparatus used by smart television to respond to analog key |
EP3147885A1 (en) * | 2015-09-28 | 2017-03-29 | The Boeing Company | Automated aircraft intent generation process based on specifications expressed in formal languages |
CN107908317A (en) * | 2017-10-27 | 2018-04-13 | 上海飞智电子科技有限公司 | Touch control device and touch control method applied to capacitance touch screen |
CN111782094A (en) * | 2019-04-03 | 2020-10-16 | 上海博泰悦臻电子设备制造有限公司 | Application embedding method, terminal equipment and computer storage medium |
CN111142767A (en) * | 2019-12-16 | 2020-05-12 | 华为技术有限公司 | User-defined key method and device of folding device and storage medium |
Non-Patent Citations (2)
Title |
---|
张源: "基于Android 机顶盒手机遥控器的研究与设计", 《有线电视技术》 * |
蟹油饼: "Android入门(三)——按键响应", 《HTTPS://BLOG.CSDN.NET/QQ_47045053/ARTICLE/DETAILS/117170292?》 * |
Also Published As
Publication number | Publication date |
---|---|
CN114780179B (en) | 2022-08-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108495192B (en) | Page editing processing method and device | |
KR101467430B1 (en) | Method and system for providing application based on cloud computing | |
CN109947512B (en) | Text adaptive display method, device, server and storage medium | |
US9424053B2 (en) | Method and apparatus for displaying personalized user interface | |
CN105451087A (en) | Pushing method, terminals, historical data server and system for barrage information | |
CN101330621A (en) | Uniform video decoding and display | |
CN111625214B (en) | Audio control method, device, equipment and storage medium | |
KR102336179B1 (en) | Video data processing system | |
CN113220445A (en) | Image or video data acquisition method and terminal equipment | |
CN113542757A (en) | Image transmission method and device for cloud application, server and storage medium | |
US9798507B2 (en) | Display device and control method | |
US20190042164A1 (en) | Information processing apparatus capable of changing settings thereof, method of controlling the same, and storage medium | |
CN111510755A (en) | Audio and video switching method and device, computer equipment and readable storage medium | |
CN111796727A (en) | Interface data processing method and device | |
CN106470353A (en) | Multimedia data processing method and device and electronic equipment | |
CN111507466B (en) | Data processing method, device, electronic equipment and readable medium | |
CN114780179B (en) | Key response method and device for android system | |
CN114268796A (en) | Method and device for processing video stream | |
CN113791766A (en) | Method for combining data interfaces, electronic device and readable storage medium | |
CN111026406A (en) | Application running method, device and computer readable storage medium | |
US10630809B2 (en) | Information processing apparatus, image processing apparatus and control methods thereof | |
CN113220446A (en) | Image or video data processing method and terminal equipment | |
WO2017167049A1 (en) | Service processing method, device, and intelligent terminal | |
CN102289358A (en) | A computer-implemented method, a computer program product and an embedded system for displaying data more efficiently | |
KR102612580B1 (en) | Media providing server, method of switching to other centent through a trigger area and computer program |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |