Application response method, device, electronic device and readable storage medium

By acquiring and distributing trigger events in the preset area of ​​the screen, the problem of inaccurate application response in the prior art is solved, and accurate identification of user interaction intentions and accurate response of application are achieved.

CN113971092BActive Publication Date: 2025-02-25GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202010703421.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-21
Publication Date
2025-02-25
Estimated Expiration
2040-07-21

AI Technical Summary

Technical Problem

The prior art is difficult to accurately obtain user's interaction intentions for applications, resulting in inaccurate application responses.

Method used

By obtaining the trigger event that occurs in the preset area of ​​the screen and the conflict event preset in the preset area, when the trigger event is inconsistent with the conflict event, the trigger event is distributed to the target application to achieve the accurate response of the application.

Benefits of technology

It can accurately monitor trigger events for preset areas of the screen, thereby achieving accurate response of the application, improving the accuracy of user interaction and the response efficiency of the application.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113971092B_ABST
    Figure CN113971092B_ABST
Patent Text Reader

Abstract

The present application relates to a method, device, computer equipment and storage medium for responding to an application. The method comprises: obtaining a trigger event occurring in a preset area of ​​a screen; obtaining a conflict event preset in the preset area; when the trigger event is inconsistent with the conflict event, distributing the trigger event to a target application, wherein the target application responds to the trigger event. The method can accurately respond to the trigger event.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method, device, electronic device and computer-readable storage medium for responding to an application. Background Art

[0002] Various applications are installed in electronic devices, including system applications and third-party applications. When a user uses an application, he or she can interact with the application by controlling physical keys. When the application receives the user's operation, it will respond to the user's operation. For example, a user can adjust the volume of a player in the electronic device by rotating a wheel installed on the electronic device.

[0003] However, this method of interacting with an application by controlling a physical key cannot accurately obtain the application that the user wants to interact with, and thus cannot accurately implement the response of the application. Summary of the invention

[0004] The embodiments of the present application provide a method, device, electronic device, and computer-readable storage medium for responding to an application program, which can accurately implement the response of the application program.

[0005] A response method of an application, comprising:

[0006] Get the trigger events that occur in the preset area of ​​the screen;

[0007] Obtaining a conflict event preset in the preset area;

[0008] When the trigger event is inconsistent with the conflict event, the trigger event is distributed to a target application, wherein the target application responds to the trigger event.

[0009] A response device for an application, comprising:

[0010] A trigger event acquisition module is used to acquire a trigger event occurring in a preset area of ​​the screen;

[0011] A conflict event acquisition module, used to acquire the conflict events preset in the preset area;

[0012] A response module is used to distribute the trigger event to a target application when the trigger event is inconsistent with the conflict event, wherein the target application responds to the trigger event.

[0013] An electronic device comprises a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the above-mentioned application program response method.

[0014] A computer-readable storage medium stores a computer program, which implements the steps of the above method when executed by a processor.

[0015] The above-mentioned application response method, device, electronic device and computer-readable storage medium obtain a trigger event occurring in a preset area of ​​the screen; obtain a conflict event preset in the preset area; when the trigger event is inconsistent with the conflict event, it indicates that the trigger event is generated by a trigger operation on the preset area in the screen, rather than a trigger operation on the ordinary area in the screen, then the electronic device can accurately monitor the trigger event for the preset area of ​​the screen, thereby accurately implementing the response of the application. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0017] Figure 1 An application environment diagram of a response method of an application program in one embodiment;

[0018] Figure 2 is a flowchart of a response method of an application in one embodiment;

[0019] Figure 3 is a flow chart of a method for determining a target application in one embodiment;

[0020] Figure 4 This is a schematic diagram of an interface of a preset area on a screen in an embodiment;

[0021] Figure 5 It is a schematic diagram of an interface of a preset area on a screen in another embodiment;

[0022] Figure 6 is a flowchart of a response method of an application in another embodiment;

[0023] Figure 7 is a structural block diagram of a response device of an application in one embodiment;

[0024] Figure 8 FIG. 1 is a schematic diagram of the internal structure of an electronic device in an embodiment. DETAILED DESCRIPTION

[0025] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0026] It is understood that the terms "first", "second", etc. used in this application may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. For example, without departing from the scope of this application, a first direction may be referred to as a second direction, and similarly, a second direction may be referred to as a first direction. Both the first direction and the second direction are directions, but they are not the same direction.

[0027] Figure 1 FIG. 1 is a schematic diagram of an application environment of a response method of an application program in an embodiment. Figure 1 The electronic device 100 is shown, and the electronic device includes a screen 102, and a preset area 104 is provided in the screen. The electronic device 100 obtains a trigger event occurring in a preset area of ​​the screen; obtains a conflict event preset in the preset area; when the trigger event is inconsistent with the conflict event, the trigger event is distributed to a target application, wherein the target application responds to the trigger event. The electronic device 100 may be a personal computer, a laptop computer, a smart phone, a tablet computer, a portable wearable device, etc. Portable wearable devices include smart watches, smart bracelets, etc.

[0028] Figure 2 FIG. 1 is a flow chart of a response method of an application program in one embodiment. Figure 2 As shown, the application's response method includes steps 202 to 206.

[0029] Step 202: Acquire a trigger event occurring in a preset area of ​​the screen.

[0030] The shape of the screen can be rectangular, circular, etc. The screen can be an OLED (Organic Light-Emitting Diode) screen or an LCD (Liquid Crystal Display) screen. The screen can be a flat screen or a curved screen.

[0031] When the screen is a curved screen, the curved screen may include a bending area and may also include a flat area. Generally, the bending area is at the edge of the curved screen, such as the left and right edge areas, such as the upper and lower edge areas; and the flat area is at the center of the curved screen. When the screen is a curved screen, the preset area can be set in the bending area of ​​the curved screen, so that the user can perform a specific trigger operation on the preset area in the bending area, and perform a normal trigger operation on the flat area of ​​the curved screen; setting the preset area in the bending area of ​​the curved screen can separate the specific trigger operation on the preset area and the normal trigger operation on the flat area from the physical device, avoiding the problem of application response caused by the user's false triggering, and improving the accuracy of the application response.

[0032] The preset area of ​​the screen refers to an area preset in the screen. The preset area can be an edge area of ​​the screen, a central area of ​​the screen, or other areas of the screen, but is not limited thereto.

[0033] The trigger event that occurs in the preset area of ​​the screen is the event generated by the trigger operation on the preset area of ​​the screen. The trigger operation on the preset area of ​​the screen may include clicking, sliding up and down, sliding left and right, double-clicking, long pressing, etc. Correspondingly, the trigger events that occur in the preset area of ​​the screen that are monitored may include clicking events, sliding up and down events, sliding left and right events, double-clicking events, long pressing events, etc.

[0034] The electronic device monitors a preset area of ​​the screen, and when a trigger event occurs in the preset area, acquires the trigger event occurring in the preset area of ​​the screen.

[0035] Step 204: Obtain a preset conflict event in a preset area.

[0036] A conflict event refers to a trigger event that conflicts with a preset area.

[0037] The screen of the electronic device includes a preset area and other areas except the preset area. Generally, the other areas except the preset area are ordinary areas in the screen, while the preset area is a special area in the screen, and the other areas except the preset area are larger than the preset area.

[0038] When the user triggers the general area (other areas except the preset area), it is easy to trigger the general area and accidentally touch the preset area. For example, the preset area is set at the right edge of the screen. When the user slides the general area left or right, it is easy to slide into the preset area. Therefore, the conflict event of the preset area is set as the left or right sliding event.

[0039] The number of conflict events preset in the preset area may be one or at least two. The conflict events preset in the preset area may be set according to user needs.

[0040] Step 206: When the trigger event is inconsistent with the conflict event, the trigger event is distributed to the target application, wherein the target application responds to the trigger event.

[0041] The electronic device compares the trigger event with the conflict event. When the trigger event and the conflict event are inconsistent, it means that the trigger event is generated by a trigger operation on a preset area of ​​the screen, rather than a trigger operation on a common area of ​​the screen. Therefore, the electronic device distributes the trigger event to the target application. The target application receives the trigger event and responds to the trigger event.

[0042] For example, the target application is SystemUI, and a charging page will pop up during charging. When the trigger event received by the target application is a swipe up event, SystemUI responds by gradually enlarging the charging page along the sliding track and making the charging interface gradually transparent. When the charging page is enlarged to a certain size, the charging interface will be exited.

[0043] For another example, when the target application is a watch face application, when the trigger event received by the target application is an up or down sliding event, the watch face application responds by switching the style of the displayed watch face; when the trigger event received by the target application is a long press event, the watch face application responds by removing the currently displayed watch face.

[0044] For example, the target application is an application list. When the trigger event received by the target application is an up or down sliding event, the application list responds by quickly sliding the list from top to bottom; when the trigger event received by the target application is a double-click event, the application list responds by exiting the list and returning to the watch face interface.

[0045] For another example, the target application is a music player. When the trigger event received by the target application is an up and down sliding event, the application list responds by adjusting the volume; when the trigger event received by the target application is a double-click event, the application list responds by switching songs.

[0046] For example, double-clicking the preset area can quickly return to the top of the target application's page, long pressing the preset area can clear all notifications on the notification application's page with one click, sliding up and down in the preset area can adjust the brightness, clicking the preset area can mute the sound, and so on.

[0047] In this embodiment, the electronic device obtains a trigger event occurring in a preset area of ​​the screen; obtains a conflict event preset in the preset area; when the trigger event is inconsistent with the conflict event, it indicates that the trigger event is generated by a trigger operation on the preset area of ​​the screen, rather than a trigger operation on an ordinary area of ​​the screen, then the electronic device can accurately monitor the trigger event for the preset area of ​​the screen, thereby accurately implementing the response of the application.

[0048] In another embodiment, when the trigger event is consistent with the conflict event, a preset area in the screen is monitored.

[0049] When the trigger event is consistent with the conflict event, it means that the trigger event is generated by a trigger operation on a common area in the screen, rather than a trigger operation on a preset area in the screen. Therefore, the trigger event is discarded and the preset area in the screen continues to be monitored.

[0050] For example, the preset area is set at the upper edge of the screen, and the preset conflict event of the preset area is an up and down sliding event. When the user slides up and down on the ordinary area, it is easy to slide into the preset area. Therefore, when an up and down sliding event is monitored in the preset area, the up and down sliding event is caused by the user sliding the ordinary area in the screen and accidentally touching the preset area. Therefore, the trigger event is discarded and the preset area in the screen continues to be monitored, so that the trigger event occurring in the preset area of ​​the screen can be accurately monitored.

[0051] In one embodiment, Figure 3 As shown, the target application is determined by:

[0052] Step 302, obtaining the hierarchy of each application in the current window of the screen.

[0053] The current window of the screen refers to the current display window of the screen, that is, the display interface of the screen. In the current window of the screen of the electronic device, at least one application can be displayed. Among them, the application can be a system application or a third-party application. System applications are applications that come with the system of the electronic device, such as desktop applications, phone applications, etc. Third-party applications are applications developed by third parties, such as WeChat applications, Alipay applications, etc.

[0054] The level of an application refers to the level of the application in the current window of the screen. It is understandable that in the current window of the screen, the pages of various applications exist in different levels, and the higher the level of the application, the higher the level of the application page. For example, the page of the application with the highest level is at the highest level, that is, the page of the application with the highest level covers the pages of other applications. The page of the application with the lowest level is at the lowest level, that is, the page of the application with the lowest level is covered by the pages of other applications.

[0055] The level of the application can be set in advance. For example, when the electronic device receives a call reminder, the phone application is set to the highest level, and the page of the call reminder is displayed at the highest level of the current window on the screen, covering the pages of other applications.

[0056] For another example, when the time in the electronic device reaches the time set for the alarm, the alarm application is set to the highest level, and the page of the alarm application is displayed at the highest level of the current window on the screen, covering pages of other applications.

[0057] For another example, the electronic device can set the levels of the charging application, notification bar application, lock screen application, normal application, and desktop application respectively in descending order, so that the levels of the charging application page, notification bar application page, lock screen application page, normal application page, and desktop application page in the current window of the screen are in descending order.

[0058] Step 304 : determining a target application from among the various applications based on the hierarchy of the various applications in the current window of the screen.

[0059] The target application refers to an application determined from among various applications in the current window of the screen and responding to the triggering event.

[0060] When there is one application in the current window of the screen, the application can be directly determined as the target application. When there are at least two applications in the current window of the screen, the hierarchy of each application in the current window of the screen is obtained, and the target application is determined based on the hierarchy of each application in the current window of the screen.

[0061] In one embodiment, based on the hierarchy of each application in the current window of the screen, the electronic device can determine the highest-level application as the target application. In another embodiment, based on the hierarchy of each application in the current window of the screen, the electronic device can also determine the second-highest-level application as the target application. For example, the music application belongs to the second-highest level, the social application is at the highest level, and the trigger event occurring in the preset area can be for the application at the second-highest level. Therefore, when the trigger event occurring in the preset area of ​​the acquired screen is inconsistent with the conflict event, the trigger event is distributed to the second-highest-level music application, and the music application can respond to the trigger event, such as adjusting the volume, switching songs, etc. In other embodiments, based on the hierarchy of each application in the current window of the screen, the electronic device can also determine applications at other levels as target applications.

[0062] In this embodiment, the levels of each application in the current window of the screen are obtained; based on the levels of each application in the current window of the screen, the target application is determined from each application. In the current window of the screen, each application has different levels, indicating that the application is in different states. Based on the levels of each application in the current window of the screen, the target application that the user wants to interact with can be accurately determined, that is, the trigger event occurring in the preset area of ​​the screen is for the target application, so the trigger event is distributed to the target application, and the target application can accurately respond to the trigger event.

[0063] Moreover, in the above-mentioned embodiment, the interaction between the user and the target application is realized on the screen, thereby avoiding the complex interaction method that requires both interaction through the physical keys of the electronic device and interaction through the screen of the electronic device, unifying and simplifying the interaction method, and improving the practicality of the interaction method.

[0064] In one embodiment, based on the hierarchy of each application in the current window of the screen, determining the target application from each application includes: based on the hierarchy of each application in the current window of the screen, determining the highest-level application from each application as the target application.

[0065] The highest-level application, the page of which is at the highest level of the current window on the screen, covers the pages of other applications. When the user triggers the preset area, the highest-level application in the current window on the screen is most likely to be triggered. By taking the highest-level application as the target application, a more accurate target application can be determined, thereby achieving a more accurate response to the application.

[0066] In one embodiment, the preset area is located at the edge of the screen; and the angle difference between the sliding direction of the conflict event preset in the preset area and the direction of the edge of the screen where the preset area is located is within a preset range.

[0067] The position of the screen edge may be the left edge position, the right edge position, the upper edge position, the lower edge position, etc. The size of the preset area may be set according to user needs.

[0068] Usually, when the preset area is set at the left edge or right edge of the screen, the length of the preset area is smaller and the height of the preset area is larger, for example (5,20), 5 represents the length of the preset area and 20 represents the height of the preset area.

[0069] When the preset area is set at the upper edge or lower edge of the screen, the length of the preset area is larger and the height of the preset area is smaller, for example (30,5), 30 represents the length of the preset area, and 5 represents the height of the preset area.

[0070] When the screen is in a rectangular shape, the direction of the screen edge is the direction of the side of the rectangle. For example, the direction of the left screen edge is the direction of the left side of the rectangle, and the direction of the upper screen edge is the direction of the upper side of the rectangle.

[0071] It is understandable that when the user slides the ordinary area of ​​the screen, it is easy to slide to the preset area and cause the preset area to generate an erroneous trigger event. Furthermore, when the user slides the ordinary area of ​​the screen, if the angle difference between the sliding direction and the direction of the screen edge where the preset area is located is within a preset range, it is easy to slide to the preset area and cause the preset area to generate an erroneous trigger event.

[0072] For example, if the user slides the normal area to the right, and the preset area is located at the right edge of the screen, the user may easily slide into the preset area when sliding to the right, causing an erroneous trigger event in the preset area.

[0073] For another example, when the user slides the normal area upward, and the preset area is located at the upper edge of the screen, the user may easily slide into the preset area when sliding upward, causing an erroneous trigger event to occur in the preset area.

[0074] Therefore, the electronic device sets the angle difference between the sliding direction of the conflict event preset in the preset area and the direction of the screen edge where the preset area is located to be within a preset range. The preset range can be set according to user needs.

[0075] When the electronic device detects that the trigger event is a sliding event, it determines whether the angle difference between the sliding direction of the trigger event and the direction of the screen edge where the preset area is located is within a preset range; when the judgment is yes, the trigger event is consistent with the conflict event; when the judgment is no, the trigger event is inconsistent with the conflict event.

[0076] Furthermore, the preset area is located in an edge area of ​​a screen edge in a first direction, or in an edge area of ​​a screen edge in a second direction; the first direction and the second direction are perpendicular to each other.

[0077] For example, if the first direction is left-right, the second direction is up-down. If the first direction is up-down, the second direction is left-right. If the first direction is 30 degrees diagonal, the second direction is 120 degrees diagonal.

[0078] When the preset area is located in an edge area of ​​the screen edge in a first direction, the conflict event preset in the preset area is a sliding event in a second direction.

[0079] When the preset area is located in the edge area of ​​the screen edge in the second direction, the conflict event preset in the preset area is a sliding event in the first direction.

[0080] For example, the first direction is left-right, the second direction is up-down, the first direction of the screen edge is the left-right direction of the screen edge, and the upper and lower sides of the screen are left-right, therefore, the edge area in the first direction of the screen edge is the upper edge area and the lower edge area. Similarly, the edge area in the second direction of the screen edge is the left edge area and the right edge area.

[0081] When the preset area is the upper edge area or the lower edge area of ​​the screen, the conflict event preset in the preset area is an up-down sliding event. When the preset area is the left edge area or the right edge area of ​​the screen, the conflict event preset in the preset area is a left-right sliding event.

[0082] In this embodiment, the electronic device sets a preset area and a conflict event preset in the preset area, so as to more accurately determine the trigger event in the preset area, thereby more accurately implementing a response to the application.

[0083] In one embodiment, Figure 4 As shown, the preset area 402 is set at the edge area on the right side of the screen of the electronic device, and the conflict event preset in the preset area is a left-right pointing sliding event.

[0084] In another embodiment, Figure 5As shown, the preset area 502 is set at the edge area above the screen of the electronic device, and the conflict event preset in the preset area is an event of sliding in an upward or downward direction.

[0085] In one embodiment, before distributing the trigger event to the target application, it also includes: detecting whether the target application has a preset interface; distributing the trigger event to the target application, including: when the target application has a preset interface, calling the preset interface of the target application, and distributing the trigger event to the preset interface of the target application.

[0086] An interface (software class interface) refers to a reference type that defines a protocol. A preset interface is used to receive a trigger event generated in a preset area. The electronic device obtains a class function and calls the preset interface through the class function.

[0087] After the electronic device determines the target application, it detects whether the target application has a preset interface. If the target application has a preset interface, the electronic device can call the preset interface and distribute the trigger event to the preset interface. The target application can receive the trigger event through the preset interface.

[0088] In another embodiment, when the target application does not have a preset interface, a preset area in the screen is monitored.

[0089] If the target application does not have a preset interface, the electronic device cannot call the preset interface, nor can it send the trigger event to the target application. The target application cannot receive the trigger event and therefore cannot respond to the trigger event.

[0090] When the target application does not have a preset interface, the electronic device continues to monitor the preset area in the screen.

[0091] It is understandable that there are system applications and third-party applications installed in the electronic device, and the system applications usually have a preset interface, while the third-party applications may not have a preset interface. When the third-party application does not have a preset interface, the preset interface (SDK, Software Development Kit) can be downloaded from the developer platform.

[0092] In one embodiment, the target application responds to the trigger event, including: the target application obtains the correspondence between the trigger event and the response action, and determines the response action from the correspondence between the trigger event and the response action based on the trigger event; the target application executes the response action to respond.

[0093] The electronic device may pre-set the correspondence between the triggering events and the response actions of each application program. The correspondence between the triggering events and the response actions in each application program may be the same or different.

[0094] For example, the response action corresponding to the double-click event of application A is to return to the top of the page, and the response action corresponding to the double-click event of application B is to display the page in full screen; the response action corresponding to the upward swipe event of application A is to scroll the page up, and the response action corresponding to the upward swipe event of application B is to increase the volume.

[0095] After receiving the trigger event, the target application obtains the correspondence between the trigger event and the response action preset by the target application, searches for the response action corresponding to the trigger event from the correspondence between the trigger event and the response action, and executes the response action to respond.

[0096] In this embodiment, the target application obtains the correspondence between the trigger event and the response action, determines the response action from the correspondence between the trigger event and the response action based on the trigger event, and then executes the response action to respond. Different target applications can execute different response actions to respond, thereby improving the diversity and flexibility of the application response.

[0097] Furthermore, the trigger event carries a parameter value, which is used to identify the trigger event; after the target application receives the trigger event through the preset interface, it obtains the parameter value from the trigger event, matches the parameter value with each reference parameter value pre-stored in the preset interface, and identifies the trigger event based on the matching result; the target application obtains the correspondence between the trigger event and the response action, and determines the response action from the correspondence between the trigger event and the response action based on the identified trigger event.

[0098] In the preset interface of the target application, reference parameter values ​​corresponding to various trigger events are pre-stored. For example, the reference parameter value corresponding to the upward sliding event is 001, the reference parameter value corresponding to the downward sliding event is 002, and the reference parameter value corresponding to the double-click event is 003. The reference parameter value refers to the parameter value pre-stored in the preset interface of the target application.

[0099] After the electronic device distributes the trigger event to the target application, the target application receives the trigger event through the preset interface, obtains the parameter value from the trigger event, and matches the parameter value with each reference parameter value pre-stored in the preset interface to obtain a matching result. The matching result includes a reference parameter value that matches the parameter value, and the trigger event corresponding to the parameter value can be identified from the reference parameter value.

[0100] For example, the target application receives a trigger event, obtains the parameter value carried in the trigger event as 001, matches the parameter value 001 with each reference parameter value, and obtains a matching result. The matching result includes that the parameter value 001 matches the reference parameter value 001. Then, from the reference parameter value 001, it can be identified that the received trigger event is an upward slide event.

[0101] In one embodiment, Figure 6 As shown, the electronic device executes step 602 to monitor the preset area in the screen, and generates a trigger event when it monitors that the user touches the preset area. The electronic device executes step 604 to determine whether the trigger event is consistent with the conflict event preset in the preset area; when the judgment is no, step 606 is executed, and when the judgment is yes, step 612 is executed.

[0102] Step 606, the highest level application in the current window of the screen is determined as the target application. The electronic device executes step 608, calls the preset interface of the target application, and distributes the trigger event to the preset interface of the target application. The electronic device executes step 610, and the target application determines the response action from the corresponding relationship between the trigger event and the response action, and executes the response action to respond.

[0103] Step 612: discard the trigger event and return to step 602.

[0104] In this embodiment, the electronic device monitors a preset area in the screen. When it monitors that the user touches the preset area, a trigger event is generated. It is determined whether the trigger event is consistent with a conflict event preset in the preset area. If so, the trigger event is discarded and the preset area in the screen is continued to be monitored. Otherwise, the highest-level application in the current window of the screen is determined as the target application. The target application can be accurately determined whether the trigger event generated in the preset area is for the preset area, thereby accurately implementing the response of the application.

[0105] The electronic device calls the preset interface of the target application and distributes the trigger event to the preset interface of the target application. The target application determines the response action from the correspondence between the trigger event and the response action, and executes the response action to respond. Different target applications can execute different response actions to respond, thereby improving the diversity of application responses.

[0106] It should be understood that although Figure 2 , Figure 3 and Figure 6The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2 , Figure 3 and Figure 6 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0107] Figure 7 FIG. 4 is a structural block diagram of a response device of an application program according to an embodiment of the present invention. Figure 7 As shown, a response device 700 of an application is provided, comprising: a trigger event acquisition module 702, a conflict event acquisition module 704 and a response module 706, wherein:

[0108] The trigger event acquisition module 702 is used to acquire a trigger event occurring in a preset area of ​​the screen.

[0109] The conflict event acquisition module 704 is used to acquire the conflict events preset in the preset area.

[0110] The response module 706 is used to distribute the trigger event to the target application when the trigger event is inconsistent with the conflict event, wherein the target application responds to the trigger event.

[0111] The response device of the above-mentioned application obtains the trigger event occurring in the preset area of ​​the screen; obtains the conflict event preset in the preset area; when the trigger event is inconsistent with the conflict event, it indicates that the trigger event is generated by a trigger operation on the preset area in the screen, rather than a trigger operation on the ordinary area in the screen. The electronic device can accurately monitor the trigger event on the preset area of ​​the screen, thereby accurately implementing the response of the application.

[0112] In one embodiment, the above-mentioned application response device also includes a target application determination module, which is used to obtain the hierarchy of each application in the current window of the screen; based on the hierarchy of each application in the current window of the screen, determine the target application from each application.

[0113] In one embodiment, the target application determination module is further used to determine the highest-level application from among the various applications as the target application based on the levels of the various applications in the current window of the screen.

[0114] In one embodiment, the response device 700 of the above application further includes a monitoring module, which is used to monitor a preset area in the screen when the triggering event is consistent with the conflicting event.

[0115] In one embodiment, the preset area is located at the edge of the screen; and the angle difference between the sliding direction of the conflict event preset in the preset area and the direction of the edge of the screen where the preset area is located is within a preset range.

[0116] In one embodiment, the preset area is in the edge area in the first direction of the screen edge, or in the edge area in the second direction of the screen edge; the first direction and the second direction are perpendicular to each other; when the preset area is in the edge area in the first direction of the screen edge, the conflict event preset in the preset area is a sliding event in the second direction; when the preset area is in the edge area in the second direction of the screen edge, the conflict event preset in the preset area is a sliding event in the first direction.

[0117] In one embodiment, the response device 700 of the above-mentioned application also includes a preset interface detection module for detecting whether the target application has a preset interface; the above-mentioned response module 706 is also used to call the preset interface of the target application when a preset interface exists in the target application, and distribute the trigger event to the preset interface of the target application.

[0118] In one embodiment, the screen is a curved screen, and the preset area is set in a bending area of ​​the curved screen.

[0119] In one embodiment, the monitoring module is further configured to monitor a preset area in the screen when the target application does not have a preset interface.

[0120] In one embodiment, the response module 706 is also used by the target application to obtain the correspondence between the trigger event and the response action, and determine the response action from the correspondence between the trigger event and the response action based on the trigger event; the target application executes the response action to respond.

[0121] The division of the various modules in the response device of the above application is only for illustration. In other embodiments, the response device of the application can be divided into different modules as needed to complete all or part of the functions of the response device of the above application.

[0122] For the specific definition of the response device of the application, please refer to the definition of the response method of the application above, which will not be repeated here. Each module in the above-mentioned response device of the application can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0123] Figure 8 FIG. 1 is a schematic diagram of the internal structure of an electronic device in one embodiment. Figure 8 As shown, the electronic device includes a processor and a memory connected via a system bus. The processor is used to provide computing and control capabilities to support the operation of the entire electronic device. The memory may include a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The computer program can be executed by the processor to implement a response method of an application provided in each of the following embodiments. The internal memory provides a cached operating environment for the operating system computer program in the non-volatile storage medium. The electronic device can be any terminal device such as a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), a vehicle-mounted computer, a wearable device, etc.

[0124] The implementation of each module in the response device of the application provided in the embodiment of the present application can be in the form of a computer program. The computer program can be run on a terminal or a server. The program module constituted by the computer program can be stored in the memory of the electronic device. When the computer program is executed by the processor, the steps of the method described in the embodiment of the present application are implemented.

[0125] The embodiment of the present application also provides a computer-readable storage medium, one or more non-volatile computer-readable storage media containing computer-executable instructions, which, when executed by one or more processors, enable the processors to execute the steps of the application program response method.

[0126] A computer program product comprising instructions which, when executed on a computer, cause the computer to execute a responsive method of an application program.

[0127] Any reference to memory, storage, database or other medium used in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM), which is used as an external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0128] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A response method of an application, characterized in that: Applied to an electronic device, the electronic device includes a screen, the screen has a preset area, the preset area is an edge area in a first direction of the screen edge, or an edge area in a second direction of the screen edge, the first direction and the second direction are perpendicular to each other, the preset area refers to a pre-set area in the screen; the method includes: Acquire a trigger event occurring in the preset area of ​​the screen; Obtaining a conflict event preset for the preset area; the angle difference between the sliding direction of the conflict event preset for the preset area and the direction of the screen edge where the preset area is located is within a preset range; when the preset area is in the edge area of ​​the screen edge in a first direction, the conflict event preset for the preset area is an event of sliding in the second direction; and when the preset area is in the edge area of ​​the screen edge in the second direction, the conflict event preset for the preset area is an event of sliding in the first direction; When the trigger event is inconsistent with the preset conflict event, it means that the trigger event is generated by a trigger operation on a preset area in the screen, then the hierarchy of each application in the current window of the screen is obtained, and based on the hierarchy of each application in the current window of the screen, the target application is determined from each application, and the trigger event is distributed to the target application, wherein the target application responds to the trigger event.

2. The method according to claim 1, characterized in that The step of determining a target application from among the applications based on the hierarchy of the applications in the current window of the screen comprises: Based on the hierarchies of the respective applications in the current window of the screen, an application at the highest hierarchical level is determined from among the respective applications as a target application.

3. The method according to claim 1, characterized in that The method further comprises: When the trigger event is consistent with the preset conflict event, it means that the trigger event is generated by a trigger operation on a common area in the screen, and the preset area in the screen is monitored.

4. The method according to claim 1, characterized in that: The step of distributing the trigger event to the target application comprises: When the target application has a preset interface, the preset interface of the target application is called, and the trigger event is distributed to the preset interface of the target application.

5. The method according to claim 1, characterized in that: The screen is a curved screen, and the preset area is arranged in a bending area of ​​the curved screen.

6. The method according to claim 1, characterized in that The target application responds to the trigger event, including: The target application program acquires a correspondence relationship between a trigger event and a response action, and determines a response action from the correspondence relationship between the trigger event and the response action based on the trigger event; The target application executes the response action to respond.

7. A response device for an application, characterized in that: Applied to an electronic device, the electronic device includes a screen, the screen has a preset area, the preset area is an edge area in a first direction of the screen edge, or an edge area in a second direction of the screen edge, the first direction and the second direction are perpendicular to each other, the preset area refers to a pre-set area in the screen; the device includes: A trigger event acquisition module, used to acquire a trigger event occurring in the preset area of ​​the screen; a conflict event acquisition module, configured to acquire a conflict event preset for the preset area; the angle difference between the sliding direction of the conflict event preset for the preset area and the direction of the screen edge where the preset area is located is within a preset range; when the preset area is in an edge area in a first direction of the screen edge, the conflict event preset for the preset area is an event of sliding in the second direction; and when the preset area is in an edge area in a second direction of the screen edge, the conflict event preset for the preset area is an event of sliding in the first direction; A target application determination module, used for acquiring the hierarchy of each application in the current window of the screen, and determining the target application from each application based on the hierarchy of each application in the current window of the screen; A response module is used to distribute the trigger event to a target application when the trigger event is inconsistent with the preset conflict event, indicating that the trigger event is generated by a trigger operation on a preset area in the screen, wherein the target application responds to the trigger event.

8. An electronic device comprising a memory and a processor, wherein a computer program is stored in the memory, wherein: When the computer program is executed by the processor, the processor is caused to execute the steps of the application program response method according to any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Key touch response method and device, storage medium and mobile terminal

    CN107357458A

  • Touch operation response method and device, storage medium and terminal

    CN107422916A

  • Anti-misoperation method and terminal

    CN109891379A

  • Method, device and equipment for preventing mistaken touch of user on display interface

    CN110837317A