CN103870286A - Operation behavior responding method and electronic device - Google Patents

Operation behavior responding method and electronic device Download PDF

Info

Publication number
CN103870286A
CN103870286A CN201410132173.9A CN201410132173A CN103870286A CN 103870286 A CN103870286 A CN 103870286A CN 201410132173 A CN201410132173 A CN 201410132173A CN 103870286 A CN103870286 A CN 103870286A
Authority
CN
China
Prior art keywords
operation behavior
application program
information
operational order
input block
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
CN201410132173.9A
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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201410132173.9A priority Critical patent/CN103870286A/en
Publication of CN103870286A publication Critical patent/CN103870286A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Telephone Function (AREA)

Abstract

The invention discloses an operation behavior responding method and an electronic device. The method is applied to the electronic device with an input unit. An operation system software structure of the electronic device at least comprises a driving layer and a frame layer. The method comprises the steps that a program of the driving layer is called, so that operation behavior information received by the input unit is obtained; the program of the driving layer is called, so that the operation behavior information is analyzed, and the application program corresponding to the operation behavior information and an operation order corresponding to the application program are determined; according to an analysis result, the operation order is sent to the corresponding application program. The operation behavior responding method and the electronic device can be adapted to different hardware devices, the phenomenon that different operation behavior responding programs need to be written according to different types of hardware is avoided, and the writing process of the operation behavior responding program is simplified.

Description

A kind of operation behavior response method and electronic equipment
Technical field
The application relates to instruction input field, particularly relates to a kind of operation behavior response method and electronic equipment.
Background technology
At present electronic equipment, for example smart mobile phone, panel computers etc., all have input block conventionally.Input block can comprise the line traffic control of the peripheral hardwares such as touch-screen, button or earphone.User can be to electronic equipment input operation behavior by input block.Electronic equipment is analyzed the operation behavior receiving, and final operation response behavior, carries out certain operation.
But the kind of the application program that can move in current electronic device is more and more, same operation behavior, in different application programs, can represent different operational orders.And in prior art, for the analytic process of operation behavior, be that electronic equipment completes according to the operational order responder that drives layer to write.Concrete, in the time writing the operational order responder that drives layer, need to consider the correlation parameter of corresponding hardware.Different hardware, has different standard of compilings for the program code that drives layer.Therefore when when driving the response process of operational order responder complete operation behavior of layer, for identical operation behavior, need to be driving layer write different operational order responders under different hardware environment, very complicated.
Summary of the invention
The application's object is to provide a kind of operation behavior response method and electronic equipment, can adapt to different hardware devices, avoids writing different operation behavior responders for different hardware the compiling procedure of the behavior response program that simplifies the operation.
For achieving the above object, the application provides following scheme:
A kind of operation behavior response method, described method is applied to the electronic equipment with input block, and the operating system software framework of described electronic equipment at least comprises driving layer and ccf layer, and described method comprises:
Call the described program that drives layer and obtain the operation behavior information that described input block receives;
Call the program of described ccf layer and resolve described operation behavior information, determine application program that described operation behavior information is corresponding and the operational order corresponding to this application program;
According to analysis result, operational order is sent to corresponding application program.
Optionally, described in obtain the operation behavior information that described input block receives, comprising:
Obtain the key-press status information of described input block;
And/or, obtain the button duration information of described input block.
Optionally, determine application program corresponding to described operation behavior information, comprising:
From the current application program of moving of described electronic equipment, inquiry can respond the application program of the operation of described input block reception;
According to Query Result, determine application program corresponding to described operation behavior information.
Optionally, described according to Query Result, determine application program corresponding to described operation behavior information, comprising:
If inquire multiple application programs and can respond the operation of described input block, according to the running status of described multiple application programs and/or default response priority, determine the application program that described operation behavior information is corresponding.
Optionally, determine the operational order corresponding to this application program, comprising:
Obtain key-press status information and the button duration information of described input block;
According to described key-press status information, determine the operational order set that described operation behavior information is corresponding;
According to described button duration information, from described operational order set, determine operational order corresponding to described operation behavior information.
Optionally, determine the operational order corresponding to this application program, comprising:
Obtain the current status information of described electronic equipment;
According to described status information, determine operational order corresponding to described operation behavior information.
Optionally, described input block is: line control earphone.
Optionally, described application program, comprising: telephony application, and/or, media play-back application.
A kind of electronic equipment, described electronic equipment has input block, and the software architecture of the operating system of described electronic equipment comprises driving layer and ccf layer, and described electronic equipment comprises:
Acquiring unit, obtains for calling the described program that drives layer the operation behavior information that described input block receives;
Resolution unit, resolves described operation behavior information for calling the program of described ccf layer, obtains application program corresponding to described operation behavior information and the operational order corresponding to this application program;
Transmitting element, for according to analysis result, sends to corresponding application program by operational order.
Optionally, described acquiring unit, comprising:
Key-press status acquisition of information subelement, for obtaining the key-press status information of described input block;
And/or button duration information obtains subelement, for obtaining the button duration information of described input block.
Optionally, described resolution unit, comprising:
Application queries subelement, for from the current application program of moving of described electronic equipment, inquiry can respond the application program of the operation that described input block receives;
Application program is determined subelement, for according to Query Result, determines application program corresponding to described operation behavior information.
Optionally, described application program is determined subelement, comprising:
Application program is analyzed subelement, if can respond the operation of described input block for inquiring multiple application programs,, according to the running status of described multiple application programs and/or default response priority, determine the application program that described operation behavior information is corresponding.
Optionally, described resolution unit, comprising:
Button integrated information is obtained subelement, for obtaining key-press status information and the button duration information of described input block;
Subelement is determined in operational order set, for according to described key-press status information, determines the operational order set that described operation behavior information is corresponding;
The first operational order is determined subelement, for according to described button duration information, determines operational order corresponding to described operation behavior information from described operational order set.
Optionally, described resolution unit, comprising:
State of electronic equipment acquisition of information subelement, for obtaining the current status information of described electronic equipment;
The second operational order is determined subelement, for according to described status information, determines operational order corresponding to described operation behavior information.
Optionally, described input block, is specially line control earphone.
Optionally, described application program specifically comprises: telephony application, and/or, media play-back application.
The specific embodiment providing according to the application, the application discloses following technique effect:
The application's operation behavior response method and electronic equipment, obtain by calling the described program that drives layer the operation behavior information that described input block receives; The program parse operation behavioural information of invoke block rack-layer, resolves and obtains application program corresponding to described operation behavior information and the operational order corresponding to this application program; Can make operation behavior responder be programmed in ccf layer, and then electronic equipment is in the time of operation response behavior, can respond operation behavior according to the operation behavior responder of ccf layer, and the program code of ccf layer is in compiling procedure, do not need to consider hardware environment information, as long as according to driving layer to get the hardware status information corresponding with operation behavior, respond according to the response logic of hardware status information and setting.Therefore, the application's operation behavior response method and electronic equipment, owing to having called the program parse operation behavioural information of ccf layer, so can adapt to different hardware devices, avoid writing different operation behavior responders for different hardware the compiling procedure of the behavior response program that simplifies the operation.
Brief description of the drawings
In order to be illustrated more clearly in the embodiment of the present application or technical scheme of the prior art, to the accompanying drawing of required use in embodiment be briefly described below, apparently, accompanying drawing in the following describes is only some embodiment of the application, for those of ordinary skill in the art, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the process flow diagram of the application's operation behavior response method embodiment 1;
Fig. 2 is the process flow diagram of the application's operation behavior response method embodiment 2;
Fig. 3 is the process flow diagram of the application's operation behavior response method embodiment 3;
Fig. 4 is the structural drawing of the application's electronic equipment embodiment.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present application, the technical scheme in the embodiment of the present application is clearly and completely described, obviously, described embodiment is only some embodiments of the present application, instead of whole embodiment.Based on the embodiment in the application, those of ordinary skill in the art are not making the every other embodiment obtaining under creative work prerequisite, all belong to the scope of the application's protection.
For the above-mentioned purpose, the feature and advantage that make the application can become apparent more, below in conjunction with the drawings and specific embodiments, the application is described in further detail.
The application's operation behavior response method, is applied to the electronic equipment with input block.Described electronic equipment can be the equipment such as mobile phone, panel computer or notebook computer.Described input block can be the buttons such as the power key on keyboard, line control earphone or electronic equipment, volume adjusting key.
The operating system software framework of described electronic equipment at least comprises driving (driver) layer and framework (framework) layer.The operating system of described electronic equipment can be Android operating system.
Fig. 1 is the process flow diagram of the application's operation behavior response method embodiment 1.As shown in Figure 1, the method can comprise:
Step 101: call the described program that drives layer and obtain the operation behavior information that described input block receives;
In the embodiment of the present application, drive the program of layer to be only responsible for detecting the operation behavior information that described input block receives.
In the time that described input block is the input block of press-key structure, whether the program of described driving layer can be only responsible for detecting a button and be pressed, and/or the duration information that is pressed of button.Therefore, program development personnel are in the time of compilation operation behavior response code, can be in the configuration file of driving layer, only write for detection of button and whether be pressed, and/or the code of the duration information that is pressed of button, and needn't drive layer write the code for resolving every kind of key-press status and the corresponding concrete instruction of button duration.
On the other hand, for the various types of hardware including CPU, keyboard and line control earphone, all can release a standard with hardware.In this standard, illustrate how to write the most basic whether being pressed for detection of button, and/or the code of the duration information that is pressed of button.Therefore, driving layer to write for detection of button and whether be pressed, and/or the code of the duration information that is pressed of button, for program development personnel, be to be comparatively easy to.
Step 102: the program of calling described ccf layer is resolved described operation behavior information, determines application program that described operation behavior information is corresponding and the operational order corresponding to this application program;
Along with the development of electronic equipment, the kind of the application program that can move on electronic equipment is more and more, and same operation behavior, in different application programs, can represent different operational orders.Therefore,, after obtaining the operation behavior information of described input block reception, also need application program corresponding to definite described operation behavior information and the operational order corresponding to this application program.
For example, when electronic equipment is mobile phone, when input block is line control earphone, if being play button, operation behavior information is pressed,, in the time that described mobile phone is moving audio frequency playing program, operational order corresponding to this operation behavior can be to make described audio frequency playing program start displaying audio file; In the time that described mobile phone receives the phone of other user's incoming calls, operational order corresponding to this operation behavior can be to answer current call.
In the embodiment of the present application, the program of ccf layer just can be resolved described operation behavior information, determines application program that described operation behavior information is corresponding and the operational order corresponding to this application program.
Due to the program code of ccf layer, be to write on the basis of operation behavior information that gets described input block reception, therefore do not need to consider the standard of dissimilar hardware, can be according to the program code of unified Standard compilation ccf layer.That is, can only write some button and be pressed, and or button duration while reaching certain hour length corresponding operational order what is, and needn't be concerned about that these buttons are the buttons on the hardware of which kind of type.
In the time carrying out the type transmission change of hardware of described operation behavior response method, also needn't again write the program code of ccf layer.
Step 103: according to analysis result, operational order is sent to corresponding application program.
Corresponding application program receives after described operational order, can carry out the represented operation of described operational order.For example, in example above, after the play button of the line control earphone of mobile phone is pressed, described mobile phone just can be carried out the operation of displaying audio file or incoming call answering.
In sum, in the present embodiment, obtain by calling the described program that drives layer the operation behavior information that described input block receives, call the program of described ccf layer and resolve described operation behavior information, determine application program that described operation behavior information is corresponding and the operational order corresponding to this application program, can make program development personnel in the time of compilation operation behavior response code, in the configuration file of driving layer, only write for detection of button and whether be pressed, and/or the code of the duration information that is pressed of button, and needn't drive layer to write the code for resolving every kind of key-press status and the corresponding concrete instruction of button duration, and, in the operating system of described electronic equipment, conventionally the key-press status and the duration detection of code that are applicable to most of hardware have been comprised in advance, therefore, for most of hardware, program development personnel often can save and write this partial code, on the other hand, due to the program code of ccf layer, to write on the basis of operation behavior information that gets described input block reception, therefore do not need to consider the standard of dissimilar hardware, can be according to the program code of unified Standard compilation ccf layer, in the time carrying out the type transmission change of hardware of described operation behavior response method, also needn't again write the program code of ccf layer.Therefore, the application's operation behavior response method can adapt to different hardware devices, avoids writing different operation behavior responders for different hardware the compiling procedure of the behavior response program that simplifies the operation.
Fig. 2 is the process flow diagram of the application's operation behavior response method embodiment 2.As shown in Figure 2, the method can comprise:
Step 201: call the described key-press status information that drives the program of layer to obtain described input block;
On described input block, can there be multiple buttons, when different buttons is pressed, can produce different key-press status information.This key-press status information can represent whether this button is pressed.
Step 202: call the described button duration information that drives the program of layer to obtain described input block;
For each button, if this button is pressed, the time that can be pressed to this button is carried out timing, thereby obtains button duration information.
Step 203: call the program of described ccf layer from the current application program of moving of described electronic equipment, inquiry can respond the application program of the operation of described input block reception;
As a rule, by thering is the operation behavior information of input block input of keyboard, be all for the current application program of moving of described electronic equipment.Therefore, can be from the current application program of moving of described electronic equipment, inquiry can respond the application program of the operation of described input block reception.
For the corresponding relation between operation behavior information and the application program of this operation behavior information of response, can the relevant configuration file of the pre-recorded operating system at described electronic equipment in.According to this configuration file, can determine the application program of the operation that can respond described input block reception.
Step 204: according to Query Result, determine application program corresponding to described operation behavior information;
When the result inquiring is when only having an application program can respond described operation, this application program can be defined as to application program corresponding to described operation behavior information.
If inquire multiple application programs and can respond the operation of described input block, can be according to the running status of described multiple application programs, and/or default response priority, determine the application program that described operation behavior information is corresponding.
For example, in the time that described electronic equipment has moved two media play-back application simultaneously, can application program corresponding to described operation behavior information will be defined as in that media play-back application of front stage operation.This is because conventionally, and the operation behavior of user's input is the application program that showing for foreground mostly.
Again for example, when described electronic equipment is in the time moving media play-back application, receive the incoming information that other electronic equipments are sent, start after telephony application, can be according to the response priority setting in advance, determine that the response priority of telephony application is higher than the response priority of media play-back application, thereby determine that telephony application is application program corresponding to described operation behavior information.
Step 205: according to described key-press status information, determine the operational order set that described operation behavior information is corresponding;
A kind of key-press status, can represent that certain button or some button are pressed.But same key-press status is due to the difference of button duration, operational order that can be corresponding different, so a kind of key-press status can corresponding multiple operational orders.Described multiple operational order can form an operational order set.Therefore,, in the present embodiment, can, first according to described key-press status information, determine the operational order set that described operation behavior information is corresponding.
For example, press after volume-down keys, corresponding operational order set comprises: reduce volume instruction and quiet instruction.
Step 206: according to described button duration information, determine operational order corresponding to described operation behavior information from described operational order set.
For the button being pressed or the combination of multiple buttons, different button durations can represent different operational orders.
For example, after volume-down keys is pressed, if button duration is less than Preset Time, can be judged as this operation and be short by, determine that operational order corresponding to described operation behavior information is for reducing volume instruction; If button duration is greater than Preset Time, can be judged as this operation and be long by, determine that operational order corresponding to described operation behavior information is quiet instruction.
In the present embodiment, by according to described key-press status information, determine the operational order set that described operation behavior information is corresponding; According to button duration information, from described operational order set, determine operational order corresponding to described operation behavior information; Can make the difference of same key-press status along with button duration, corresponding different operational orders, is not increasing under the prerequisite of number of keys, and the quantity of the operational order that increase can be inputted, makes user can input more various operational order.
Fig. 3 is the process flow diagram of the application's operation behavior response method embodiment 3.As shown in Figure 3, the method can comprise:
Step 301: call the described key-press status information that drives the program of layer to obtain described input block;
On described input block, can there be multiple buttons, when different buttons is pressed, can produce different key-press status information.This key-press status information can represent whether this button is pressed.
Step 302: call the program of described ccf layer from the current application program of moving of described electronic equipment, inquiry can respond the application program of the operation of described input block reception;
Step 303: according to Query Result, determine application program corresponding to described operation behavior information;
Step 304: obtain the current status information of described electronic equipment;
Described electronic equipment at least can have the first state and second state different from described the first state.For example, described electronic equipment can have screen lock state or released state.For same button or same key combination, when the state of described electronic equipment is that screen lock state is, the first corresponding operational order and described electronic equipment corresponding the second operational order in the time of released state, can be different.
Step 305: according to described key-press status information and the current status information of described electronic equipment, determine operational order corresponding to described operation behavior information.
For certain operation behavior, can set in advance this operation behavior and the electronic equipment corresponding operational order in the time of certain state.
The program that can call described ccf layer is determined the state of described electronic equipment, and resolves operational order corresponding to described operation behavior information under this state.
For example, when described electronic equipment is during in screen lock state, when user double-clicks volume-down keys, can determine that corresponding operational order is quiet instruction; When described electronic equipment is during in released state, when user double-clicks volume-down keys, can determine that corresponding operational order is that the output volume of described electronic equipment is turned down to two grades.
In the present embodiment, by obtaining the current status information of described electronic equipment; According to described status information, determine operational order corresponding to described operation behavior information; Can make the difference of same key-press status along with state of electronic equipment, corresponding different operational orders, is not increasing under the prerequisite of number of keys, and the quantity of the operational order that increase can be inputted, makes user can input more various operational order.
Disclosed herein as well is a kind of electronic equipment.Described electronic equipment can be the equipment such as mobile phone, panel computer or notebook computer.Described electronic equipment has input block.Described input block can be the buttons such as the power key on keyboard, line control earphone or electronic equipment, volume adjusting key.
The software architecture of the operating system of described electronic equipment comprises driving layer and ccf layer.The operating system software framework of described electronic equipment at least comprises driving (driver) layer and framework (framework) layer.The operating system of described electronic equipment can be Android operating system.
Fig. 4 is the structural drawing of the application's electronic equipment embodiment.As shown in Figure 4, this electronic equipment can comprise:
Acquiring unit 401, obtains for calling the described program that drives layer the operation behavior information that described input block receives;
In the embodiment of the present application, drive the program of layer to be only responsible for detecting the operation behavior information that described input block receives.
In the time that described input block is the input block of press-key structure, whether the program of described driving layer can be only responsible for detecting a button and be pressed, and/or the duration information that is pressed of button.Therefore, program development personnel are in the time of compilation operation behavior response code, can be in the configuration file of driving layer, only write for detection of button and whether be pressed, and/or the code of the duration information that is pressed of button, and needn't drive layer write the code for resolving every kind of key-press status and the corresponding concrete instruction of button duration.
On the other hand, for the various types of hardware including CPU, keyboard and line control earphone, all can release a standard with hardware.In this standard, illustrate how to write the most basic whether being pressed for detection of button, and/or the code of the duration information that is pressed of button.Therefore, driving layer to write for detection of button and whether be pressed, and/or the code of the duration information that is pressed of button, for program development personnel, be to be comparatively easy to.
Resolution unit 402, resolves described operation behavior information for calling the program of described ccf layer, obtains application program corresponding to described operation behavior information and the operational order corresponding to this application program;
Along with the development of electronic equipment, the kind of the application program that can move on electronic equipment is more and more, and same operation behavior, in different application programs, can represent different operational orders.Therefore,, after obtaining the operation behavior information of described input block reception, also need application program corresponding to definite described operation behavior information and the operational order corresponding to this application program.
For example, when electronic equipment is mobile phone, when input block is line control earphone, if being play button, operation behavior information is pressed,, in the time that described mobile phone is moving audio frequency playing program, operational order corresponding to this operation behavior can be to make described audio frequency playing program start displaying audio file; In the time that described mobile phone receives the phone of other user's incoming calls, operational order corresponding to this operation behavior can be to answer current call.
In the embodiment of the present application, the program of ccf layer just can be resolved described operation behavior information, determines application program that described operation behavior information is corresponding and the operational order corresponding to this application program.
Due to the program code of ccf layer, be to write on the basis of operation behavior information that gets described input block reception, therefore do not need to consider the standard of dissimilar hardware, can be according to the program code of unified Standard compilation ccf layer.That is, can only write some button and be pressed, and or button duration while reaching certain hour length corresponding operational order what is, and needn't be concerned about that these buttons are the buttons on the hardware of which kind of type.
In the time carrying out the type transmission change of hardware of described operation behavior response method, also needn't again write the program code of ccf layer.
Transmitting element 403, for according to analysis result, sends to corresponding application program by operational order.
Corresponding application program receives after described operational order, can carry out the represented operation of described operational order.For example, in example above, after the play button of the line control earphone of mobile phone is pressed, described mobile phone just can be carried out the operation of displaying audio file or incoming call answering.
In sum, in the present embodiment, obtain by calling the described program that drives layer the operation behavior information that described input block receives, call the program of described ccf layer and resolve described operation behavior information, determine application program that described operation behavior information is corresponding and the operational order corresponding to this application program, can make program development personnel in the time of compilation operation behavior response code, in the configuration file of driving layer, only write for detection of button and whether be pressed, and/or the code of the duration information that is pressed of button, and needn't drive layer to write the code for resolving every kind of key-press status and the corresponding concrete instruction of button duration, and, in the operating system of described electronic equipment, conventionally the key-press status and the duration detection of code that are applicable to most of hardware have been comprised in advance, therefore, for most of hardware, program development personnel often can save and write this partial code, on the other hand, due to the program code of ccf layer, to write on the basis of operation behavior information that gets described input block reception, therefore do not need to consider the standard of dissimilar hardware, can be according to the program code of unified Standard compilation ccf layer, in the time carrying out the type transmission change of hardware of described operation behavior response method, also needn't again write the program code of ccf layer.Therefore, the application's operation behavior response method can adapt to different hardware devices, avoids writing different operation behavior responders for different hardware the compiling procedure of the behavior response program that simplifies the operation.
In practical application, described acquiring unit 401, can comprise:
Key-press status acquisition of information subelement, for obtaining the key-press status information of described input block;
And/or button duration information obtains subelement, for obtaining the button duration information of described input block.
In practical application, described resolution unit 402, can comprise:
Application queries subelement, for from the current application program of moving of described electronic equipment, inquiry can respond the application program of the operation that described input block receives;
Application program is determined subelement, for according to Query Result, determines application program corresponding to described operation behavior information.
In practical application, described application program is determined subelement, can comprise:
Application program is analyzed subelement, if can respond the operation of described input block for inquiring multiple application programs,, according to the running status of described multiple application programs and/or default response priority, determine the application program that described operation behavior information is corresponding.
In practical application, described resolution unit 402, can comprise:
Button integrated information is obtained subelement, for obtaining key-press status information and the button duration information of described input block;
Subelement is determined in operational order set, for according to described key-press status information, determines the operational order set that described operation behavior information is corresponding;
The first operational order is determined subelement, for according to described button duration information, determines operational order corresponding to described operation behavior information from described operational order set.
In practical application, described resolution unit 402, can comprise:
State of electronic equipment acquisition of information subelement, for obtaining the current status information of described electronic equipment;
The second operational order is determined subelement, for according to described status information, determines operational order corresponding to described operation behavior information.
In practical application, described input block, is specifically as follows line control earphone.
In practical application, described application program specifically can comprise: telephony application, and/or, media play-back application.
Finally, also it should be noted that, in this article, relational terms such as the first and second grades is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply and between these entities or operation, have the relation of any this reality or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby the process, method, article or the equipment that make to comprise a series of key elements not only comprise those key elements, but also comprise other key elements of clearly not listing, or be also included as the intrinsic key element of this process, method, article or equipment.The in the situation that of more restrictions not, the key element being limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment that comprises described key element and also have other identical element.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the application can add essential hardware platform by software and realize, can certainly all implement by hardware, but in a lot of situation, the former is better embodiment.Based on such understanding, what the application's technical scheme contributed to background technology can embody with the form of software product in whole or in part, this computer software product can be stored in storage medium, as ROM/RAM, magnetic disc, CD etc., comprise that some instructions (can be personal computers in order to make a computer equipment, server, or the network equipment etc.) carry out the method described in some part of each embodiment of the application or embodiment.
In this instructions, each embodiment adopts the mode of going forward one by one to describe, and what each embodiment stressed is and the difference of other embodiment, between each embodiment identical similar part mutually referring to.For the disclosed electronic equipment of embodiment, because it corresponds to the method disclosed in Example, so description is fairly simple, relevant part illustrates referring to method part.
Applied principle and the embodiment of specific case to the application herein and set forth, the explanation of above embodiment is just for helping to understand the application's method and core concept thereof; Meanwhile, for one of ordinary skill in the art, according to the application's thought, all will change in specific embodiments and applications.In sum, this description should not be construed as the restriction to the application.

Claims (16)

1. an operation behavior response method, is characterized in that, described method is applied to the electronic equipment with input block, and the operating system software framework of described electronic equipment at least comprises driving layer and ccf layer, and described method comprises:
Call the described program that drives layer and obtain the operation behavior information that described input block receives;
Call the program of described ccf layer and resolve described operation behavior information, determine application program that described operation behavior information is corresponding and the operational order corresponding to this application program;
According to analysis result, operational order is sent to corresponding application program.
2. method according to claim 1, is characterized in that, described in obtain the operation behavior information that described input block receives, comprising:
Obtain the key-press status information of described input block;
And/or, obtain the button duration information of described input block.
3. method according to claim 1, is characterized in that, determines application program corresponding to described operation behavior information, comprising:
From the current application program of moving of described electronic equipment, inquiry can respond the application program of the operation of described input block reception;
According to Query Result, determine application program corresponding to described operation behavior information.
4. method according to claim 3, is characterized in that, described according to Query Result, determines application program corresponding to described operation behavior information, comprising:
If inquire multiple application programs and can respond the operation of described input block, according to the running status of described multiple application programs and/or default response priority, determine the application program that described operation behavior information is corresponding.
5. method according to claim 1, is characterized in that, determines the operational order corresponding to this application program, comprising:
Obtain key-press status information and the button duration information of described input block;
According to described key-press status information, determine the operational order set that described operation behavior information is corresponding;
According to described button duration information, from described operational order set, determine operational order corresponding to described operation behavior information.
6. method according to claim 1, is characterized in that, determines the operational order corresponding to this application program, comprising:
Obtain the current status information of described electronic equipment;
According to described status information, determine operational order corresponding to described operation behavior information.
7. method according to claim 1, is characterized in that, described input block is: line control earphone.
8. method according to claim 7, is characterized in that, described application program, comprising: telephony application, and/or, media play-back application.
9. an electronic equipment, is characterized in that, described electronic equipment has input block, and the software architecture of the operating system of described electronic equipment comprises driving layer and ccf layer, and described electronic equipment comprises:
Acquiring unit, obtains for calling the described program that drives layer the operation behavior information that described input block receives;
Resolution unit, resolves described operation behavior information for calling the program of described ccf layer, obtains application program corresponding to described operation behavior information and the operational order corresponding to this application program;
Transmitting element, for according to analysis result, sends to corresponding application program by operational order.
10. electronic equipment according to claim 9, is characterized in that, described acquiring unit, comprising:
Key-press status acquisition of information subelement, for obtaining the key-press status information of described input block;
And/or button duration information obtains subelement, for obtaining the button duration information of described input block.
11. electronic equipments according to claim 9, is characterized in that, described resolution unit, comprising:
Application queries subelement, for from the current application program of moving of described electronic equipment, inquiry can respond the application program of the operation that described input block receives;
Application program is determined subelement, for according to Query Result, determines application program corresponding to described operation behavior information.
12. methods according to claim 9, is characterized in that, described application program is determined subelement, comprising:
Application program is analyzed subelement, if can respond the operation of described input block for inquiring multiple application programs,, according to the running status of described multiple application programs and/or default response priority, determine the application program that described operation behavior information is corresponding.
13. electronic equipments according to claim 8, is characterized in that, described resolution unit, comprising:
Button integrated information is obtained subelement, for obtaining key-press status information and the button duration information of described input block;
Subelement is determined in operational order set, for according to described key-press status information, determines the operational order set that described operation behavior information is corresponding;
The first operational order is determined subelement, for according to described button duration information, determines operational order corresponding to described operation behavior information from described operational order set.
14. electronic equipments according to claim 9, is characterized in that, described resolution unit, comprising:
State of electronic equipment acquisition of information subelement, for obtaining the current status information of described electronic equipment;
The second operational order is determined subelement, for according to described status information, determines operational order corresponding to described operation behavior information.
15. electronic equipments according to claim 9, is characterized in that, described input block, is specially line control earphone.
16. electronic equipments according to claim 9, is characterized in that, described application program specifically comprises: telephony application, and/or, media play-back application.
CN201410132173.9A 2014-04-02 2014-04-02 Operation behavior responding method and electronic device Pending CN103870286A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410132173.9A CN103870286A (en) 2014-04-02 2014-04-02 Operation behavior responding method and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410132173.9A CN103870286A (en) 2014-04-02 2014-04-02 Operation behavior responding method and electronic device

Publications (1)

Publication Number Publication Date
CN103870286A true CN103870286A (en) 2014-06-18

Family

ID=50908856

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410132173.9A Pending CN103870286A (en) 2014-04-02 2014-04-02 Operation behavior responding method and electronic device

Country Status (1)

Country Link
CN (1) CN103870286A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104331228A (en) * 2014-10-17 2015-02-04 小米科技有限责任公司 Screen locking method and device
CN104333652A (en) * 2014-09-26 2015-02-04 广州酷狗计算机科技有限公司 Operation execution method and device
CN105786543A (en) * 2014-12-26 2016-07-20 北京奇虎科技有限公司 Interface loading method and device
CN106484377A (en) * 2015-08-28 2017-03-08 深圳创锐思科技有限公司 Configuration information display packing and device and display device
CN106814940A (en) * 2015-11-30 2017-06-09 阿里巴巴集团控股有限公司 Numerical value input method and device
CN107544742A (en) * 2016-06-28 2018-01-05 富泰华工业(深圳)有限公司 A kind of control method and its electronic installation

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102394980A (en) * 2011-11-10 2012-03-28 华为终端有限公司 Response method of insertion and extraction behaviors of earphone and mobile terminal
CN103135934A (en) * 2013-03-06 2013-06-05 广东欧珀移动通信有限公司 Touch-screen mobile device and method and device for switching application program quickly
CN103176738A (en) * 2013-02-01 2013-06-26 深圳桑菲消费通信有限公司 Expanding application method of mobile phone touch screen, mobile phone touch screen system and mobile phone

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102394980A (en) * 2011-11-10 2012-03-28 华为终端有限公司 Response method of insertion and extraction behaviors of earphone and mobile terminal
CN103176738A (en) * 2013-02-01 2013-06-26 深圳桑菲消费通信有限公司 Expanding application method of mobile phone touch screen, mobile phone touch screen system and mobile phone
CN103135934A (en) * 2013-03-06 2013-06-05 广东欧珀移动通信有限公司 Touch-screen mobile device and method and device for switching application program quickly

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104333652A (en) * 2014-09-26 2015-02-04 广州酷狗计算机科技有限公司 Operation execution method and device
CN104331228A (en) * 2014-10-17 2015-02-04 小米科技有限责任公司 Screen locking method and device
CN105786543A (en) * 2014-12-26 2016-07-20 北京奇虎科技有限公司 Interface loading method and device
CN106484377A (en) * 2015-08-28 2017-03-08 深圳创锐思科技有限公司 Configuration information display packing and device and display device
CN106814940A (en) * 2015-11-30 2017-06-09 阿里巴巴集团控股有限公司 Numerical value input method and device
CN107544742A (en) * 2016-06-28 2018-01-05 富泰华工业(深圳)有限公司 A kind of control method and its electronic installation
CN107544742B (en) * 2016-06-28 2020-10-20 富泰华工业(深圳)有限公司 Control method and electronic device thereof

Similar Documents

Publication Publication Date Title
CN104010230B (en) The method and system of the video playback under screen lock state
CN103870286A (en) Operation behavior responding method and electronic device
CN102681763A (en) Method and apparatus for providing user interface in portable terminal
WO2020156236A1 (en) Associated information pushing method and apparatus, electronic device and storage medium
CN104793846A (en) Displaying method and device for interface of application program
CN105701122A (en) Log collection method, apparatus and system
WO2019128829A1 (en) Action execution method and apparatus, storage medium and electronic apparatus
WO2017156983A1 (en) List callup method and device
US20200310741A1 (en) Method and apparatus for controlling sound signal output
CN104898821A (en) Information processing method and electronic equipment
CN107168543A (en) Control method of keyboard and device
CN103986841A (en) Mobile terminal operation method and mobile terminal
CN105094830A (en) Method and device for executing target functions
US20140045467A1 (en) Method and apparatus for recording information during a call
CN106598391A (en) Blind operation realization method and device of mobile terminal
CN103207726A (en) Apparatus And Method For Providing Shortcut Service In Portable Terminal
CN102118492A (en) Key sound prompting method and device
WO2013189406A2 (en) Method and system for demonstrating and generating demonstration script
CN105589575A (en) Input method invoking method and device
CN106604204B (en) Method and system for remotely controlling terminal application through Bluetooth
CN103631563B (en) A kind of operational approach based on full touch screen mobile terminal and device
KR102206426B1 (en) Method and apparatus for providing help of user device
CN115495519A (en) Report data processing method and device
US20120252413A1 (en) Apparatus and method for sharing output data in portable terminal
CN113031838B (en) Screen recording method and device and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20140618

RJ01 Rejection of invention patent application after publication