CN108958863A - The function triggering method and device of application program - Google Patents

The function triggering method and device of application program Download PDF

Info

Publication number
CN108958863A
CN108958863A CN201810646327.4A CN201810646327A CN108958863A CN 108958863 A CN108958863 A CN 108958863A CN 201810646327 A CN201810646327 A CN 201810646327A CN 108958863 A CN108958863 A CN 108958863A
Authority
CN
China
Prior art keywords
key
application program
function
terminal
object run
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.)
Pending
Application number
CN201810646327.4A
Other languages
Chinese (zh)
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.)
Xi'an Bee Language Mdt Infotech Ltd
Original Assignee
Xi'an Bee Language Mdt Infotech 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 Xi'an Bee Language Mdt Infotech Ltd filed Critical Xi'an Bee Language Mdt Infotech Ltd
Priority to CN201810646327.4A priority Critical patent/CN108958863A/en
Publication of CN108958863A publication Critical patent/CN108958863A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • 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/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The disclosure is directed to the function triggering methods and device of a kind of application program, this method comprises: setting the object run for target physical key in terminal as the operation of the objective function of triggering application program;When detecting the object run for the target physical key of the terminal, the objective function of the application program is executed.The technical solution can be in the case where application program switches to backstage or terminal screen extinguishes, the physical button that carry user can still by terminal realizes the objective function of application program, and using physical button can be used family grip terminal it is more stable, there is better key to feed back, user experience is more preferably.

Description

The function triggering method and device of application program
Technical field
This disclosure relates to the function triggering method and device of field of terminal technology more particularly to application program.
Background technique
It is provided with virtual key in the application program of terminal, this can be triggered and answer by carrying out the operation such as pressing to the virtual key Some function is executed with program, since virtual key can only design in the screen of terminal, user needs the feelings in handheld terminal Virtual key, malfunction, and terminal are pressed on the screen with thumb (or another hand) again under condition is not easy to grab steady, appearance Terminal is easily caused to fall;Moreover, the virtual key may only display in the user interface of end application, if application program The virtual key of call can not just be seen, also just not be available its corresponding function by being switched to backstage or terminal breath screen, user.
Summary of the invention
The embodiment of the present disclosure provides the function triggering method and device of a kind of application program, can switch in application program In the case that backstage or terminal screen extinguish, the physical button that carry user can still by terminal realizes application program Objective function, and it is more stable using physical button to can be used family grip terminal, has better key to feed back, user uses body It tests more preferably.The technical solution is as follows:
According to the first aspect of the embodiments of the present disclosure, a kind of function triggering method of application program is provided, comprising:
The object run for target physical key in terminal is set as the operation of the objective function of triggering application program;
When detecting the object run for the target physical key of the terminal, the target of the application program is executed Function.
In one embodiment, described to set the object run for target physical key in terminal to trigger application program Objective function operation, comprising:
Obtain the information of the object run of the target physical key of input;
The key assignments of each physical button of terminal is obtained, the key assignments includes the key-press event of the physical button;
According to the key assignments, the described of the corresponding triggering application program of object run of the target physical key is set Objective function.
In one embodiment, the method also includes:
The key assignments of input is obtained, the key assignments includes the key-press event of the physical button;
According to the key-press event of the physical button, judge whether to detect the target physical key for the terminal Object run.
In one embodiment, described when detecting the object run for the target physical key of terminal, execute institute State the objective function of application program, comprising:
Running background or the application program are switched in front stage operation in the application program and terminal is in breath screen In the case where state, when detecting the object run for the target physical key of terminal, the mesh of the application program is executed Mark function.
In one embodiment, the target physical key includes at least one physical button, and the object run includes Long press operation, single-click operation, double click operation or three hit operation.
In one embodiment, the objective function includes channel switching function, screenshotss function, camera function, recording function Energy, sharing function or encryption function.
According to the second aspect of an embodiment of the present disclosure, a kind of function trigger device of application program is provided, comprising:
Setting module, for setting target of the object run for being directed to target physical key in terminal to trigger application program The operation of function;
Execution module, for when detecting the object run for the target physical key of the terminal, described in execution The objective function of application program.
In one embodiment, the setting module includes:
First acquisition submodule, the information of the object run of the target physical key for obtaining input;
Second acquisition submodule, the key assignments of each physical button for obtaining terminal, the key assignments include the physics by The key-press event of key;
Submodule is set, for setting the corresponding triggering institute of object run of the target physical key according to the key assignments State the objective function of application program.
In one embodiment, described device further include:
Module is obtained, for obtaining the key assignments of input, the key assignments includes the key-press event of the physical button;
Judgment module judges whether to detect for the terminal for the key-press event according to the physical button The object run of target physical key.
In one embodiment, the execution module includes:
Implementation sub-module, for being switched to running background or the application program in front stage operation in the application program And in the case that terminal is in breath screen state, when detecting the object run for the target physical key of terminal, execute institute State the objective function of application program.
In one embodiment, the target physical key includes at least one physical button, and the object run includes Long press operation, single-click operation, double click operation or three hit operation.
In one embodiment, the objective function includes channel switching function, screenshotss function, camera function, recording function Energy, sharing function or encryption function.
According to the third aspect of an embodiment of the present disclosure, a kind of function trigger device of application program is provided, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
The object run for target physical key in terminal is set as the operation of the objective function of triggering application program;
When detecting the object run for the target physical key of the terminal, the target of the application program is executed Function.
According to a fourth aspect of embodiments of the present disclosure, a kind of computer readable storage medium is provided, computer is stored with and refers to It enables, the step in the above method is realized when the computer instruction is executed by processor.
The technical scheme provided by this disclosed embodiment can include the following benefits: the present embodiment can set and be directed to The object run of target physical key is to trigger the operation of the objective function of application program in terminal;It is detecting for the end When the object run of the target physical key at end, the objective function of the application program is executed, is somebody's turn to do in this way, user only needs to be directed to The object run of target physical key-press input can trigger the objective function of application program, without being always held at application program It is triggered in user interface, in the case that application program switches to backstage or terminal screen extinguishes, user can still lead to Cross the objective function that the included physical button of terminal realizes application program;In addition, user is when holding terminal without specially reserving One finger presses the virtual key on screen to trigger objective function, and grip is more stable, and physical button has compared with virtual key Better key feedback, user experience is more preferably.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 is a kind of flow chart of the function triggering method of application program shown according to an exemplary embodiment.
Fig. 2 is a kind of flow chart of the function triggering method of application program shown according to an exemplary embodiment.
Fig. 3 is a kind of flow chart of the function triggering method of application program shown according to an exemplary embodiment.
Fig. 4 is a kind of flow chart of the function triggering method of application program shown according to an exemplary embodiment.
Fig. 5 is a kind of block diagram of the function trigger device of application program shown according to an exemplary embodiment.
Fig. 6 is a kind of block diagram of the function trigger device of application program shown according to an exemplary embodiment.
Fig. 7 is a kind of block diagram of the function trigger device of application program shown according to an exemplary embodiment.
Fig. 8 is a kind of block diagram of the function trigger device of application program shown according to an exemplary embodiment.
Fig. 9 is a kind of block diagram of the function trigger device of application program shown according to an exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
Fig. 1 is a kind of flow chart of the function triggering method of application program shown according to an exemplary embodiment, such as Fig. 1 Shown, the function triggering method of the application program is for including the following steps 101-102 in the equipment such as terminal:
In a step 101, the object run for target physical key in terminal is set as the target of triggering application program The operation of function.
In a step 102, it when detecting the object run for the target physical key of the terminal, is answered described in execution With the objective function of program.
Here, application program can redefine the target physical key in terminal, will press for target physical in terminal The object run of key is set as the operation of the objective function of application program, in this way, in the objective function for needing to be implemented application program When, user can be directed to the target physical key-press input object run of terminal, and terminal can detect this for the terminal Target physical key object run, in this way, terminal can execute the objective function of the application program.
It is exemplary, for some application programs with voice call function, can be set in the user interface of the application program It sets a virtual talk button and presses virtual key when needing to carry out voice communication, just trigger voice collecting function, application Program can acquire user speech by microphone, and user unclamps the virtual key, just trigger voice sending function, and transmission is just adopted The voice data of collection.Since virtual key can only design in the display screen of terminal, user needs the handheld terminal the case where Under again with thumb (or another hand) pressed among screen virtual key, malfunction, and terminal be not easy to be grabbed it is steady, It is easy to cause terminal to fall.Therefore in the present embodiment, which can set first for target physical key in terminal Object run such as volume-key pressing operation is the operation for triggering the voice collecting function of application program, and setting is in terminal The object run of target physical key such as volume-key is the language for triggering application program from the handover operation for being switched to release is pressed The operation of sound sending function;In this way, user when needing the voice call function using the application program, can press volume- Key, input are directed to pressing volume-key pressing operation, and then user can speak, and terminal is being detected for volume-key Pressing operation after, so that it may execute voice collecting function, acquire the voice of user;User can unclamp this after finishing words Volume-key, at this point, terminal can detect the handover operation for being switched to release from pressing for volume-key, terminal will Voice sending function is executed, collected user speech is sent.By above-mentioned example it is found that user can be by pressing sound Amount-key carries out voice communication, and usage experience more preferably, closer to the key dialogue state of traditional intercom, can keep using Family inertial habits of application, button operation have preferably pressing feedback, and user uses also more convenient.
Certainly, application program only is triggered for the object run of target physical key in terminal in application setting Objective function operation after, just can detect for the terminal target physical key object run when, execute institute State the objective function of application program;Other operations for other physical buttons in terminal, terminal still execute after detecting The corresponding function of the operation of being defined before terminal system.
What needs to be explained here is that most suitable target physical key can be set as touching by user according to their needs The key of the objective function is sent out, in this way, object run only slightly need to firmly can be completed in normal grip by user, journey is applied in triggering The objective function of sequence, user trigger mesh without specially reserving the virtual key on a finger pressing screen when holding terminal Function is marked, is held more stable.
The present embodiment can set the object run for target physical key in terminal as the target of triggering application program The operation of function;When detecting the object run for the target physical key of the terminal, the application program is executed Objective function, in this way, user only needs to trigger the mesh of application program for the target physical key-press input object run Function is marked, is triggered without being always held in the user interface of application program, when application program switches to backstage or terminal In the case that screen extinguishes, the physical button that user can still be carried by terminal realizes objective function;In addition, user is holding Objective function is triggered without specially reserving the virtual key on a finger pressing screen when holding terminal, grip is more stable, and Physical button has better key to feed back compared with virtual key, and user experience is more preferably.
In a kind of possible embodiment, Fig. 2 is a kind of function of application program shown according to an exemplary embodiment The flow chart of energy triggering method, as shown in Fig. 2, step 101 may be embodied as following steps 1011 and step 1012.
In step 1011, the information of the object run of the target physical key of input is obtained.
In step 1012, obtain the key assignments of each physical button of terminal, the key assignments include the physical button by Key events.
In step 1013, according to the key assignments, set described in the corresponding triggering of object run of the target physical key The objective function of application program.
It here, may include a key defined interface in the user interface of application program, user can be according to oneself Needs, input triggers the target physical key of the objective function of the application program in the key defined interface The information of object run, exemplary, user wants objective function-screenshotss function that application program is triggered with physical button, uses Family can be sound in the information that the key defined interface inputs the object run of target physical key for triggering the screenshotss function Amount+key long press operation, in this way, the application program is known that user wants to trigger using volume+key long press operation using journey The screenshotss function of sequence.
Here, the available key assignments to each physical button in terminal of application program, the key assignments include the physics by The key-press event of key, the i.e. key assignments include that the information of physical button and key-press event such as press event and release event.Show Example, the pressing operation of the corresponding volume+key of key assignments 1, the release operation of the corresponding volume+key of key assignments 2.
Here, application program can redefine the object run of target physical key according to the key assignments got, if Surely for the corresponding objective function for triggering the application program of the object run of the target physical key of the terminal, example , it is assumed that the object run of target physical key is volume+key long press operation, the corresponding key assignments of volume+key pressing operation For key assignments 1, it is more than that the corresponding key assignments 2 of release event has not been obtained in preset time such as 1S that application program, which can define and obtain key assignments 1, The then corresponding objective function for triggering the application program, in this way, application program just sets volume+key for the terminal The corresponding objective function for triggering the application program of long press operation.Alternatively, exemplary, it is assumed that the mesh of target physical key Mark operation is volume+key double click operation, and the corresponding key assignments of volume+key pressing operation is key assignments 1, and application program can define The objective function of the corresponding triggering application program of key assignments 1 twice is obtained in 1S, in this way, application program is just set for the terminal The corresponding triggering application program of volume+key double click operation objective function.
The present embodiment can first obtain the information of the object run of the target physical key of input, obtain eventually in this way After the key assignments of each physical button at end, so that it may according to these key assignments, mesh of the setting for the target physical key of the terminal The corresponding objective function for triggering the application program of mark operation, setting process are simply accurate.
In a kind of possible embodiment, Fig. 3 is a kind of function of application program shown according to an exemplary embodiment The flow chart of energy triggering method, as shown in figure 3, the function triggering method of above-mentioned application program can also include step 103 and step Rapid 104.
In step 103, the key assignments of input is obtained, the key assignments includes the key-press event of the physical button.
At step 104, according to the key-press event of the physical button, judge whether to detect the mesh for the terminal Mark the object run of physical button.
Here, suppose that the object run of the target physical key of terminal is volume+key long press operation, volume+key is pressed The corresponding key assignments of press operation is key assignments 1, and the corresponding key assignments of volume+key pressing operation is key assignments 2, and user is wanting triggering application It, can be with long-pressing volume+key, at this point, application program can get the key of user's input when the objective function of program such as screenshotss function Simultaneously key assignments 2 has not been obtained in 1S in value 1, at this point, application program can according to volume+key pressing operation that key assignments 1 includes, and The duration of pressing determines volume+key long press operation of user's input, that is, confirmly detects the target physical for the terminal The object run of key.
The key assignments of the available input of the present embodiment, the key assignments include the key-press event of the physical button;And according to The key-press event of the physical button judges whether the object run for detecting the target physical key for the terminal, really It is simply accurate to determine mode.
In a kind of possible embodiment, Fig. 4 is a kind of function of application program shown according to an exemplary embodiment The flow chart of energy triggering method, as shown in figure 4, the step 102 in the function triggering method of above-mentioned application program may be embodied as Following steps 1021.
In step 1021, the case where the application program is switched to running background or terminal is in breath screen state Under, when detecting the object run for the target physical key of terminal, execute the objective function of the application program.
Here, running background or the application program are switched in front stage operation in the application program and terminal is in In the case where ceasing screen state, the user interface of application program cannot be shown on the screen of terminal, at this point, user answers in desired triggering When with the objective function of program, the object run of the target physical key for terminal can be inputted, in this way, terminal is detecting For the target physical key of terminal object run when, so that it may execute the objective function of the application program.
What needs to be explained here is that since the physical button in current terminal is all seldom, in order to increase making for physical button With efficiency, in the case where application program is in front stage operation and terminal is in bright screen state, application program is can be used in user Virtual key in user interface triggers objective function, the function that realization system defines and target physical key can remain unchanged.
The present embodiment in the application program can be switched to running background or the application program in front stage operation and In the case that terminal is in breath screen state, it can just be executed when detecting the object run for the target physical key of terminal The objective function of the application program, and in the case where application program is in front stage operation and terminal is in bright screen state, user The virtual key in the user interface of application program can be used to trigger objective function, and target physical key can be still real The function that existing system defines, increases the service efficiency of physical button.
In a possible embodiment, the target physical key in the function triggering method of above-mentioned application program includes extremely A few physical button, the object run include long press operation, single-click operation, double click operation or three hit operation.
Here, which can be a physical button, be also possible to two physical buttons, exemplary, right In some application programs with sound-recording function, it is assumed that the target physical key can be volume-key and closing key, application program The operation of sound-recording function of the pressing operation to trigger application program while volume-key and closing key can be set;It is assumed that The corresponding key assignments of volume-key pushing operation be key assignments 3, closing key the corresponding key assignments of pushing operation be key assignments 4, application program It may be set in preset time period and trigger the sound-recording function of application program when obtaining key assignments 3 and key assignments 4, in this way, just setting institute State the corresponding objective function for triggering the application program of object run of target physical key.In this way, user is wanting record When sound, volume-key and closing key can be pressed simultaneously, when application program gets key assignments 3 and key assignments 4 within a preset period of time, It is judged as detecting the object run of the target physical key for the terminal, application program can execute the application at this time The sound-recording function of program, quick start sound-recording function plays the effect of recording pen, it is, of course, also possible to cooperate speech-to-text Function realizes rapidly inputting for text.
Here, which may include long press operation, single-click operation, double click operation or three hits operation etc. for physics The various operations of key.
The present embodiment can include at least one physical button with target physical key, and the object run includes long-pressing behaviour Work, single-click operation, double click operation or three hit operation, can be by the target physical key and object run of diversified forms for applying journey Sequence setting, set-up mode are varied.
In a possible embodiment, the objective function in the function triggering method of above-mentioned application program includes that channel is cut Change function, screenshotss function, camera function, sound-recording function, sharing function or encryption function.
Here, for different types of application program, the various object runs triggering of each physical button can be redefined Other specific objective functions may be implemented more easily to operate.
Here, which can be channel switching function, which can be intercom, and intercom has many frequencies Road each is kept away primarily to meeting client and needing to converse between numerous department or unit in actual use with each channel Exempt to interfere with each other, as long as needing to be switched to corresponding channel with other department or unit call and converse.It is pair with hotel Say the usage scenario of machine, in the hotel there are four department-foreground, keep a public place clean, ensure public security, repairing, this four departments use intercommunication respectively Four channels in machine are kept a public place clean using channel 2, security personnel use channel 4, this reality using channel 3, maintenance if foreground uses channel 1 Apply the operation for the channel switching that example can be set for volume+key long press operation on intercom to trigger application program;This Sample, on certain foreground personnel come round knows cleaning worker to the beverage that spills of lounge cleaning client, then can with long-pressing volume+key, Intercom can detect volume+key long press operation for the intercom in this way, and intercom is carried out the frequency Road handoff functionality is switched to channel 2, converses with cleaning worker.
Here, which can also be camera function or screenshotss function, can press certain physics in the application program Some operation setting of key is to trigger the operation of the camera function of application program, in this way, in everyday scenes or needing snapshots Occasion, more convenient and fast snapshots may be implemented.Flying bird is such as shot, noiseless record violation vehicle etc. during traffic police on duty. It can also be the operation for triggering the screenshotss function of application program by some operation setting of certain physical button of terminal, be clapped in video During taking the photograph, picture that can quickly in screen printing.Certainly, which can be with screenshotss+sharing function, can be by end Some operation setting of certain physical button at end is to trigger screenshotss+sharing function operation of application program, in video capture mistake Cheng Zhong can quickly the picture in screen printing and share to preset websites such as social network sites.
Here, which can be sound-recording function, which can be by certain of some physical button of terminal A operation setting is the operation of triggering recording, presses the button sound-recording function capable of fast starting, the effect of recording pen is played, using journey Sequence can also cooperate the function of speech-to-text, to realize rapidly inputting for text.Alternatively, the objective function can also be position Some operation setting of some physical button of terminal can be the behaviour that trigger position is shared by sharing function, the application program Make, position can be shared with preset contact person in real time, can be used on position by the operation that user inputs the physical button It passes or tracing point records.If user has formed group, user can easily see other people position in group.
Here, which can also be emergency function, which can be with certain of some physical button of terminal A operation setting is to trigger the operation of SOS emergency function, and in case of emergency, user can be by the physical button quickly to default Contact person send distress signals.Alternatively, the objective function can also be that encryption or hiding software function, the application program can be with By the trigger action of encryption or hidden function that some operation setting of some physical button is specific software, when emergency event is sent out When raw, user can be quickly locked or hiding by software by the physical button, guarantees oneself economy and personal secrets.
Objective function in the present embodiment may include channel switching function, screenshotss function, camera function, sound-recording function, Sharing function or encryption function can redefine the various mesh of each physical button in this way, being directed to different types of application program Mark operation triggers other specific objective functions, may be implemented more easily to operate.
Following is embodiment of the present disclosure, can be used for executing embodiments of the present disclosure.
Fig. 5 is a kind of block diagram of the function trigger device of application program shown according to an exemplary embodiment, the device It being implemented in combination with as some or all of of electronic equipment by software, hardware or both.As shown in figure 5, this is answered Include: with the function trigger device of program
Setting module 501, for setting the object run for being directed to target physical key in terminal as triggering application program The operation of objective function;
Execution module 502, for executing institute when detecting the object run for the target physical key of the terminal State the objective function of application program.
As a kind of possible embodiment, Fig. 6 is a kind of function of application program shown according to an exemplary embodiment The block diagram of trigger device, as shown in fig. 6, the function trigger device of application program disclosed above can also be the setting module 501 are configured to include the first acquisition submodule 5011, the second acquisition submodule 5012 and setting submodule 5013, in which:
First acquisition submodule 5011, the information of the object run of the target physical key for obtaining input;
Second acquisition submodule 5012, the key assignments of each physical button for obtaining terminal, the key assignments includes the object Manage the key-press event of key;
Submodule 5013 is set, for setting the corresponding touching of object run of the target physical key according to the key assignments The objective function for sending out application program described.
As a kind of possible embodiment, Fig. 7 is a kind of function of application program shown according to an exemplary embodiment The block diagram of trigger device, as shown in fig. 7, the function trigger device of application program disclosed above can be configured to include obtaining Modulus block 503 and judgment module 504, in which:
Module 503 is obtained, for obtaining the key assignments of input, the key assignments includes the key-press event of the physical button;
Judgment module 504 judges whether to detect for the terminal for the key-press event according to the physical button Target physical key object run.
As a kind of possible embodiment, Fig. 8 is a kind of function of application program shown according to an exemplary embodiment The block diagram of trigger device, as shown in figure 8, the function trigger device of application program disclosed above can also be the execution module 502 are configured to include implementation sub-module 5021, in which:
Implementation sub-module 5021, for being switched to running background or the application program on foreground in the application program Operation and terminal be in breath screen state in the case where, detect for terminal target physical key object run when, hold The objective function of the row application program.
As a kind of possible embodiment, in the function trigger device of application program disclosed above, the target physical Key includes at least one physical button, and the object run includes long press operation, single-click operation, double click operation or three hits behaviour Make.
As a kind of possible embodiment, in the function trigger device of application program disclosed above, the objective function Including channel switching function, screenshotss function, camera function, sound-recording function, sharing function or encryption function.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, no detailed explanation will be given here.
Fig. 9 is a kind of block diagram of the function trigger device of application program shown according to an exemplary embodiment, the device Suitable for terminal device.For example, device 900 can be mobile phone, game console, computer, tablet device, individual digital helped Reason etc..
Device 900 may include following one or more components: processing component 901, memory 902, power supply module 903, Multimedia component 904, audio component 905, input/output (I/O) interface 906, sensor module 907 and communication component 908。
The integrated operation of the usual control device 900 of processing component 901, such as with display, telephone call, data communication, phase Machine operation and record operate associated operation.Processing component 901 may include that one or more processors 920 refer to execute It enables, to perform all or part of the steps of the methods described above.In addition, processing component 901 may include one or more modules, just Interaction between processing component 901 and other assemblies.For example, processing component 901 may include multi-media module, it is more to facilitate Interaction between media component 904 and processing component 901.
Memory 902 is configured as storing various types of data to support the operation in device 900.These data are shown Example includes the instruction of any application or method for operating on device 900, contact data, and telephone book data disappears Breath, picture, video etc..Memory 902 can be by any kind of volatibility or non-volatile memory device or their group It closes and realizes, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 903 provides electric power for the various assemblies of device 900.Power supply module 903 may include power management system System, one or more power supplys and other with for device 900 generate, manage, and distribute the associated component of electric power.
Multimedia component 904 includes the screen of one output interface of offer between described device 900 and user.One In a little embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensings Device is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakers Body component 904 includes a front camera and/or rear camera.When device 900 is in operation mode, such as screening-mode or When video mode, front camera and/or rear camera can receive external multi-medium data.Each front camera and Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 905 is configured as output and/or input audio signal.For example, audio component 905 includes a Mike Wind (MIC), when device 900 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched It is set to reception external audio signal.The received audio signal can be further stored in memory 902 or via communication set Part 908 is sent.In some embodiments, audio component 905 further includes a loudspeaker, is used for output audio signal.
The interface 906 of I/O provides interface, above-mentioned peripheral interface module between processing component 901 and peripheral interface module It can be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and Locking press button.
Sensor module 907 includes one or more sensors, and the state for providing various aspects for device 900 is commented Estimate.For example, sensor module 907 can detecte the state that opens/closes of device 900, and the relative positioning of component, for example, it is described Component is the display and keypad of device 900, and sensor module 907 can be with 900 1 components of detection device 900 or device Position change, the existence or non-existence that user contacts with device 900,900 orientation of device or acceleration/deceleration and device 900 Temperature change.Sensor module 907 may include proximity sensor, be configured to detect without any physical contact Presence of nearby objects.Sensor module 907 can also include optical sensor, such as CMOS or ccd image sensor, at As being used in application.In some embodiments, which can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 908 is configured to facilitate the communication of wired or wireless way between device 900 and other equipment.Device 900 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.In an exemplary implementation In example, communication component 908 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 908 further includes near-field communication (NFC) module, to promote short range communication.Example Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 900 can be believed by one or more application specific integrated circuit (ASIC), number Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 902 of instruction, above-metioned instruction can be executed by the processor 920 of device 900 to complete the above method.For example, The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk With optical data storage devices etc..
A kind of computer readable storage medium is present embodiments provided, when the instruction in the storage medium is by device 900 Processor execute when perform the steps of
The object run for target physical key in terminal is set as the operation of the objective function of triggering application program;
When detecting the object run for the target physical key of the terminal, the target of the application program is executed Function.
Instruction in the storage medium can also perform the steps of when being executed by processor
It is described to set the object run for target physical key in terminal as the behaviour of the objective function of triggering application program Make, comprising:
Obtain the information of the object run of the target physical key of input;
The key assignments of each physical button of terminal is obtained, the key assignments includes the key-press event of the physical button;
According to the key assignments, the described of the corresponding triggering application program of object run of the target physical key is set Objective function.
Instruction in the storage medium can also perform the steps of when being executed by processor
The method also includes:
The key assignments of input is obtained, the key assignments includes the key-press event of the physical button;
According to the key-press event of the physical button, judge whether to detect the target physical key for the terminal Object run.
Instruction in the storage medium can also perform the steps of when being executed by processor
It is described detect for terminal target physical key object run when, execute the target of the application program Function, comprising:
Running background or the application program are switched in front stage operation in the application program and terminal is in breath screen In the case where state, when detecting the object run for the target physical key of terminal, the mesh of the application program is executed Mark function.
Instruction in the storage medium can also perform the steps of when being executed by processor
The target physical key includes at least one physical button, and the object run includes long press operation, clicks behaviour Work, double click operation or three hit operation.
The present embodiment additionally provides a kind of function trigger device of application program, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
The object run for target physical key in terminal is set as the operation of the objective function of triggering application program;
When detecting the object run for the target physical key of the terminal, the target of the application program is executed Function.
The processor can be additionally configured to:
It is described to set the object run for target physical key in terminal as the behaviour of the objective function of triggering application program Make, comprising:
Obtain the information of the object run of the target physical key of input;
The key assignments of each physical button of terminal is obtained, the key assignments includes the key-press event of the physical button;
According to the key assignments, the described of the corresponding triggering application program of object run of the target physical key is set Objective function.
The processor can be additionally configured to:
The method also includes:
The key assignments of input is obtained, the key assignments includes the key-press event of the physical button;
According to the key-press event of the physical button, judge whether to detect the target physical key for the terminal Object run.
The processor can be additionally configured to:
It is described detect for terminal target physical key object run when, execute the target of the application program Function, comprising:
Running background or the application program are switched in front stage operation in the application program and terminal is in breath screen In the case where state, when detecting the object run for the target physical key of terminal, the mesh of the application program is executed Mark function.
The processor can be additionally configured to:
The target physical key includes at least one physical button, and the object run includes long press operation, clicks behaviour Work, double click operation or three hit operation.
Those skilled in the art will readily occur to its of the disclosure after considering specification and practicing disclosure disclosed herein Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (10)

1. a kind of function triggering method of application program characterized by comprising
The object run for target physical key in terminal is set as the operation of the objective function of triggering application program;
When detecting the object run for the target physical key of the terminal, the target function of the application program is executed Energy.
2. the method according to claim 1, wherein target of the setting for target physical key in terminal Operation is the operation of the objective function of triggering application program, comprising:
Obtain the information of the object run of the target physical key of input;
The key assignments of each physical button of terminal is obtained, the key assignments includes the key-press event of the physical button;
According to the key assignments, the corresponding target for triggering the application program of object run of the target physical key is set Function.
3. the method according to claim 1, wherein the method also includes:
The key assignments of input is obtained, the key assignments includes the key-press event of the physical button;
According to the key-press event of the physical button, judge whether the target for detecting the target physical key for the terminal Operation.
4. the method according to claim 1, wherein described detecting the target physical key for being directed to terminal When object run, the objective function of the application program is executed, comprising:
Running background or the application program are switched in front stage operation in the application program and terminal is in breath screen state In the case where, when detecting the object run for the target physical key of terminal, execute the target function of the application program Energy.
5. the method according to claim 1, wherein the target physical key include at least one physics by Key, the object run include long press operation, single-click operation, double click operation or three hit operation.
6. the method according to claim 1, wherein the objective function includes channel switching function, screenshotss function Energy, camera function, sound-recording function, sharing function or encryption function.
7. a kind of function trigger device of application program characterized by comprising
Setting module, for setting objective function of the object run for being directed to target physical key in terminal to trigger application program Operation;
Execution module, for executing the application when detecting the object run for the target physical key of the terminal The objective function of program.
8. device according to claim 7, which is characterized in that the setting module includes:
First acquisition submodule, the information of the object run of the target physical key for obtaining input;
Second acquisition submodule, the key assignments of each physical button for obtaining terminal, the key assignments includes the physical button Key-press event;
Submodule is set, for setting and answering described in the corresponding triggering of object run of the target physical key according to the key assignments With the objective function of program.
9. a kind of function trigger device of application program characterized by comprising
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
The object run for target physical key in terminal is set as the operation of the objective function of triggering application program;
When detecting the object run for the target physical key of the terminal, the target function of the application program is executed Energy.
10. a kind of computer readable storage medium, is stored with computer instruction, which is characterized in that the computer instruction is located Manage the step realized in any one of claim 1 to 6 the method when device executes.
CN201810646327.4A 2018-06-21 2018-06-21 The function triggering method and device of application program Pending CN108958863A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810646327.4A CN108958863A (en) 2018-06-21 2018-06-21 The function triggering method and device of application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810646327.4A CN108958863A (en) 2018-06-21 2018-06-21 The function triggering method and device of application program

Publications (1)

Publication Number Publication Date
CN108958863A true CN108958863A (en) 2018-12-07

Family

ID=64491773

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810646327.4A Pending CN108958863A (en) 2018-06-21 2018-06-21 The function triggering method and device of application program

Country Status (1)

Country Link
CN (1) CN108958863A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110032412A (en) * 2019-02-28 2019-07-19 努比亚技术有限公司 A kind of key-press input control method, terminal and computer readable storage medium
CN110673897A (en) * 2019-09-27 2020-01-10 深圳传音控股股份有限公司 Physical key function control method and device and computer readable storage medium
CN112950913A (en) * 2021-01-22 2021-06-11 深圳市帕尔卡科技有限公司 One-key type intelligent function key

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461304A (en) * 2014-12-31 2015-03-25 小米科技有限责任公司 Application control method and device
CN104793890A (en) * 2015-05-22 2015-07-22 北京育益宝科技有限公司 Method for directly reaching application software interface by operating specific physical key of tablet personal computer
CN105791573A (en) * 2016-03-02 2016-07-20 惠州Tcl移动通信有限公司 Mobile terminal and entity key triggering scene special effect realization method and system of mobile terminal
CN106648389A (en) * 2016-11-23 2017-05-10 扬州芯云智能***有限公司 Handheld terminal with multifunctional shortcut key, and shortcut function realization method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461304A (en) * 2014-12-31 2015-03-25 小米科技有限责任公司 Application control method and device
CN104793890A (en) * 2015-05-22 2015-07-22 北京育益宝科技有限公司 Method for directly reaching application software interface by operating specific physical key of tablet personal computer
CN105791573A (en) * 2016-03-02 2016-07-20 惠州Tcl移动通信有限公司 Mobile terminal and entity key triggering scene special effect realization method and system of mobile terminal
CN106648389A (en) * 2016-11-23 2017-05-10 扬州芯云智能***有限公司 Handheld terminal with multifunctional shortcut key, and shortcut function realization method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110032412A (en) * 2019-02-28 2019-07-19 努比亚技术有限公司 A kind of key-press input control method, terminal and computer readable storage medium
CN110032412B (en) * 2019-02-28 2022-07-01 努比亚技术有限公司 Key input control method, terminal and computer readable storage medium
CN110673897A (en) * 2019-09-27 2020-01-10 深圳传音控股股份有限公司 Physical key function control method and device and computer readable storage medium
CN112950913A (en) * 2021-01-22 2021-06-11 深圳市帕尔卡科技有限公司 One-key type intelligent function key

Similar Documents

Publication Publication Date Title
KR101571993B1 (en) Method for voice calling method for voice playing, devices, program and storage medium thereof
CN106020592A (en) Split screen display method and device
CN108509232A (en) Screen recording method, device and computer readable storage medium
CN105653085B (en) Touch-responsive method and apparatus
CN104182313B (en) Be delayed the method and apparatus taken pictures
CN104394312A (en) Shooting control method and device
CN107357505A (en) The method, apparatus and computer-readable recording medium of screenshot capture
CN105955579A (en) Music playing control method and device
CN105407287B (en) Switching method and device, the electronic equipment of screening-mode
CN106162211B (en) The method and device being broadcast live based on live streaming application
CN109557999A (en) Bright screen control method, device and storage medium
CN105515952B (en) Method of sending message in multimedia and device
CN104539871B (en) Multimedia session method and device
CN107390977A (en) Button operation method, apparatus and storage medium
CN105635846B (en) Apparatus control method and device
CN107820006A (en) Control the method and device of camera shooting
CN106527682A (en) Method and device for switching environment picture
CN108958863A (en) The function triggering method and device of application program
CN106506031B (en) Adjust the method and device of talk back equipment frequency
CN109324846A (en) Application display method and device, storage medium
CN109358929A (en) Multi-screen display method, device and storage medium
CN107566615B (en) Message treatment method, device and computer readable storage medium
CN110290272A (en) A kind of method, apparatus and medium of display function card
CN106598666A (en) Silent mode switching method and device
CN106911890A (en) Photographic method and device

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20181207

RJ01 Rejection of invention patent application after publication