CN109408271A - Response method, device and the storage medium of slip lid operation - Google Patents

Response method, device and the storage medium of slip lid operation Download PDF

Info

Publication number
CN109408271A
CN109408271A CN201811224062.5A CN201811224062A CN109408271A CN 109408271 A CN109408271 A CN 109408271A CN 201811224062 A CN201811224062 A CN 201811224062A CN 109408271 A CN109408271 A CN 109408271A
Authority
CN
China
Prior art keywords
slip lid
target application
lid operation
terminal
attribute information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811224062.5A
Other languages
Chinese (zh)
Other versions
CN109408271B (en
Inventor
余丽芳
常群
高尚
肖春明
耿如月
龙海
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201811224062.5A priority Critical patent/CN109408271B/en
Publication of CN109408271A publication Critical patent/CN109408271A/en
Application granted granted Critical
Publication of CN109408271B publication Critical patent/CN109408271B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0793Remedial or corrective actions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Quality & Reliability (AREA)
  • Computer Security & Cryptography (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)
  • Telephone Function (AREA)

Abstract

The disclosure is directed to response method, device and the storage mediums of a kind of operation of slip lid, belong to field of terminal technology.Method includes: to determine the target application for being currently at front stage operation when detecting slip lid operation;If target application operates response failure to slip lid, then obtain the current attribute information with the matched virtual key of target application, target application is the third-party application that version updating occurs, virtual key is used to start objective function in target application, and the more new version of current attribute information and target application matches;If current attribute information and the historical status information of virtual key are inconsistent, the historical status information being adapted to currently is operated with slip lid with the replacement of current attribute information;When detecting slip lid operation again, response slip lid operation starts objective function.This method replaces the attribute information of updated third-party application in time, and realizing can be quickly adapted to after third-party application update, it is ensured that terminal responds the duration of slip lid operation.

Description

Response method, device and the storage medium of slip lid operation
Technical field
This disclosure relates to field of terminal technology, in particular to a kind of response method, device and the storage medium of slip lid operation.
Background technique
With the development of terminal technology with the transformation of user's aesthetical standard, the display screen of terminal is designed to shield comprehensively Through becoming fashion trend.For example, in order to realize that 100% shields comprehensively, it can be by Terminal Design at sliding cover type, i.e. terminal is scratched by supporting It is formed with two parts of closure, by taking first structure and the second structure name above-mentioned two parts as an example, first structure can be the Push-and-pull move in two structures.Wherein, slip cover terminal supports user is simulated by slip lid operation to click virtual key manually at present Operation, and relevant response is carried out, to promote user experience.For example, slip cover terminal detect slip lid operation after can complete it is all It such as opens camera, answer call operation.Wherein, slip lid operation for based on push-and-pull operation by first structure and the second structure by Closed state is transformed to scratch the operation of state.
The mode of slip cover terminal response slip lid operation is as follows in the related technology: when slip cover terminal detects the cunning of user's triggering When lid operation, the third-party application for being currently at front stage operation is determined, and voluntarily start preset in the third-party application Function, to respond slip lid operation.However, for compared to the update cycle of operating system, the update cycle of third-party application It is shorter, so the version meeting frequent updating of third-party application, and with the update of third-party application, the void of such as third-party application The attribute information of quasi- key may change, for example layout or title change.Wherein, the virtual key is for starting Above-mentioned preset function.And at this time since operating system is not to renewal time, so slip lid operation still or with update Preceding attribute information adaptation, for this kind of situation, to this period before operating system update, slip lid after third-party application update Operation just can not simulate again clicks operation of virtual key manually, even if user triggers slip lid operation that is, in this period, slip lid is whole End can not also be responded.For this purpose, how to guarantee that slip cover terminal persistently responds cunning in the case where third-party application updates Lid operation, becomes a focus of those skilled in the art's concern.
Summary of the invention
Present disclose provides response method, device and the storage mediums of a kind of operation of slip lid.
According to the first aspect of the embodiments of the present disclosure, a kind of response method of slip lid operation is provided, which comprises
When detecting slip lid operation, the target application for being currently at front stage operation is determined;
If the target application operates response failure to the slip lid, obtain and the target application is matched virtually presses The current attribute information of key, the target application are the third-party application that version updating occurs, and the virtual key is for starting The more new version of objective function in the target application, the current attribute information and the target application matches;
If the current attribute information and the historical status information of the virtual key are inconsistent, with the current attribute Information replacement currently operates the historical status information being adapted to slip lid;
When detecting slip lid operation again, the slip lid operation is responded, the objective function is started.
In a kind of possible implementation, when showing the call request page of the target application on terminal screen, It is described when detecting slip lid operation again, respond slip lid operation, start the objective function, comprising:
When the first structure for detecting terminal again moves in the second structure along target direction, the slip lid behaviour is responded Make, answers call and show the receiving talking page.
In a kind of possible implementation, when the call request page for not showing the target application on terminal screen or It is described when detecting slip lid operation again when the view-finder page, the slip lid operation is responded, starts the objective function, wraps It includes:
When the first structure for detecting terminal again moves in the second structure along target direction, the slip lid behaviour is responded Make, starts the shooting function of the target application.
It is described to detect again when showing the view-finder page on terminal screen in a kind of possible implementation When slip lid operates, the slip lid operation is responded, the objective function is started, comprising:
When the first structure for detecting terminal again moves in the second structure along target direction, the slip lid behaviour is responded Make, switches shooting direction.
It is described when detecting slip lid operation again in a kind of possible implementation, respond the slip lid operation, starting The objective function, comprising:
When the first structure for detecting terminal again moves in the second structure along target direction, the slip lid behaviour is responded Make, the transmission of Xiang Suoshu target application executes notice, so that the target application starts the objective function.
In a kind of possible implementation, the method also includes:
The sensor of interest of terminal built-in is called to detect the slip lid operation based on sensor management interface.
According to the second aspect of an embodiment of the present disclosure, a kind of responding device of slip lid operation is provided, described device includes:
Determining module is configured as determining the target application for being currently at front stage operation when detecting slip lid operation;
Module is obtained, response failure is operated to the slip lid if being configured as the target application, is obtained and the mesh The current attribute information of the matched virtual key of mark application, the target application are the third-party application that version updating occurs, institute Virtual key is stated for starting the objective function in the target application, the current attribute information and the target application are more New version matches;
Replacement module, if being configured as the current attribute information and the historical status information of the virtual key is different It causes, then the historical status information being adapted to currently is operated with slip lid with current attribute information replacement;
Respond module is configured as when detecting slip lid operation again, is responded the slip lid operation, is started the target Function.
In a kind of possible implementation, the respond module is additionally configured to show the mesh on terminal screen When marking the call request page of application, when the first structure for detecting terminal again moves in the second structure along target direction When, the slip lid operation is responded, call is answered and shows the receiving talking page.
In a kind of possible implementation, the respond module is additionally configured to not show on terminal screen described When the call request page or the view-finder page of target application, when detecting the first structure of the terminal edge in the second structure again When target direction is mobile, the slip lid operation is responded, the shooting function of the target application is started.
In a kind of possible implementation, the respond module is additionally configured to show view-finder on terminal screen When the page, when the first structure for detecting terminal again moves in the second structure along target direction, the slip lid behaviour is responded Make, switches shooting direction.
In a kind of possible implementation, the respond module is additionally configured to detect the first knot of terminal again Structure responds the slip lid operation when moving in the second structure along target direction, and the transmission of Xiang Suoshu target application executes notice, with The target application is set to start the objective function.
In a kind of possible implementation, described device further include:
Detection module is configured as calling the sensor of interest of terminal built-in to detect the cunning based on sensor management interface Lid operation.
According to the third aspect of an embodiment of the present disclosure, a kind of responding device of slip lid operation is provided, described device includes:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to: when detecting slip lid operation, determine and be currently at the target of front stage operation Using;If the target application operates response failure to the slip lid, obtain and the matched virtual key of the target application Current attribute information, the target application is the third-party application that version updating occurs, and the virtual key is for starting institute The objective function in target application is stated, the more new version of the current attribute information and the target application matches;If described Current attribute information and the historical status information of the virtual key are inconsistent, then with the current attribute information replacement currently with The historical status information of slip lid operation adaptation;When detecting slip lid operation again, the slip lid operation is responded, institute is started State objective function.
According to a fourth aspect of embodiments of the present disclosure, a kind of computer readable storage medium is provided, meter is stored thereon with Calculation machine program instruction, the computer program instructions realize the operation of slip lid described in above-mentioned first aspect when being executed by processor Response method.
The method that the embodiment of the present disclosure provides, occurs matching with the application for third-party application because version updating occurs The attribute information of virtual key change, and operating system leads to end because not being updated to the attribute information of the application also Hold to for the application slip lid operation response failure the case where, terminal detect slip lid operation response turkey after, This can be immediately obtained using newest attribute information, and the historical status being adapted to is operated with slip lid with the replacement of newest attribute information Information is then answered when terminal detects again for this so that operating system completes the update to the attribute information of the application in time When slip lid event, it just can be based on newest attribute information, carry out the operation of success response slip lid, started corresponding in the application Function is realized to this period before operating system update after third-party application update, and slip lid operation can continue to simulation and use The manual click operation of virtual key at family, i.e., the slip lid operation that user triggers in this period, terminal also can successfully be rung It answers.That is, the embodiment of the present disclosure is realized can be quickly adapted to after third-party application update, it is ensured that terminal responds slip lid The duration of operation.
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 structural schematic diagram of terminal shown according to an exemplary embodiment.
Fig. 2 is a kind of structural schematic diagram of terminal shown according to an exemplary embodiment.
Fig. 3 is a kind of flow chart of the response method of slip lid operation shown according to an exemplary embodiment.
Fig. 4 is a kind of flow chart of the response method of slip lid operation shown according to an exemplary embodiment.
Fig. 5 is a kind of block diagram of the responding device of slip lid operation shown according to an exemplary embodiment.
Fig. 6 is a kind of block diagram of the responding device of slip lid operation shown according to an exemplary embodiment.
Fig. 7 is a kind of block diagram of the responding device of slip lid operation 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.
Before to the embodiment of the present disclosure carrying out that explanation is explained in detail, some names that first embodiment of the present disclosure is related to Word is simply introduced.
Third-party application: in the embodiments of the present disclosure, third-party application refers to answers in addition to the operating system of terminal is included Other terminals except have installed application.For example, third-party application can be instant to download from third-party application download platform Communication applications or camera applications etc., the embodiment of the present disclosure is to this without specifically limiting.
The implementation environment that the response method of the slip lid operation provided below the embodiment of the present disclosure is related to is introduced.Fig. 1 A kind of structural schematic diagram of terminal shown according to an exemplary embodiment with Fig. 2, the terminal be can pull-push moving type, this kind Type terminals are also referred to as slip cover terminal in the embodiments of the present disclosure.Wherein, Fig. 1 is the side view of slip cover terminal in closed state Figure, Fig. 2 are side view of the slip cover terminal under state of scratching.As depicted in figs. 1 and 2, which includes: first structure and second Structure, first structure are covered in the second structure, and first structure can in the second structure push-and-pull move.Wherein, the first knot Structure is responsible for display, can be realized 100% and shields comprehensively, includes the other component of compositing terminal in the second structure, and in the second structure It is usually provided with front camera, that is, is directed to for slip cover terminal, in order to realize that 100% shields comprehensively, usually by front camera It is arranged in the second structure.
Above structure based on slip cover terminal, in the embodiments of the present disclosure slip lid operation refer to: first structure is the Push-and-pull move in two structures.For example, when the first structure position as shown in Figure 1 of terminal, push-and-pull move is extremely in the second structure When position shown in Fig. 2, i.e., expression user executes a slip lid operation.
In the embodiments of the present disclosure, terminal can by slip lid operation come the manual click operation of virtual key of analog subscriber, And responded, open the specific function in third-party application.For example, terminal is after detecting slip lid operation, however, it is determined that current Third-party application in front stage operation is camera applications, then can voluntarily start the shooting function of the camera applications.
In addition, as it was noted above, for compared to the update cycle of operating system, update cycle of third-party application compared with It is short, the version of third-party application may frequent updating, and with the update of third-party application, such as third-party application it is virtual The attribute information of key may change, for example layout or title change.And at this time since operating system does not arrive more The new time, so new attribute information operating system not timely learning, for this kind of situation, after third-party application update extremely This period before operating system update, slip lid operation just can not simulate again clicks operation of virtual key manually, i.e., in this period Even if user triggers slip lid operation, slip cover terminal can not also be responded.The embodiment of the present disclosure is in order to solve because of third-party application The simulation of version updating bring click Problem of Failure, propose a kind of response method of slip lid operation, specifically refer to following Embodiment.
Fig. 3 is a kind of flow chart of the response method of slip lid operation shown according to an exemplary embodiment, this method Executing subject is terminal, and illustratively, this method can be executed by the operating system of terminal.As shown in Figure 3, comprising the following steps:
In step 301, when detecting slip lid operation, the target application for being currently at front stage operation is determined.
In step 302, it if target application operates response failure to slip lid, obtains and target application is matched virtually presses The current attribute information of key, target application are the third-party application that version updating occurs, and virtual key is for starting target application In objective function, the more new version of current attribute information and target application matches.
In step 303, if current attribute information and the historical status information of virtual key are inconsistent, with current attribute Information replacement currently operates the historical status information being adapted to slip lid.
In step 304, when detecting slip lid operation again, then slip lid operation is responded, objective function is started.
The method that the embodiment of the present disclosure provides, occurs matching with the application for third-party application because version updating occurs The attribute information of virtual key change, and operating system leads to end because not being updated to the attribute information of the application also Hold to for the application slip lid operation response failure the case where, terminal detect slip lid operation response turkey after, This can be immediately obtained using newest attribute information, and historical status information is replaced with newest attribute information, so that operation system System completes the update to the attribute information of the application in time, then when terminal detects the slip lid event for the application again, Just it can be based on newest attribute information, carry out the operation of success response slip lid, start corresponding function in the application, realize the To this period before operating system update after tripartite's application update, the manual click that slip lid operation can continue to analog subscriber is virtual Button operation, i.e., the slip lid operation that user triggers in this period, terminal also can be responded successfully.
In a kind of possible implementation, when showing the call request page of target application on terminal screen, when again It is secondary detect slip lid operation when, response slip lid operation, start objective function, comprising:
When the first structure for detecting terminal again moves in the second structure along target direction, response slip lid operation, It answers call and shows the receiving talking page.
In a kind of possible implementation, when the call request page for not showing target application on terminal screen or find a view When the frame page, when detecting slip lid operation again, response slip lid operation starts objective function, comprising:
When the first structure for detecting terminal again moves in the second structure along target direction, response slip lid operation, Start the shooting function of target application.
In a kind of possible implementation, when showing the view-finder page on terminal screen, when detecting slip lid again When operation, response slip lid operation starts objective function, comprising:
When the first structure for detecting terminal again moves in the second structure along target direction, response slip lid operation, Switch shooting direction.
In a kind of possible implementation, when detecting slip lid operation again, response slip lid operation starts target function It can, comprising:
When the first structure for detecting terminal again moves in the second structure along target direction, response slip lid operation, Notice is executed to target application transmission, so that target application starts objective function.
In a kind of possible implementation, this method further include:
The sensor of interest detection slip lid operation of terminal built-in is called based on sensor management interface.
All the above alternatives can form the alternative embodiment of the disclosure, herein no longer using any combination It repeats one by one.
Fig. 4 is a kind of flow chart of the response method of slip lid operation shown according to an exemplary embodiment, this method Executing subject is terminal, as shown in figure 4, including the following steps
In step 401, when detecting slip lid operation, terminal determines the target application for being currently at front stage operation.
Wherein, which refers to the third-party application for being currently at front stage operation in the embodiments of the present disclosure.Due to The type for the third-party application installed in terminal is more, and slip lid operation may be matched with multiple third-party applications, i.e. terminal Possible default setting or user's self-setting by slip lid operation start the specific function in multiple third-party applications, therefore are Avoid going wrong when responding slip lid operation, terminal when detecting slip lid operation, also need first it is determined that from Row starts the specific function in which third-party application to respond.In the embodiments of the present disclosure, terminal can according to application whether Target application is determined in front stage operation state.Wherein, what front stage operation state referred to is shown on the display screen of terminal It is shown with the interface for human-computer interaction of third-party application.
In the embodiments of the present disclosure, user can self-setting and slip lid operate the application being adapted to.For example, user can set in advance It sets slip lid operation to be adapted to instant messaging application, be adapted to or, presetting slip lid operation with camera applications.In addition, the disclosure is real It applies example also to support to operate the application being adapted to slip lid by terminal default setting, the embodiment of the present disclosure is to this without specifically limiting. It should be noted that the embodiment of the present disclosure also supports user's self-setting or terminal due to feature-rich using having The function being adapted to is operated with slip lid in default setting one application.
In addition, due to slip lid operation be for simulating manual clicking operation, so terminal also need in a clear application with The attribute information of the corresponding virtual key of function of slip lid operation adaptation, i.e. terminal, which also need to timely update, to be adapted to slip lid operation Above-mentioned attribute information, to maintain the manual clicking operation of analog subscriber effective.
The embodiment of the present disclosure detects that the mode of slip lid operation is not especially limited to terminal, and illustratively, terminal can base In sensor management interface, the sensor of interest of terminal built-in is called to detect slip lid operation.Wherein, sensor of interest reference is It can detecte the sensor of slip lid operation, sensor management interface can be SensorManager API, which can call Sensor of interest detects slip lid operation.That is, in the embodiments of the present disclosure, closure for slip cover terminal or movement is scratched, SensorManager API is realized by the detection identification of triggering hardware and is monitored slip cover terminal by SensorManager API Closure or the movement scratched.
In step 402, if target application operates response failure to the slip lid, terminal obtains matched with target application The current attribute information of virtual key.
Wherein, virtual key is used to start the objective function in target application, wherein the objective function can be to answer call Function or shooting function.By taking target application is instant messaging application as an example, which can be the virtual of starting shooting function Key, after clicking the key, terminal calls front camera or rear camera to be shot;Alternatively, the virtual key may be used also For the virtual key for answering call function, after clicking the key, terminal answers call.
In the embodiments of the present disclosure, target application to the slip lid operate response failure refer to be slip lid operation can not open The manual clicking operation failure of objective function in moving-target application, i.e. slip lid operation simulation.For this kind of situation, it is often as Caused by version updating occurs for target application, the version updating of target application causes the attribute information of above-mentioned virtual key to become Change.That is, when terminal detects that slip lid operates, and when having determined the target application for being currently at front stage operation, it can simulate manually The operation with the matched virtual key of target application is clicked, and since target application has occurred and that version updating, attribute information hair Changing, therefore will appear and can not be further continued for the case where simulating, objective function in the target application can not be started, i.e. target application Response failure is operated to slip lid.
Wherein, attribute information includes but is not limited to the layout information and name information of virtual key.Wherein, the layout information What is referred to is target application in front stage operation, the position of virtual key corresponding to objective function on the display screen, title What information referred to is the corresponding code logic of the virtual key.
In addition, terminal can obtain and match with target application after determining that target application operates response failure to slip lid The current attribute information of virtual key.Wherein, what current attribute information referred to is newest version information after version updating occurs In include attribute information, i.e., terminal obtain be newest attribute information.
In addition, if attribute information does not change after update or version updating do not occur for the version of target application, eventually End can operate the slip lid and respond, the automatic objective function started in target application.For example, when target application is Instant Messenger News can show the call request page on the display screen of terminal, with right in application, when the application receives voice communication request User reminds.Since even if communication applications at this time are in front stage operation state, terminal after detecting slip lid operation, It can voluntarily start in instant messaging application and answer call function.
In step 403, if current attribute information and the historical status information of virtual key are inconsistent, terminal is with current Attribute information replacement currently operates the historical status information being adapted to slip lid.
In the embodiments of the present disclosure, when terminal detects slip lid operation, virtual key is clicked manually in order to simulate, can be obtained It takes and currently operates the historical status information being adapted to the slip lid, to start to the objective function in target application, but work as When version updating has occurred for target application and corresponding attribute information is caused to change for version updating, the historical status information is just It is no longer desirable for slip lid operation.
By taking layout information as an example, after layout information changes, if terminal is not updated layout information, terminal is just gone back The dynamic click virtual key of user hand can be simulated on original position, and the display position of practical virtual key is in the display interface Different, this will lead to slip lid operation simulation and clicks failure manually, and target application operates the case where response fails to slip lid.For This, need to also when version updating has occurred for target application and version updating causes attribute information to change, in time to slip lid The attribute information of operation adaptation is updated, i.e., terminal is currently adapted to slip lid operation with the attribute information replacement of latest edition Historical status information.
Wherein, when judging whether to attribute information replacement, can by newest attribute information and historical status information into Row comparison, if newest attribute information and the historical status information are inconsistent, carries out the replacement of attribute information.
In step 404, when the first structure for detecting terminal again moves in the second structure along target direction, eventually Response slip lid operation in end executes notice to target application transmission, so that target application starts objective function.
Wherein, the first structure that slip lid operation above-mentioned refers herein to terminal is moved in the second structure along target direction It is dynamic, wherein target direction can slide from top to bottom for first structure, can also slide from bottom to top for first structure, the disclosure is real Example is applied to this without specifically limiting.The glide direction is related with the position of front camera, when front camera is in the second knot When the top of structure, target direction be from top to bottom, when front camera is at the bottom of the second structure, target direction be from it is lower to On.
In the embodiments of the present disclosure, when terminal detects slip lid operation again, since attribute information has been carried out It updates, that is, has updated the incidence relation between slip lid operation and attribute information, therefore terminal can operate the slip lid and successfully ring It answers.In this way, before the corresponding attribute information of target application next time changes because of the version updating of target application, user It can be operated by executing slip lid operation to simulate the current slip lid of playback, and execute respective response event.
It should be noted that the process of target application response slip lid operation, mainly terminal send to target application and execute Notice, target application notify starting objective function when receiving execution notice, according to the execution.
Illustratively, terminal includes but is not limited to three kinds following to the response that slip lid operates:
In a kind of possible implementation, terminal is achievable to answer call when detecting slip lid operation.
Wherein, when showing the call request page of target application on terminal screen, when detecting the of terminal again One structure when moving in the second structure along target direction, answer call and show the receiving talking page by response slip lid operation.
The call request page that target application is shown on terminal screen shows that target application is in front stage operation state, And it can determine the current function of needing starting to answer call.Terminal obtains the current attribute of receiving talking key in the target application Information, and notice is executed to target application sending based on the attribute information, target application is after receiving execution notice, simulation Manual click to dial answers the operation of key, and then answers call, and shows the receiving talking page on a terminal screen.
In a kind of possible implementation, terminal can start shooting function when detecting slip lid operation.
Wherein, when not showing the call request page or the view-finder page of target application on terminal screen, when again The first structure of terminal is detected when moving in the second structure along target direction, response slip lid operation starts shooting function.
Both the call request of target application is not shown on terminal screen without the view-finder page, it may be determined that target application is worked as yet Before need to start shooting function.Terminal obtains the current attribute information of shooting button in the target application, and is believed based on the attribute It ceases to target application sending and executes notice, target application is simulated after receiving execution notice and clicks shooting button manually Operation, and then camera is opened, start shooting function, i.e., shows view-finder on the display screen of terminal.Wherein, when terminal is set When being equipped with multiple cameras, when detecting slip lid operation, starting which camera can be by terminal default setting, or, can be by User is set in advance as needed, the embodiment of the present disclosure to this without specifically limiting, such as be set as slip lid operation with it is preposition Camera adaptation.
In a kind of possible implementation, terminal is when detecting slip lid operation, achievable switching shooting direction function.
Wherein, when showing the view-finder page on terminal screen, when detecting the first structure of terminal second again When moving in structure along target direction, response slip lid operation switches shooting direction.
When showing the view-finder page of target application on terminal screen, show that target application is in front stage operation state, And it can determine the current function of needing to start switching shooting direction.Terminal, which obtains, switches working as camera key in the target application Preceding attribute information, and notice is executed to target application sending based on the attribute information, after target application receives execution notice, mould The quasi- operation for clicking switching camera key manually, and then switch shooting direction, and show on the display screen of terminal.
Wherein, the embodiment of the present disclosure is not especially limited the type of switching shooting direction, and illustratively, terminal is provided with Front camera and rear camera, when the view-finder page shown on terminal screen and rear camera to it is corresponding when detection To when slip lid operation, terminal automatically switches camera, so that the view-finder page is corresponding with front camera shooting.Similarly, work as end On the screen of end the view-finder page that shows and front camera to it is corresponding when detecting slip lid operation, terminal automatically switches to take the photograph As head, so that the view-finder page is corresponding with rear camera shooting.
Illustratively, the executing subject of the response method of above-mentioned slip lid operation is the operating system of terminal, the operation of terminal System is detecting slip lid operation, can execute notice to third-party application transmission, carry out so that third party operates the slip lid Response, starts pre-set function.
The method that the embodiment of the present disclosure provides, occurs matching with the application for third-party application because version updating occurs The attribute information of virtual key change, and operating system leads to end because not being updated to the attribute information of the application also Hold to for the application slip lid operation response failure the case where, terminal detect slip lid operation response turkey after, This can be immediately obtained using newest attribute information, and the historical status being adapted to is operated with slip lid with the replacement of newest attribute information Information is then answered when terminal detects again for this so that operating system completes the update to the attribute information of the application in time When slip lid event, it just can be based on newest attribute information, carry out the operation of success response slip lid, started corresponding in the application Function is realized to this period before operating system update after third-party application update, and slip lid operation can continue to simulation and use The manual click operation of virtual key at family, i.e., the slip lid operation that user triggers in this period, terminal also can successfully be rung It answers.That is, the embodiment of the present disclosure is realized can be quickly adapted to after third-party application update, it is ensured that terminal responds slip lid The duration of operation.
Fig. 5 is a kind of block diagram of the responding device of slip lid operation shown according to an exemplary embodiment.As shown in figure 5, The device includes determining module 501, obtains module 502, replacement module 503 and respond module 504.
Determining module 501 is configured as determining that the target for being currently at front stage operation is answered when detecting slip lid operation With;
Module 502 is obtained, response failure is operated to slip lid if being configured as target application, acquisition is matched with target application Virtual key current attribute information, target application is the third-party application that version updating occurs, and virtual key is for starting The more new version of objective function in target application, current attribute information and target application matches;
Replacement module 503, if the historical status information for being configured as current attribute information and virtual key is inconsistent, with The replacement of current attribute information currently operates the historical status information being adapted to slip lid;
Respond module 504 is configured as when detecting slip lid operation again, and response slip lid operation starts objective function.
The device that the embodiment of the present disclosure provides, occurs matching with the application for third-party application because version updating occurs The attribute information of virtual key change, and operating system leads to end because not being updated to the attribute information of the application also Hold to for the application slip lid operation response failure the case where, terminal detect slip lid operation response turkey after, This can be immediately obtained using newest attribute information, and the historical status being adapted to is operated with slip lid with the replacement of newest attribute information Information is then answered when terminal detects again for this so that operating system completes the update to the attribute information of the application in time When slip lid event, it just can be based on newest attribute information, carry out the operation of success response slip lid, started corresponding in the application Function is realized to this period before operating system update after third-party application update, and slip lid operation can continue to simulation and use The manual click operation of virtual key at family, i.e., the slip lid operation that user triggers in this period, terminal also can successfully be rung It answers.That is, the embodiment of the present disclosure is realized can be quickly adapted to after third-party application update, it is ensured that terminal responds slip lid The duration of operation.
In a kind of possible implementation, respond module 504 is additionally configured to show target application on terminal screen The call request page when, when the first structure for detecting terminal again moves in the second structure along target direction, response Slip lid operation, answers call and shows the receiving talking page.
In a kind of possible implementation, respond module 504 is additionally configured to not show target on the terminal screen and answer When the call request page or the view-finder page, when detecting the first structure of terminal in the second structure along target side again To when movement, response slip lid operation starts the shooting function of target application.
In a kind of possible implementation, respond module 504 is also configured to show the view-finder page on terminal screen When, for when the first structure for detecting terminal again moves in the second structure along target direction, response slip lid operation switches Shooting direction.
In a kind of possible implementation, respond module 504 is additionally configured to detect the first structure of terminal again When moving in the second structure along target direction, response slip lid operation executes notice to target application transmission, so that target application Start objective function.
In a kind of possible implementation, referring to Fig. 6, which further includes detection module 505, is configured as based on sensing Device management interface calls the sensor of interest detection slip lid operation of terminal built-in.
All the above alternatives can form the alternative embodiment of the disclosure, herein no longer using any combination It repeats one by one.
Fig. 7 is a kind of block diagram of the responding device 700 of slip lid operation shown according to an exemplary embodiment.For example, dress Setting 700 can be mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical treatment Equipment, body-building equipment, personal digital assistant etc..
Referring to Fig. 7, device 700 may include following one or more components: processing component 702, memory 704, power supply Component 706, multimedia component 708, audio component 710, the interface 712 of I/O (Input/Output, input/output), sensor Component 714 and communication component 716.
The integrated operation of the usual control device 700 of processing component 702, such as with display, telephone call, data communication, phase Machine operation and record operate associated operation.Processing component 702 may include that one or more processors 720 refer to execute It enables, to perform all or part of the steps of the methods described above.In addition, processing component 702 may include one or more modules, just Interaction between processing component 702 and other assemblies.For example, processing component 702 may include multi-media module, it is more to facilitate Interaction between media component 708 and processing component 702.
Memory 704 is configured as storing various types of data to support the operation in device 700.These data are shown Example includes the instruction of any application or method for operating on device 700, contact data, and telephone book data disappears Breath, picture, video etc..Memory 704 can be by any kind of volatibility or non-volatile memory device or their group It closes and realizes, such as SRAM (Static Random Access Memory, static random access memory), EEPROM (Electrically-Erasable Programmable Read-Only Memory, the read-only storage of electrically erasable Device), EPROM (Erasable Programmable Read Only Memory, Erasable Programmable Read Only Memory EPROM), PROM (ProgrammableRead-Only Memory, programmable read only memory), ROM (Read-Only Memory, read-only storage Device), magnetic memory, flash memory, disk or CD.
Power supply module 706 provides electric power for the various assemblies of device 700.Power supply module 706 may include power management system System, one or more power supplys and other with for device 700 generate, manage, and distribute the associated component of electric power.
Multimedia component 708 includes the screen of one output interface of offer between device 700 and user.In some realities It applies in example, screen may include LCD (Liquid Crystal Display, liquid crystal display) and TP (Touch Panel, touching Touch panel).If screen includes touch panel, screen may be implemented as touch screen, to receive input signal from the user. Touch panel includes one or more touch sensors to sense the gesture on touch, slide, and touch panel.Touch sensor The boundary of a touch or slide action can be not only sensed, but also detects duration relevant to touch or slide and pressure Power.In some embodiments, multimedia component 708 includes a front camera and/or rear camera.At device 700 In operation mode, such as in a shooting mode or a video mode, front camera and/or rear camera can receive external more matchmakers Volume data.Each front camera and rear camera can be a fixed optical lens system or have focal length and optics Zoom capabilities.
Audio component 710 is configured as output and/or input audio signal.For example, audio component 710 includes a MIC (Microphone, microphone), when device 700 is in operation mode, such as call mode, recording mode, and voice recognition mode When, microphone is configured as receiving external audio signal.The received audio signal can be further stored in memory 704 Or it is sent via communication component 716.In some embodiments, audio component 710 further includes a loudspeaker, for exporting audio Signal.
I/O interface 712 provides interface between processing component 702 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock Determine button.
Sensor module 714 includes one or more sensors, and the state for providing various aspects for device 700 is commented Estimate.For example, sensor module 714 can detecte the state that opens/closes of equipment 700, the relative positioning of component, such as component For the display and keypad of device 700, sensor module 714 can be with the position of 700 1 components of detection device 700 or device Set change, the existence or non-existence that user contacts with device 700, the temperature in 700 orientation of device or acceleration/deceleration and device 700 Variation.Sensor module 714 may include proximity sensor, be configured to detect without any physical contact near The presence of object.Sensor module 714 can also include optical sensor, such as CMOS (Complementary Metal Oxide Semiconductor, complementary metal oxide) or CCD (Charge-coupled Device, charge coupled cell) image biography Sensor, for being used in imaging applications.In some embodiments, which can also include acceleration sensing Device, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 716 is configured to facilitate the communication of wired or wireless way between device 700 and other equipment.Device 700 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 716 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, communication component 716 further includes NFC (Near Field Communication, near-field communication) Module, to promote short range communication.For example, NFC module can based on RFID (Radio Frequency Identification, Radio frequency identification) technology, IrDA (Infra-red Data Association, Infrared Data Association) technology, UWB (Ultra Wideband, ultra wide band) technology, BT (Bluetooth, bluetooth) technology and other technologies realize.
In the exemplary embodiment, device 700 can be by one or more ASIC (Application Specific Integrated Circuit, application specific integrated circuit), DSP (Digital signal Processor, at digital signal Manage device), DSPD (Digital signal Processor Device, digital signal processing appts), PLD (Programmable Logic Device, programmable logic device), FPGA) (Field Programmable Gate Array, field programmable gate Array), controller, microcontroller, microprocessor or other electronic components realize, 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 704 of instruction, above-metioned instruction can be executed by the processor 720 of device 700 to complete the above method.For example, Non-transitorycomputer readable storage medium can be ROM, RAM (Random Access Memory, random access memory), CD-ROM (Compact Disc Read-Only Memory, compact disc read-only memory), tape, floppy disk and optical data storage are set It is standby etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in storage medium is held by the processor of device 700 When row, so that device 700 is able to carry out the response method of above-mentioned slip lid operation.
Those skilled in the art consider specification and practice it is disclosed herein after, will readily occur to other implementations of the disclosure Scheme.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or adaptability Variation follows the general principles of this disclosure and including the undocumented common knowledge or usual skill in the art of the disclosure Art means.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following claim It points 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 (14)

1. a kind of response method of slip lid operation, which is characterized in that the described method includes:
When detecting slip lid operation, the target application for being currently at front stage operation is determined;
If the target application operates response failure to the slip lid, obtain and the matched virtual key of the target application Current attribute information, the target application are the third-party application that version updating occurs, and the virtual key is described for starting The more new version of objective function in target application, the current attribute information and the target application matches;
If the current attribute information and the historical status information of the virtual key are inconsistent, with the current attribute information Replacement currently operates the historical status information being adapted to slip lid;
When detecting slip lid operation again, the slip lid operation is responded, the objective function is started.
2. the method according to claim 1, wherein when the call for showing the target application on terminal screen It is described when detecting slip lid operation again when request page, the slip lid operation is responded, the objective function is started, comprising:
When the first structure for detecting terminal again moves in the second structure along target direction, the slip lid operation is responded, It answers call and shows the receiving talking page.
3. the method according to claim 1, wherein when the logical of the target application is not shown on terminal screen It is described when detecting slip lid operation again when talking about request page or the view-finder page, it responds the slip lid and operates, described in starting Objective function, comprising:
When the first structure for detecting terminal again moves in the second structure along target direction, the slip lid operation is responded, Start the shooting function of the target application.
4. described the method according to claim 1, wherein when showing the view-finder page on terminal screen When detecting slip lid operation again, the slip lid operation is responded, the objective function is started, comprising:
When the first structure for detecting terminal again moves in the second structure along target direction, the slip lid operation is responded, Switch shooting direction.
5. the method according to claim 1, wherein described when detecting slip lid operation again, described in response Slip lid operation, starts the objective function, comprising:
When the first structure for detecting terminal again moves in the second structure along target direction, the slip lid operation is responded, Notice is executed to target application transmission, so that the target application starts the objective function.
6. the method according to claim 1, wherein the method also includes:
The sensor of interest of terminal built-in is called to detect the slip lid operation based on sensor management interface.
7. a kind of responding device of slip lid operation, which is characterized in that described device includes:
Determining module is configured as determining the target application for being currently at front stage operation when detecting slip lid operation;
Module is obtained, response failure is operated to the slip lid if being configured as the target application, acquisition is answered with the target With the current attribute information of matched virtual key, the target application is the third-party application that version updating occurs, the void Quasi- key is used to start the objective function in the target application, the more new edition of the current attribute information and the target application Originally match;
Replacement module, if being configured as the current attribute information and the historical status information of the virtual key is inconsistent, The historical status information being adapted to currently is operated with slip lid with current attribute information replacement;
Respond module is configured as when detecting slip lid operation again, is responded the slip lid operation, is started the target function Energy.
8. device according to claim 7, which is characterized in that the respond module is additionally configured to when on terminal screen When showing the call request page of the target application, when detecting the first structure of terminal in the second structure along mesh again When marking direction movement, the slip lid operation is responded, call is answered and shows the receiving talking page.
9. device according to claim 7, which is characterized in that the respond module is additionally configured to when on terminal screen When not showing the call request page or the view-finder page of the target application, when the first structure for detecting terminal again exists When being moved in the second structure along target direction, the slip lid operation is responded, the shooting function of the target application is started.
10. device according to claim 7, which is characterized in that the respond module is additionally configured to when on terminal screen When showing the view-finder page, when the first structure for detecting terminal again moves in the second structure along target direction, ring It answers the slip lid to operate, switches shooting direction.
11. device according to claim 7, which is characterized in that the respond module is additionally configured to detect again The first structure of terminal responds the slip lid operation, Xiang Suoshu target application hair when moving in the second structure along target direction It send and executes notice, so that the target application starts the objective function.
12. device according to claim 7, which is characterized in that described device further include:
Detection module is configured as that the sensor of interest of terminal built-in is called to detect the slip lid behaviour based on sensor management interface Make.
13. a kind of responding device of slip lid operation, which is characterized in that described device includes:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to: when detecting slip lid operation, determine that being currently at the target of front stage operation answers With;If the target application operates response failure to the slip lid, obtain and the matched virtual key of the target application Current attribute information, the target application are the third-party application that version updating occurs, and the virtual key is described for starting The more new version of objective function in target application, the current attribute information and the target application matches;If described work as The historical status information of preceding attribute information and the virtual key is inconsistent, then with the current attribute information replacement currently with cunning The historical status information of lid operation adaptation;When detecting slip lid operation again, responds the slip lid and operate, described in starting Objective function.
14. a kind of computer readable storage medium, is stored thereon with computer program instructions, which is characterized in that the computer The response of the operation of slip lid described in any claim in the claims 1 to 6 is realized when program instruction is executed by processor Method.
CN201811224062.5A 2018-10-19 2018-10-19 Response method and device for sliding cover operation and storage medium Active CN109408271B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811224062.5A CN109408271B (en) 2018-10-19 2018-10-19 Response method and device for sliding cover operation and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811224062.5A CN109408271B (en) 2018-10-19 2018-10-19 Response method and device for sliding cover operation and storage medium

Publications (2)

Publication Number Publication Date
CN109408271A true CN109408271A (en) 2019-03-01
CN109408271B CN109408271B (en) 2022-04-15

Family

ID=65468666

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811224062.5A Active CN109408271B (en) 2018-10-19 2018-10-19 Response method and device for sliding cover operation and storage medium

Country Status (1)

Country Link
CN (1) CN109408271B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110888812A (en) * 2019-11-26 2020-03-17 国核自仪系统工程有限公司 System and method for testing response time of terminal page

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100255862A1 (en) * 2007-08-29 2010-10-07 Kyocera Corporation Electronic device and input interface switching method
CN101997945A (en) * 2009-08-25 2011-03-30 Lg电子株式会社 Display device in mobile terminal and method for controlling the same
US20130234950A1 (en) * 2007-12-28 2013-09-12 Panasonic Corporation Portable terminal device and display control method
CN106528252A (en) * 2016-12-09 2017-03-22 北京小米移动软件有限公司 Object launching method and apparatus
CN107295127A (en) * 2017-06-30 2017-10-24 联想(北京)有限公司 Handheld device and its application method
CN107308644A (en) * 2017-07-12 2017-11-03 腾讯科技(深圳)有限公司 The acquisition methods and device of configuration information
CN107436748A (en) * 2017-07-13 2017-12-05 普联技术有限公司 Handle method, apparatus, terminal device and the computer-readable recording medium of third-party application message

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100255862A1 (en) * 2007-08-29 2010-10-07 Kyocera Corporation Electronic device and input interface switching method
US20130234950A1 (en) * 2007-12-28 2013-09-12 Panasonic Corporation Portable terminal device and display control method
CN101997945A (en) * 2009-08-25 2011-03-30 Lg电子株式会社 Display device in mobile terminal and method for controlling the same
CN106528252A (en) * 2016-12-09 2017-03-22 北京小米移动软件有限公司 Object launching method and apparatus
CN107295127A (en) * 2017-06-30 2017-10-24 联想(北京)有限公司 Handheld device and its application method
CN107308644A (en) * 2017-07-12 2017-11-03 腾讯科技(深圳)有限公司 The acquisition methods and device of configuration information
CN107436748A (en) * 2017-07-13 2017-12-05 普联技术有限公司 Handle method, apparatus, terminal device and the computer-readable recording medium of third-party application message

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110888812A (en) * 2019-11-26 2020-03-17 国核自仪系统工程有限公司 System and method for testing response time of terminal page
CN110888812B (en) * 2019-11-26 2023-11-07 国核自仪系统工程有限公司 Test system and test method for response time of terminal page

Also Published As

Publication number Publication date
CN109408271B (en) 2022-04-15

Similar Documents

Publication Publication Date Title
CN102714698B (en) For electronic equipment and the method for photographic images
CN106547663B (en) Key management method and device
CN106028143A (en) Video live broadcasting method and device
CN103873684B (en) The application process of flashlight and device
CN109117874A (en) Operation behavior prediction technique and device
CN107426502A (en) Image pickup method and device, electronic equipment
CN109951379A (en) Message treatment method and device
CN104243829A (en) Self-shooting method and self-shooting device
CN106775676A (en) List method to set up and device
CN105426060B (en) application control method and device
CN104216525A (en) Method and device for mode control of camera application
CN105549300A (en) Automatic focusing method and device
CN108965611A (en) Shoot switching method, device, equipment and the storage medium at interface
CN105204712B (en) The display methods and device of folder icon
CN108577709B (en) Intelligent mop working method and device and storage medium
CN109558229A (en) Browser control method and device
CN106650569B (en) Fingerprint input method and device
CN107133059A (en) Camera control method, device and mobile terminal
CN104780256A (en) Address book management method and device and intelligent terminal
CN109408271A (en) Response method, device and the storage medium of slip lid operation
CN106453779A (en) Call processing method and apparatus
CN105611025A (en) Method and device for displaying related telephone number
CN107844257B (en) Information display method, device, terminal and storage medium
CN105956489B (en) Long-range control method and device
CN103888612B (en) Call transferring method, device and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant