Disclosure of Invention
The embodiment of the invention provides a method and equipment for operating a terminal shortcut key, which are used for overcoming the technical problems that the shortcut key operation desired by a user can be executed only when the user finishes all tasks before the function is fast through key operation, so that the user operates frequently and experiences poor.
In a first aspect, an embodiment of the present invention provides a method for operating a shortcut key of a terminal, including:
responding to a shortcut key operation request of a user, and displaying a shortcut key option interface on a desktop; the shortcut key option interface comprises a list of shortcut key operation options;
and responding to the triggering of a user on the operation of the target shortcut key option, and notifying a target application program APP through a preset service process so as to enable the target APP to execute the operation corresponding to the target shortcut key operation option, wherein the target shortcut key operation option is any one item in the list of the shortcut key operation options.
In one possible design, before responding to the shortcut key operation request of the user, the method further includes: and when detecting that the desktop program is started, starting and initializing a shortcut option interface, and simultaneously starting the preset service process, wherein the preset service process is used for establishing communication between the desktop program and each application program.
In one possible design, after the starting and initiating the shortcut option interface when the desktop program is detected to start, the method further includes: when any APP is detected to be started, initializing a shortcut key operation management object of the APP, wherein the shortcut key operation management object is an operation program corresponding to the shortcut key operation of the APP, and establishing communication between the APP and the desktop program; after initialization is completed, adding a shortcut key option in a registration interface of a desktop program by calling the APP; and determining the type of the shortcut key option of the APP.
In one possible design, the type of the shortcut option is a refresh shortcut option, a register shortcut option, or a close shortcut option.
In a possible design, after the control target APP performs an operation corresponding to the target shortcut key operation option, the method further includes: refreshing the target shortcut key operation options; or closing the target shortcut key operation option.
In a second aspect, an embodiment of the present invention provides a terminal shortcut key operation device, including:
the shortcut key option display unit is used for responding to a shortcut key operation request of a user and displaying a shortcut key option interface on the desktop; the shortcut key option interface comprises a list of shortcut key operation options;
and the shortcut key option operating unit is used for responding to the triggering of the target shortcut key option operation by the user and notifying the target application program APP through a preset service process so as to enable the target APP to execute the operation corresponding to the target shortcut key operation option, wherein the target shortcut key operation option is any one item in the list of the shortcut key operation options.
In one possible design, the apparatus further includes: and the shortcut key option starting unit is used for starting and initializing a shortcut key option interface when the starting of the desktop program is detected, and simultaneously starting the preset service process, wherein the preset service process is used for establishing communication between the desktop program and each application program.
In a possible design, the shortcut option starting unit is further configured to initialize a shortcut operation management object of an APP when detecting that any APP is started, where the shortcut operation management object is an operation program corresponding to a shortcut operation of the APP, and establish communication between the APP and the desktop program; after initialization is completed, adding a shortcut key option in a registration interface of a desktop program by calling the APP; and determining the type of the shortcut key option of the APP.
In a third aspect, an embodiment of the present invention provides a terminal shortcut key operation device, including: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executes computer-executable instructions stored by the memory to cause the at least one processor to perform the method of operating a shortcut key of a terminal as set forth in the first aspect above and in various possible designs of the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where computer-executable instructions are stored, and when a processor executes the computer-executable instructions, the method for operating a shortcut key of a terminal according to the first aspect and various possible designs of the first aspect is implemented.
According to the method and the device for operating the shortcut keys of the terminal, firstly, a shortcut key option interface is displayed on a desktop according to a user request; the shortcut key option interface comprises a list of shortcut key operation options; and then, according to the trigger of the user on the operation of the target shortcut key option, notifying the target application program APP to enable the target APP to execute the operation corresponding to the target shortcut key operation option, so that the user can quickly locate the desired shortcut key option in the list of the shortcut key operation options without performing other unnecessary operations, and the user operation is simple, high in efficiency and good in experience.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, 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 some, but not all, embodiments of the present invention. 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.
Fig. 1 is a schematic view of a scenario of a terminal shortcut key operation according to an embodiment of the present invention. As shown in fig. 1, the system provided by the present embodiment includes aterminal 101 and aserver 102. The embodiment does not particularly limit the implementation manner of theterminal 101 as long as theterminal 101 can interact with the user. Theterminal 101 may be a terminal device, and the embodiment of the present disclosure is not limited in any way. The terminal device related to the present disclosure may be a wireless terminal or a wired terminal. A wireless terminal may refer to a device that provides voice and/or other traffic data connectivity to a user, a handheld device having wireless connection capability, or other processing device connected to a wireless modem. A wireless terminal, which may be a mobile terminal such as a mobile telephone (or "cellular" telephone) and a computer having a mobile terminal, for example, a portable, pocket, hand-held, computer-included, or vehicle-mounted mobile device, may communicate with one or more core Network devices via a Radio Access Network (RAN), and may exchange language and/or data with the RAN. For another example, the Wireless terminal may also be a Personal Communication Service (PCS) phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA), and other devices. A wireless Terminal may also be referred to as a system, a Subscriber Unit (Subscriber Unit), a Subscriber Station (Subscriber Station), a Mobile Station (Mobile), a Remote Station (Remote Station), a Remote Terminal (Remote Terminal), an Access Terminal (Access Terminal), a User Terminal (User Terminal), a User Agent (User Agent), and a User Device or User Equipment (User Equipment), which are not limited herein. Optionally, the terminal device may also be a smart watch, a tablet computer, or the like.
In order to solve the problem that a user needs to perform a desired shortcut key operation frequently in the prior art, embodiments of the present invention provide a terminal shortcut key operation method, where a user can quickly select a target shortcut key option that the user wants to operate by displaying a shortcut key option interface, and control a corresponding APP to perform an operation of the target shortcut key option, thereby reducing user operations and improving user experience.
Fig. 2 is a first schematic flow chart of a method for operating a shortcut key of a terminal according to an embodiment of the present invention, where an execution main body of the embodiment may be the terminal in the embodiment shown in fig. 1. As shown in fig. 2, the method includes:
s201: responding to a shortcut key operation request of a user, and displaying a shortcut key option interface on a desktop; wherein the shortcut option interface comprises a list of shortcut key operation options.
In this embodiment, in response to the shortcut key operation request of the user, which may be a user triggering a target key, the terminal generates a shortcut key operation request. The target key may be any key on the terminal, such as a direction key for moving the keyboard to the right.
And displaying a shortcut key option interface on a display screen of the terminal, wherein the shortcut key option interface comprises a list of shortcut key operation options.
In this embodiment, the order of the shortcut key operation options in the list of the shortcut key operation options may be sorted according to the setting of the user. Alternatively, the ranking may also be automatic according to the user's usage data.
Specifically, the use frequency of the application program for performing the shortcut key operation by the user can be determined according to the use data of the user, and the shortcut key operation options corresponding to the application program are displayed in a sequence from high to low according to the use frequency, so that the efficiency of searching for the shortcut key to be operated by the user can be improved.
S202: responding to the triggering of a user on the operation of the target shortcut key option, and transmitting a notification to a target application program APP through a preset service process so as to enable the target APP to execute the operation corresponding to the target shortcut key operation option, wherein the target shortcut key operation option is any one item in the list of the shortcut key operation options.
In this embodiment, the target shortcut option may be any item in the list of shortcut operation options, for example, the target shortcut option is the first item in the list or one item in the middle of the list. The target shortcut key option is the shortcut key option which the user wants to operate.
Specifically, the triggering of the target shortcut key option operation by the user specifically includes:
and the user positions a target shortcut key option in the list of shortcut key operation options by operating the direction key, and then operates the confirmation key to trigger the target shortcut key option.
For example, the user operates the down key to move the selected shortcut key option downward, operates the right key to move the selected shortcut key option rightward, finds the target shortcut key option which the user wants to operate, and triggers the target shortcut key option by operating the confirm key.
The preset service process is used for realizing communication between the desktop program and each application program.
Specifically, a shortcut operation instruction is sent to the target application program APP through a preset service process, so that the target APP executes an operation corresponding to the target shortcut key operation option.
In this embodiment, after step S202, the method further includes:
refreshing the target shortcut key operation options; or closing the target shortcut key operation option.
Specifically, the operation mode of the target shortcut key operation option is determined according to the service requirement of the target APP. And if the service of the target APP needs repeated operation, executing operation for refreshing the operation option of the target shortcut key, and if the service of the target APP needs no repeated operation, executing operation for closing the operation option of the target shortcut key.
As can be seen from the above description, first, according to a user request, a shortcut key option interface is displayed on a desktop; the shortcut key option interface comprises a list of shortcut key operation options; and then, according to the trigger of the user on the operation of the target shortcut key option, notifying the target application program APP to enable the target APP to execute the operation corresponding to the target shortcut key operation option, so that the user can quickly locate the desired shortcut key option in the list of the shortcut key operation options without performing other unnecessary operations, and the user operation is simple, high in efficiency and good in experience.
Fig. 3 is a second schematic flowchart of a method for operating a shortcut key of a terminal according to an embodiment of the present invention, and this embodiment explains in detail how to start a specific implementation process of a preset service process before step S101 on the basis of the embodiment of fig. 2. As shown in fig. 3, the method includes:
s301: and when detecting that the desktop program is started, starting and initializing a shortcut option interface, and simultaneously starting the preset service process, wherein the preset service process is used for establishing communication between the desktop program and each application program.
Specifically, the detection of the desktop program starting comprises the following steps: and detecting that the terminal is started or detecting that the desktop program of the terminal is reloaded into the foreground of the terminal to run.
In this embodiment, in the process of starting the shortcut option interface, a preset service process is started at the same time, where the preset service process is a service port of an Android interface definition language and is used for communication interaction between a desktop program and each application program.
Specifically, when the shortcut key option interface is initialized, an initial shortcut key option program is loaded to prepare for a user to open a shortcut option or perform shortcut option operation.
S302: responding to a shortcut key operation request of a user, and displaying a shortcut key option interface on a desktop; wherein the shortcut option interface comprises a list of shortcut key operation options.
S303: and responding to the triggering of the user on the target shortcut key option operation, and transmitting and informing the target application program APP through a preset service process so that the target APP executes the operation corresponding to the target shortcut key operation option.
In this embodiment, the contents of steps S302 to S303 are the same as the contents of steps S201 to S202, and for detailed details, the description of steps S201 to S202 is referred to, which is not repeated herein.
From the above description, when the desktop program is started, the shortcut option interface is started and initialized, and the preset service process is started, so that preparation can be made for opening the shortcut option or performing shortcut option operation.
Fig. 4 is a third schematic flowchart of a method for operating a shortcut key of a terminal according to an embodiment of the present invention, and this embodiment describes, on the basis of the embodiment of fig. 3, how to implement a specific implementation process of adding a shortcut key option to an APP on a terminal after step S301 in detail. As shown in fig. 4, the method includes:
s401: when any APP is detected to be started, initializing a shortcut key operation management object of the APP, wherein the shortcut key operation management object is an operation program corresponding to the shortcut key operation of the APP, and establishing communication between the APP and the desktop program.
In this embodiment, detecting any APP start includes: detecting a user manually starting APP; or detecting that APP is automatically started. Whether APP is automatically started is related to the type of APP.
And after the APP receives the shortcut operation instruction, executing the processing process of the APP according to the corresponding operation program.
The number of shortcut key operation management objects of any AAP may be one or more, and the present invention is not limited thereto.
Specifically, communication of the APP with the desktop program can be established through the Binder.
S402: and after the initialization is completed, adding a shortcut key option in a registration interface of the desktop program by calling the APP.
In this embodiment, the registration interface of the APP in the desktop program is an interface when the APP is installed or when the user logs in.
Specifically, the shortcut key option is added to the list of the shortcut key operation options of the shortcut key option interface through the registration interface.
S403: and determining the type of the shortcut key option of the APP.
In this embodiment, the type of the shortcut option includes a refresh shortcut option, a register shortcut option, or a close shortcut option.
As can be seen from the above description, through APP start, a shortcut key operation management object is initialized and communication between the APP and the desktop program is established, and then a shortcut key option is added through a registration interface and the type of the shortcut key option is determined, so that a process of adding a shortcut key operation option to any APP configuration is realized.
Fig. 5 is a schematic structural diagram of a terminal shortcut key operation device according to an embodiment of the present invention. As shown in fig. 5, the terminal shortcut key operation device 50 includes: a shortcutoption display unit 501 and a shortcutoption operating unit 502.
The shortcut keyoption display unit 501 is configured to respond to a shortcut key operation request of a user and display a shortcut key option interface on a desktop; the shortcut key option interface comprises a list of shortcut key operation options;
the shortcut keyoption operating unit 502 is configured to respond to triggering of a user on a target shortcut key option operation, notify a target application APP through a preset service process, so that the target APP executes an operation corresponding to the target shortcut key operation option, where the target shortcut key operation option is any one in the list of shortcut key operation options.
The device provided in this embodiment may be used to implement the technical solution of the above method embodiment, and the implementation principle and technical effect are similar, which are not described herein again.
In one possible design, the apparatus further includes: a shortcutoption starting unit 503, configured to start and initialize a shortcut option interface when it is detected that the desktop program is started, and start the preset service process, where the preset service process is used to establish communication between the desktop program and each application program.
In a possible design, the shortcutoption starting unit 503 is further configured to initialize a shortcut operation management object of an APP when detecting that any APP is started, where the shortcut operation management object is an operation program corresponding to a shortcut operation of the APP, and establish communication between the APP and the desktop program; after initialization is completed, adding a shortcut key option in a registration interface of a desktop program by calling the APP; and determining the type of the shortcut key option of the APP.
In one possible design, the type of the shortcut option is a refresh shortcut option, a register shortcut option, or a close shortcut option.
In a possible design, the shortcutoption operating unit 502 is further configured to refresh the target shortcut operation option; or closing the target shortcut key operation option.
The device provided in this embodiment may be used to implement the technical solution of the above method embodiment, and the implementation principle and technical effect are similar, which are not described herein again.
Fig. 6 is a schematic diagram of a hardware structure of a terminal shortcut key operation device according to an embodiment of the present invention. As shown in fig. 6, the terminal shortcut key operation device 60 of the present embodiment includes: aprocessor 601 and amemory 602; wherein
Amemory 602 for storing computer-executable instructions;
aprocessor 601 for executing computer executable instructions stored by the memory to implement the steps performed in the above-described method embodiments. Reference may be made in particular to the description relating to the method embodiments described above.
Alternatively, thememory 602 may be separate or integrated with theprocessor 601.
When thememory 602 is provided separately, the terminal shortcut key operating device further includes abus 603 for connecting thememory 602 and theprocessor 601.
The embodiment of the invention also provides a computer-readable storage medium, wherein a computer execution instruction is stored in the computer-readable storage medium, and when a processor executes the computer execution instruction, the method for operating the shortcut key of the terminal is implemented.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the modules is only one logical division, and other divisions may be realized in practice, for example, a plurality of modules may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to implement the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each module may exist alone physically, or two or more modules are integrated into one unit. The unit formed by the modules can be realized in a hardware form, and can also be realized in a form of hardware and a software functional unit.
The integrated module implemented in the form of a software functional module may be stored in a computer-readable storage medium. The software functional module is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) or a processor to execute some steps of the methods described in the embodiments of the present application.
It should be understood that the Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor, or in a combination of the hardware and software modules within the processor.
The memory may comprise a high-speed RAM memory, and may further comprise a non-volatile storage NVM, such as at least one disk memory, and may also be a usb disk, a removable hard disk, a read-only memory, a magnetic or optical disk, etc.
The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (Extended Industry Standard Architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, the buses in the figures of the present application are not limited to only one bus or one type of bus.
The storage medium may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be integral to the processor. The processor and the storage medium may reside in an Application Specific Integrated Circuits (ASIC). Of course, the processor and the storage medium may reside as discrete components in an electronic device or host device.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.