Response method and device for continuous operation

By detecting the user's continuous operation and ending the last response action based on the preset time period, the electronic device can quickly respond to the user's continuous operation, solving the problem of untimely response in the prior art and improving the user experience.

CN119545163APending Publication Date: 2025-02-28HUAWEI TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202311131288.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-08-29
Filing Date
2023-08-31
Publication Date
2025-02-28

AI Technical Summary

Technical Problem

When a user clicks the photo button in an electronic device at high frequency, it is difficult for the prior art to respond to the user's continuous operations in a timely and effective manner, resulting in a poor user experience.

Method used

By detecting continuous operations triggered by the user, if the execution time of the response action of the last operation is greater than or equal to the preset time, the electronic device ends the response action of the last operation and executes the response action of the current operation, thereby speeding up the response speed.

Benefits of technology

It realizes rapid response to users' continuous operations, ensures the smoothness of the response of electronic devices, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

The invention provides a response method and equipment for continuous operation. In the method, the electronic equipment detects a first operation triggered by a user at a first moment, and executes a response action corresponding to the first operation; detecting a second operation triggered by the user at a second moment, wherein the second moment is later than the first moment; if the execution duration of the response action corresponding to the first operation at the second moment is greater than or equal to the preset duration, ending the response action corresponding to the first operation, and executing the response action corresponding to the second operation; the preset duration is smaller than the single execution duration, and the single execution duration is the sustainable duration of the response action corresponding to the preset first operation. Through the scheme, the response speed of the electronic equipment to the continuous operation triggered by the user can be accelerated, the smoothness of the electronic equipment in responding to the continuous operation of the user is ensured, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims the priority of the Chinese patent application filed with the Intellectual Property Office of the People's Republic of China on August 29, 2023, with application number 2023111148088 and invention name "A response method and device for continuous operation", all contents of which are incorporated by reference in this application. Technical Field

[0003] The present application relates to the field of terminal technology, and in particular to a response method and device for continuous operation. Background Art

[0004] In the interaction between users and electronic devices, in order to ensure that each user input can get immediate and effective feedback, the electronic device can respond to the user input by displaying dynamic effects, playing sound effects or vibrations on the interface. For example, when a user uses the camera application in an electronic device, the user clicks the photo button, and the interface of the electronic device will display a flashing black dynamic effect that simulates the mechanical shutter effect. Specifically, a completely black layer is displayed on the preview image in the viewfinder of the display interface, and the transparency of the completely black layer is reduced over time until a clear preview image is displayed. The electronic device can also play the sound effect of the shutter opening and closing. While displaying the dynamic effect and playing the sound effect, the electronic device can complete the image processing corresponding to the user's click moment.

[0005] When the user's input operations are fast and continuous, such as the user frequently clicking the photo button in the camera application, if the time interval between the user triggering the click operation is shorter than the single playback duration of the animation or sound effect, how the electronic device responds to the user's continuous operations becomes an urgent problem to be solved. Summary of the invention

[0006] The present application provides a method and device for responding to continuous operations, which are used to improve the response speed of an electronic device to continuous operations triggered by a user and ensure the smoothness of the electronic device's response to the user's continuous operations.

[0007] In the first aspect, the present application provides a response method for continuous operations, which can be applied to electronic devices. The method includes: the electronic device detects a first operation triggered by a user at a first moment, and executes a response action corresponding to the first operation; detects a second operation triggered by the user at a second moment, and the second moment is later than the first moment; if the execution duration of the response action corresponding to the first operation at the second moment is greater than or equal to a preset duration, the response action corresponding to the first operation is terminated, and the response action corresponding to the second operation is executed; the preset duration is less than a single execution duration, and the single execution duration is the preset sustainable duration of the response action corresponding to the first operation.

[0008] In the above method, the preset duration can be understood as the preset minimum duration for the electronic device to perform a response action. When the electronic device receives an operation triggered by the user, if the execution duration of the response action corresponding to the previous operation triggered by the user is greater than or equal to the preset duration, the electronic device can interrupt the response action corresponding to the previous operation and execute the response action corresponding to the current operation, thereby speeding up the response speed of the electronic device to the continuous operations triggered by the user, ensuring the smoothness of the electronic device's response to the user's continuous operations, and improving the user experience.

[0009] In one possible design, the method is applied to a photographing process, and the operation corresponds to a user's photographing operation, such as pressing a virtual photographing button.

[0010] In a possible design, the response action may be playing an animation, playing a sound effect, or both.

[0011] In a possible design, the method also includes: if the execution time of the response action corresponding to the first operation at the second moment is less than the preset time, continuously executing the response action corresponding to the first operation until the execution time of the response action corresponding to the first operation is greater than or equal to the preset time; after the execution time of the response action corresponding to the first operation is greater than or equal to the preset time, ending the response action corresponding to the first operation, and executing the response action corresponding to the second operation.

[0012] Through this design, when the execution time of the response action corresponding to the first operation is less than the preset time at the second moment, the electronic device needs to continue to execute the response action corresponding to the first operation until the execution time of the response action corresponding to the first operation is greater than or equal to the preset time, and then end the response action corresponding to the first operation, and execute the response action corresponding to the second operation, thereby ensuring the effect of the response action executed by the electronic device. For example, when the response action includes playing motion effects and sound effects, the electronic device can continue to play the motion effects and sound effects corresponding to the previous operation within the preset time, thereby preventing the user from having an unusual experience due to too fast switching of the motion effects and sound effects, thereby ensuring the user's perception and improving the user experience.

[0013] In one possible design, the method also includes: when the execution time of the response action corresponding to the first operation is less than the preset time, detecting multiple operations triggered by the user; determining a target operation from the multiple operations, and using the target operation as the second operation; wherein the target operation is any operation among the multiple operations; or the target operation is the operation with the earliest trigger time among the multiple operations; or the target operation is the operation with the latest trigger time among the multiple operations.

[0014] Through this design, if the electronic device is executing a response action corresponding to a first operation, and the execution time of the response action corresponding to the first operation is less than the preset time, the electronic device detects multiple operations triggered by the user. The electronic device can determine the target operation from the multiple operations, take the target operation as the second operation, and respond to the second operation after completing the response action corresponding to the first operation, thereby solving the problem that the electronic device cannot respond when the user triggers the operation too quickly.

[0015] In one possible design, the response action corresponding to the first operation includes data processing; before ending the response action corresponding to the first operation and executing the response action corresponding to the second operation, the method also includes: determining that the data processing in the response action corresponding to the first operation has been completed.

[0016] Through this design, when the response action corresponding to the first operation includes data processing, the electronic device can also determine whether the data processing in the response action corresponding to the first operation is completed after the execution time of the response action corresponding to the first operation is greater than or equal to the preset time. If the data processing is not completed, the electronic device can continue to execute the response action corresponding to the first operation until the data processing is completed, thereby ensuring that the electronic device can completely execute the data processing in the response action corresponding to the first operation, so that the electronic device can correctly respond to the operation triggered by the user.

[0017] In one possible design, the first operation is a photo-taking operation triggered by the user in a camera application of the electronic device; the response action corresponding to the first operation includes at least one of the following: playing animations; playing sound effects; obtaining image information collected by the camera at the first moment, and performing image processing based on the image information.

[0018] Through this design, the response method for continuous operations provided in this application can be applied to camera applications. Through the response method for continuous operations provided in this application, the electronic device can respond to the user's continuous triggered photo operations in a timely manner while ensuring the response effect, thereby ensuring the response smoothness after the user continuously triggers the photo operation and improving the user experience.

[0019] In a second aspect, the present application provides a response method for continuous operations, which can be applied to electronic devices. The method includes: the electronic device detects a first operation triggered by a user at a first moment, executes a response action corresponding to the first operation, and the response action corresponding to the first operation includes data processing; detects a second operation triggered by the user at a second moment, and the second moment is later than the first moment; if the data processing in the response action corresponding to the first operation is completed at the second moment, the response action corresponding to the first operation is terminated, and the response action corresponding to the second operation is executed.

[0020] In the above method, when the response action corresponding to the first operation includes data processing, when the electronic device detects the second operation triggered by the user at the second moment, it can determine whether the data processing in the response action corresponding to the first operation is completed. If the data processing is completed, the electronic device can end the response action corresponding to the first operation and execute the response action corresponding to the second operation, so as to respond to the second operation in time and improve the response speed of the electronic device to continuous operations.

[0021] In a possible design, the method also includes: if the data processing in the response action corresponding to the first operation is not completed at the second moment, continuously executing the response action corresponding to the first operation until the data processing is completed; after the data processing is completed, ending the response action corresponding to the first operation, and executing the response action corresponding to the second operation.

[0022] Through this design, if the electronic device detects that the second operation is triggered by the user at a second moment and the data processing in the response action corresponding to the first operation is not completed, the electronic device can continue to execute the response action corresponding to the first operation until the data processing is completed, thereby ensuring that the electronic device can completely execute the data processing in the response action corresponding to the first operation, so that the electronic device can correctly respond to the operation triggered by the user.

[0023] In a third aspect, the present application provides an electronic device, the electronic device comprising multiple functional modules; the multiple functional modules interact with each other to implement the method performed by the electronic device in any of the above aspects and its embodiments. The multiple functional modules can be implemented based on software, hardware, or a combination of software and hardware, and the multiple functional modules can be arbitrarily combined or divided based on specific implementations.

[0024] In a fourth aspect, the present application provides an electronic device comprising at least one processor and at least one memory, wherein the at least one memory stores computer program instructions, and when the electronic device is running, the at least one processor executes the method executed by the electronic device in any of the above aspects and its various embodiments.

[0025] In a fifth aspect, the present application also provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the method executed by the electronic device in any of the above aspects and its various embodiments.

[0026] In a sixth aspect, the present application further provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a computer, the computer executes the method executed by the electronic device in any of the above aspects and its various embodiments.

[0027] In a seventh aspect, the present application also provides a chip, which is used to read a computer program stored in a memory and execute the method executed by the electronic device in any of the above aspects and its various embodiments.

[0028] In an eighth aspect, the present application further provides a chip system, which includes a processor for supporting a computer device to implement a method executed by an electronic device in any of the above aspects and in each of its embodiments. In a possible design, the chip system also includes a memory, which is used to store programs and data necessary for the computer device. The chip system can be composed of a chip, or it can include a chip and other discrete devices. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 A schematic diagram of a camera interface of an electronic device;

[0030] Figure 2 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0031] Figure 3 A software structure block diagram of an electronic device provided in an embodiment of the present application;

[0032] Figure 4 A flowchart of a response method for continuous operation provided in an embodiment of the present application;

[0033] Figure 5 A schematic diagram of a photographing process of a camera application provided in an embodiment of the present application;

[0034] Figure 6 A schematic diagram of a transparency change curve of an overlay layer provided in an embodiment of the present application;

[0035] Figure 7 A schematic diagram of executing a response action provided in an embodiment of the present application;

[0036] Figure 8 A schematic diagram of executing a response action provided in an embodiment of the present application;

[0037] Fig. 9 A flowchart of a response method for continuous operation provided in an embodiment of the present application;

[0038] Fig.10 A flowchart of a response method for continuous operation provided in an embodiment of the present application. DETAILED DESCRIPTION

[0039] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the embodiments of the present application will be further described in detail below in conjunction with the accompanying drawings. Among them, in the description of the embodiments of the present application, the terms "first" and "second" are used only for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features.

[0040] It should be understood that in the embodiments of the present application, "at least one" refers to one or more, and "plurality" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can represent: a, b, c, a and b, a and c, b and c, or a, b and c, where a, b, c can be single or multiple.

[0041] In the interaction between users and electronic devices, in order to ensure that each user input can get immediate and effective feedback, the electronic device can respond to the user input by displaying animations on the interface, playing sound effects, or vibrating. For example, Figure 1 A schematic diagram of a camera interface of an electronic device. Figure 1 When a user uses the camera application in an electronic device, the user clicks the photo button, and the interface of the electronic device will display a flashing black animation that simulates the effect of a mechanical shutter. Specifically, a completely black layer is displayed on the preview image in the viewfinder of the display interface, and the transparency of the completely black layer decreases over time until a clear preview image is displayed. The electronic device can also play the sound effect of the shutter opening and closing. When the user clicks the photo button of the electronic device, the electronic device can obtain the image information collected by the camera, and while displaying the animation and playing the sound effect, the electronic device can complete the image processing corresponding to the user's click moment. After completing the image processing, the electronic device can display a thumbnail in the lower left corner of the photo interface.

[0042] When the user's input operations are fast and continuous, such as the user frequently clicking the photo button in the camera application, if the time interval between the user triggering the click operation is shorter than the single playback duration of the animation or sound effect, how the electronic device can provide feedback to the user's continuous operations becomes an urgent problem to be solved.

[0043] In some embodiments, the electronic device cannot respond to the same operation triggered by the user while displaying an animation and / or playing a sound effect in response to a user operation. For example, taking the camera application as an example, after the user clicks the photo button, the electronic device displays a flashing black animation and plays a shutter sound effect. During the process of the electronic device displaying the flashing black animation and playing the shutter sound effect, if the user clicks the photo button again, the electronic device will not respond. After the electronic device finishes displaying the flashing black animation and ends playing the shutter sound effect, when the user clicks the photo button again, the electronic device can respond. In addition, if the electronic device has not completed the image processing corresponding to the user's click moment after the electronic device finishes displaying the flashing black animation and ends playing the shutter sound effect, the electronic device will not respond when the user clicks the photo button again. It can be seen that in this embodiment, the electronic device cannot coordinate the multiple processes of user operation, animation and sound effect playback, and image processing, which in turn causes problems such as untimely feedback on user operations and an unsmooth user experience.

[0044] Based on the above problems, the embodiment of the present application provides a response method for continuous operations, which can be executed by an electronic device. In this method, the electronic device detects a first operation triggered by a user at a first moment, and executes a response action corresponding to the first operation; the electronic device detects a second operation triggered by a user at a second moment, and when it is determined that the execution time of the response action corresponding to the first operation at the second moment is greater than or equal to the preset time, the response action corresponding to the first operation is terminated, and the response action corresponding to the second operation is executed. Among them, the preset time is less than the single execution time of the response action corresponding to the user-triggered operation. Through this method, the preset time in the embodiment of the present application can be understood as the preset minimum time for the electronic device to execute the response action. When the electronic device receives the operation triggered by the user, if the execution time of the response action corresponding to the previous operation triggered by the user is greater than or equal to the preset time, the electronic device can interrupt the response action corresponding to the previous operation and execute the response action corresponding to the current operation, thereby speeding up the response speed of the electronic device to the continuous operation triggered by the user, ensuring the fluency of the electronic device in responding to the continuous operation of the user, and improving the user experience.

[0045] The response method for continuous operations provided in the embodiments of the present application can be applied to various application scenarios that require feedback on user operations, such as a camera application in an electronic device that needs to play animations / sound effects in response to a user clicking a photo button; a game application that needs to play animations / sound effects in response to a user clicking a control, etc. The embodiments of the present application do not limit the specific application scenarios.

[0046] The following describes electronic devices and embodiments for using such electronic devices. The electronic devices of the embodiments of the present application may be tablet computers, mobile phones, vehicle-mounted devices, augmented reality (AR) / virtual reality (VR) devices, notebook computers, ultra-mobile personal computers (UMPCs), netbooks, personal digital assistants (PDAs), wearable devices, etc. The embodiments of the present application do not impose any restrictions on the specific types of electronic devices.

[0047] In some embodiments of the present application, the electronic device may also be a portable terminal device that also includes other functions such as a personal digital assistant and / or a music player. Exemplary embodiments of the portable terminal device include but are not limited to: Or other portable terminal devices with operating systems.

[0048] Figure 2 FIG. 1 is a schematic diagram of the structure of an electronic device 100 provided in an embodiment of the present application. Figure 2 As shown, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.

[0049] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). Among them, different processing units may be independent devices or integrated into one or more processors. Among them, the controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction opcode and the timing signal to complete the control of fetching and executing instructions. A memory may also be set in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a high-speed cache memory. The memory may store instructions or data that the processor 110 has just used or circulated. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated access is avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved.

[0050] The USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and peripheral devices. The charging management module 140 is used to receive charging input from the charger. The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and provides power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160.

[0051] The wireless communication function of the electronic device 100 can be implemented by antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modulation and demodulation processor and baseband processor. Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antenna. For example, antenna 1 can be reused as a diversity antenna of a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0052] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.

[0053] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0054] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).

[0055] The display screen 194 is used to display the display interface of the application, such as displaying the display page of the application installed on the electronic device 100. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.

[0056] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.

[0057] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system, and software code of at least one application, etc. The data storage area can store data generated during the use of the electronic device 100 (such as captured images, recorded videos, etc.). In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.

[0058] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as pictures and videos are stored in the external memory card.

[0059] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.

[0060] Among them, the sensor module 180 may include a pressure sensor 180A, an acceleration sensor 180B, a touch sensor 180C, etc.

[0061] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be disposed on the display screen 194 .

[0062] The touch sensor 180C is also called a "touch panel". The touch sensor 180C can be set on the display screen 194, and the touch sensor 180C and the display screen 194 form a touch screen, also called a "touch screen". The touch sensor 180C is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180C can also be set on the surface of the electronic device 100, which is different from the position of the display screen 194.

[0063] The button 190 includes a power button, a volume button, etc. The button 190 can be a mechanical button. It can also be a touch button. The electronic device 100 can receive the button input and generate a key signal input related to the user settings and function control of the electronic device 100. The motor 191 can generate a vibration prompt. The motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization. The indicator 192 can be an indicator light, which can be used to indicate the charging status, power changes, and can also be used to indicate messages, missed calls, notifications, etc. The SIM card interface 195 is used to connect the SIM card. The SIM card can be inserted into the SIM card interface 195, or pulled out from the SIM card interface 195 to achieve contact and separation with the electronic device 100.

[0064] Understandably, Figure 2The components shown do not constitute a specific limitation on the electronic device 100. The electronic device may also include more or fewer components than shown, or combine some components, or separate some components, or arrange the components differently. Figure 2 The combination / connection relationship between the components can also be adjusted and modified.

[0065] Figure 3 The software structure block diagram of an electronic device provided in an embodiment of the present application is shown in FIG. Figure 3 As shown, the software structure of the electronic device can be a layered architecture, for example, the software can be divided into several layers, each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the operating system is divided into four layers, from top to bottom, namely, the application layer, the application framework layer (framework, FWK), the runtime (runtime) and the system library, and the kernel layer.

[0066] The application layer can include a series of application packages. Figure 3 As shown, the application layer may include camera, settings, skin module, user interface (UI), third-party applications, etc. Among them, the third-party applications may include gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc. In the embodiment of the present application, the application layer may include a target installation package of a target application that the electronic device requests to download from a server, and the function files and layout files in the target installation package are adapted to the electronic device.

[0067] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer may include some predefined functions. Figure 3 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, and a notification manager.

[0068] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc. The content provider is used to store and obtain data and make the data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.

[0069] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.

[0070] The phone manager is used to provide communication functions for electronic devices, such as the management of call status (including answering, hanging up, etc.).

[0071] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

[0072] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.

[0073] The runtime includes the core library and the virtual machine. The runtime is responsible for the scheduling and management of the operating system.

[0074] The core library consists of two parts: one is the function that the Java language needs to call, and the other is the core library of the operating system. The application layer and the application framework layer run in the virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform object life cycle management, stack management, thread management, security and exception management, and garbage collection.

[0075] The system library may include multiple functional modules, such as surface manager, media libraries, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), image processing library, etc.

[0076] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.

[0077] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

[0078] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0079] A 2D graphics engine is a drawing engine for 2D drawings.

[0080] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.

[0081] The hardware layer can include various types of sensors, such as accelerometers, gyroscopes, touch sensors, etc.

[0082] It should be noted that Figure 2 and Figure 3 The structure shown is only an example of the electronic device provided by the embodiment of the present application, and cannot be used to limit the electronic device provided by the embodiment of the present application. In specific implementation, the electronic device may have more Figure 2 or Figure 3 More or fewer devices or modules may be included in the structures shown.

[0083] The following is an introduction to the response method for continuous operation provided in an embodiment of the present application.

[0084] In an embodiment of the present application, after the user triggers an operation, the electronic device may execute a response action corresponding to the user operation, such as a response action may include at least one of playing motion effects, playing sound effects, and data processing. To ensure the display effect of motion effects and sound effects, when the electronic device detects continuous operations triggered by the user, it may execute a response action corresponding to an operation for a preset duration before executing a response action corresponding to the next operation. To ensure that the electronic device can complete data processing, when the electronic device detects continuous operations triggered by the user, it may execute a response action corresponding to the next operation after determining that the data processing corresponding to an operation has been completed. The following introduces the response method for continuous operations provided in the embodiment of the present application for the above-mentioned different situations:

[0085] In some embodiments, the electronic device may determine whether to end the response action according to the execution duration of the response action corresponding to the user operation, and execute the response action corresponding to the next operation.

[0086] Figure 4 A flowchart of a response method for continuous operation provided in an embodiment of the present application, the method can be executed by an electronic device, and the electronic device can have Figure 2 and / or Figure 3 The structure shown. Figure 4 , the method comprises the following steps:

[0087] S401: The electronic device detects a first operation triggered by a user at a first moment, and executes a response action corresponding to the first operation.

[0088] In an embodiment of the present application, the first operation triggered by the user can be any operation such as clicking, sliding, double-clicking, etc. triggered by the user on the display screen of the electronic device. The first operation can also be an operation in which the user inputs a voice command. The embodiment of the present application does not limit the type of the first operation.

[0089] After detecting the first operation triggered by the user, the electronic device may execute a response action corresponding to the first operation, and the response action corresponding to the first operation may be at least one of an animation effect, a sound effect, data processing, etc. that lasts for a period of time. Optionally, in the embodiment of the present application, after the user triggers an operation once, the sustainable duration for the electronic device to play the animation effect and the sound effect may be a single execution duration, and the single execution duration may be a preset value.

[0090] For example, taking the camera application in an electronic device as an example, Figure 5 A schematic diagram of a camera application photographing process provided in an embodiment of the present application. Figure 5 , the first operation triggered by the user may be the user clicking a camera button. After the electronic device detects the first operation, it may obtain image information collected by the camera when the user triggers the first operation. It should be noted that the user's click operation may be composed of the user's finger touching the screen to the user's finger being lifted up, and the first moment may be the moment when the user's finger is lifted up. The electronic device may obtain image information collected by the camera at the first moment, and the electronic device may perform image processing on the obtained image information to generate an image taken by the user.

[0091] refer to Figure 5 After the electronic device detects the first operation, the electronic device may also play a flash-black animation effect, which may be a display effect after a layer is superimposed on the preview image in the viewfinder of the camera interface. The layer is initially displayed as completely black, and the opacity of the layer decreases over time until the layer changes to a fully transparent layer. For example, Figure 6 A schematic diagram of an opacity variation curve of an overlay layer provided in an embodiment of the present application, with reference to Figure 6 , the opacity change curve can be a spring curve, for example, a curve with a stiffness of 300, a damping of 35, and an initial speed of 0. When the electronic device displays dynamic effects according to the opacity curve, the electronic device can keep displaying the all-black layer for a period of time (such as 50ms), and then gradually reduce the opacity of the superimposed layer. At this time, the display effect in the viewfinder can be a preview image that gradually displays clearer and clearer. The preview image can be an image captured in real time by the camera of the electronic device. Among them, the time from the electronic device starting to display the superimposed layer to the opacity of the superimposed layer changing to 0 can be a single execution time.

[0092] In addition, refer to Figure 5 After the electronic device detects the first operation, the electronic device may also play a shutter sound effect, and the playing duration of the shutter sound effect may also be a single execution duration.

[0093] It can be understood that when the electronic device is executing the response action of the first operation, if the electronic device does not detect other operations that conflict with the first operation, the electronic device will execute the response action of the first operation until it ends, such as when the single execution time is reached, the response action of the first operation will end.

[0094] S402: The electronic device detects a second operation triggered by the user at a second moment.

[0095] Among them, the second moment is later than the first moment.

[0096] Optionally, the second operation triggered by the user may be the same operation as the first operation, or the second operation may be an operation having the same effect as the first operation.

[0097] For example, when the first operation is the operation of the user clicking the photo button in the photo interface of the camera application, the second operation can be the operation of the user clicking the photo button in the photo interface of the camera application, or the second operation can be any one of the operations of the user using physical buttons of the electronic device, voice input of photo commands, etc.

[0098] S403: The electronic device determines whether the execution time of the response action corresponding to the first operation at the second moment is greater than or equal to the preset time. If so, proceed to S405; otherwise, proceed to S404.

[0099] Optionally, the preset duration in the embodiment of the present application can be understood as the minimum duration for the electronic device to perform a response action. The preset duration can be a value that is less than a single execution duration. When the response action includes playing motion effects or sound effects, the preset duration can be a duration that can ensure the playback effect. For example, when the first operation and the second operation are photo-taking operations triggered by the user in the camera application, the preset duration can be 180ms.

[0100] S404: The electronic device continues to execute the response action corresponding to the first operation until the execution time of the response action corresponding to the first operation is greater than or equal to the preset time.

[0101] It is understandable that when the execution time of the response action corresponding to the first operation at the second moment is less than the preset time, if the electronic device ends the response action corresponding to the first operation at this time, it may give the user an abnormal experience because the duration of the response action is too short. For example, in the camera application described above, after the user clicks the photo button, the electronic device will display a flashing black effect. If the duration of the effect is too short, the electronic device will display the flashing black effect multiple times in a short period of time, which gives the user a poor viewing experience.

[0102] In an optional implementation, when the electronic device determines at the second moment that the execution time of the response action corresponding to the first operation is less than the preset time, the electronic device may continue to execute the response action corresponding to the first operation until the execution time of the response action corresponding to the first operation is greater than or equal to the preset time, and then the electronic device may respond to the user's second operation. That is to say, when the execution time of the response action corresponding to the first operation is less than the preset time and the user triggers the second operation, there will be a delay in the electronic device executing the response action of the second operation.

[0103] For example, if the user continuously operates in the camera application, Figure 7 A schematic diagram of executing a response action provided in an embodiment of the present application. Figure 7 , the first operation and the second operation can be a click operation triggered by the user on the camera button, and the click operation can include the process of the user triggering the screen and the user raising his hand. The electronic device can obtain the image information collected by the camera and start image processing when the user raises his hand. After detecting the first operation triggered by the user, the electronic device can execute a response action corresponding to the first operation, such as Figure 7 The electronic device detects the second operation triggered by the user, and the execution time of the response action corresponding to the first operation is less than the preset time, the electronic device will continue to execute the response action corresponding to the first operation until the execution time of the response action corresponding to the first operation is greater than or equal to the preset time. Figure 7 In the embodiment, when the execution time of the response action corresponding to the first operation executed by the electronic device is equal to the preset time, the electronic device ends the execution of the response action corresponding to the first operation, and executes the response action corresponding to the second operation. At this time, there will be a delay time for the response action corresponding to the second operation, but this method can ensure the effect of the electronic device executing the response action. Similarly, if the execution time of the response action corresponding to the second operation executed by the electronic device is less than the preset time, the electronic device detects a third operation triggered by the user, and the third operation can be a click operation triggered by the user on the camera button. The electronic device will continue to execute the response action corresponding to the second operation until the execution time of the response action corresponding to the second operation is greater than or equal to the preset time, and then end the response action corresponding to the second operation and start executing the response action corresponding to the third operation.

[0104] In addition, in some scenarios, if the execution time of the response action corresponding to the first operation of the electronic device is less than the preset time, and the electronic device detects multiple operations triggered by the user, and the time difference between the triggering time of each operation and the triggering time of the first operation is less than the preset time, the electronic device can determine an operation from the multiple operations as the second operation, and when the execution time of the response action corresponding to the first operation is greater than or equal to the preset time, execute the response action corresponding to the second operation, and ignore the operations other than the second operation in the multiple operations. Optionally, when determining the second operation from the multiple operations, the electronic device can use the operation with the earliest triggering time among the multiple operations as the second operation, or use the operation with the latest triggering time among the multiple operations as the second operation, or use any operation among the multiple operations as the second operation. The embodiment of the present application does not limit the method of determining the second operation.

[0105] S405: The electronic device ends the response action corresponding to the first operation, and executes the response action corresponding to the second operation.

[0106] In an optional embodiment, after detecting a second operation triggered by a user at a second moment, the electronic device can determine whether the execution duration of the response action corresponding to the first operation at the second moment is greater than or equal to a preset duration; if the execution duration of the response action corresponding to the first operation is greater than or equal to the preset duration, the electronic device can end the response action corresponding to the first operation and execute the response action corresponding to the second operation.

[0107] For example, if the user continuously operates in the camera application, Figure 8 A schematic diagram of executing a response action provided in an embodiment of the present application. Figure 8 , the first operation and the second operation can be a click operation triggered by the user on the camera button, and the click operation can include the process of the user triggering the screen and the user raising his hand. The electronic device can obtain the image information collected by the camera and start image processing when the user raises his hand. After detecting the first operation triggered by the user, the electronic device can execute a response action corresponding to the first operation, such as Figure 8 It is shown that the response action corresponding to the first operation is playing animation and sound effects. The electronic device detects a second operation triggered by the user. At this time, the execution time of the response action corresponding to the first operation is greater than or equal to the preset time. The electronic device can end the response action corresponding to the first operation and execute the response action corresponding to the second operation. Similarly, if the execution time of the response action corresponding to the second operation executed by the electronic device is greater than or equal to the preset time, the electronic device detects a third operation triggered by the user. The third operation can be a click operation triggered by the user on the camera button. The electronic device can end the response action corresponding to the second operation and execute the response action corresponding to the third operation.

[0108] In some embodiments, the electronic device can determine whether to end the response action according to whether data processing in the response action corresponding to the user operation is completed, and execute the response action corresponding to the next operation.

[0109] Fig. 9 A flowchart of a response method for continuous operation provided in an embodiment of the present application, the method can be executed by an electronic device, and the electronic device can have Figure 2 and / or Figure 3 The structure shown. Fig. 9 , the method comprises the following steps:

[0110] S901: The electronic device detects a first operation triggered by a user at a first moment, and executes a response action corresponding to the first operation.

[0111] S902: The electronic device detects a second operation triggered by the user at a second moment.

[0112] Among them, the second moment is later than the first moment.

[0113] It should be noted that the first operation in S901, the response action corresponding to the first operation, and the second operation in S902 can be found in Figure 4 The repeated parts of S401 - S402 in the illustrated embodiment will not be described in detail.

[0114] S903: The electronic device determines whether the data processing in the response action corresponding to the first operation at the second moment is completed. If yes, proceed to S905; otherwise, proceed to S904.

[0115] S904: The electronic device continues to execute the response action corresponding to the first operation until data processing in the response action corresponding to the first operation is completed.

[0116] S905: The electronic device ends the response action corresponding to the first operation, and executes the response action corresponding to the second operation.

[0117] In some embodiments of the present application, when the electronic device responds to the first operation triggered by the user and the response action performed includes data processing, for example, after the user clicks the photo button in the camera application, the electronic device needs to perform image processing. After the electronic device detects the second operation, when it determines whether to end the response action corresponding to the first operation, the electronic device can determine whether the data processing in the response action corresponding to the first operation at the second moment is completed. If the data processing is completed, the electronic device can end the execution of the response action corresponding to the first operation and execute the response action corresponding to the second operation; if the data processing is not completed, the electronic device can continue to execute the response action corresponding to the first operation until the data processing is completed, and then end the response action corresponding to the first operation, and execute the response action corresponding to the second operation.

[0118] For example, taking the continuous operation of the user in the camera application as an example, in some unconventional photo shooting scenes, such as the electronic device is under high load, the current photo shooting environment is extremely dark, and the flash function of the camera application is turned on, the electronic device performs image processing on the image information collected by the camera. The time to perform image processing will increase compared to conventional photo shooting scenes, that is, the image output time of the electronic device will increase. At this time, the electronic device can judge whether to end the currently executed response action based on whether the image output is completed. Specifically, the electronic device detects a first operation triggered by the user, and the first operation can be a click operation triggered by the user on the photo button. The electronic device performs a response action corresponding to the first operation, and the response action includes playing dynamic effects, playing sound effects, and image processing. Among them, the click operation can include the process of the user triggering the screen and the user raising his hand. The electronic device can obtain the image information collected by the camera and start image processing at the moment when the user raises his hand. The electronic device detects a second operation triggered by the user, and the second operation can be a click operation triggered by the user on the photo button. The electronic device determines whether the image processing corresponding to the first operation is completed. If the image processing is not completed, the electronic device continues to execute the response action corresponding to the first operation until the image processing is completed. That is to say, the electronic device continues to play the animation and sound effects, and continues to perform image processing until the image processing is completed. The electronic device then ends executing the response action corresponding to the first operation and starts executing the response action corresponding to the second operation.

[0119] In some embodiments, the electronic device can determine whether to end the response action based on whether the execution time of the response action corresponding to the user operation is greater than a preset time and whether data processing in the response action is completed, and execute the response action corresponding to the next operation.

[0120] Fig.10 A flowchart of a response method for continuous operation provided in an embodiment of the present application, the method can be executed by an electronic device, and the electronic device can have Figure 2 and / or Figure 3 The structure shown. Fig.10 , the method comprises the following steps:

[0121] S1001: The electronic device detects a first operation triggered by a user at a first moment, and executes a response action corresponding to the first operation.

[0122] S1002: The electronic device detects a second operation triggered by the user at a second moment.

[0123] S1003: The electronic device determines whether the execution time of the response action corresponding to the first operation at the second moment is greater than or equal to the preset time. If so, proceed to S1005; otherwise, proceed to S1004.

[0124] S1004: The electronic device continues to execute the response action corresponding to the first operation until the execution time of the response action corresponding to the first operation is greater than or equal to the preset time.

[0125] S1005: The electronic device determines whether the data processing in the response action corresponding to the first operation is completed. If so, proceed to S1007; otherwise, proceed to S1006.

[0126] It should be noted that if the electronic device determines that the execution time of the response action corresponding to the first operation at the second moment is greater than or equal to the preset time, that is, the electronic device enters S1005 after executing S1003, then the electronic device in S1005 can determine whether the data processing in the response action corresponding to the first operation at the second moment is completed. If the electronic device determines that the execution time of the response action corresponding to the first operation at the second moment is less than the preset time, that is, the electronic device needs to execute S1004 after executing S1003, then the electronic device in S1005 can determine whether the data processing in the response action corresponding to the first operation is completed after the electronic device completes S1004.

[0127] S1006: The electronic device continues to execute the response action corresponding to the first operation until data processing in the response action corresponding to the first operation is completed.

[0128] S1007: The electronic device ends the response action corresponding to the first operation, and executes the response action corresponding to the second operation.

[0129] In some embodiments of the present application, when the electronic device responds to the first operation triggered by the user and the response action executed includes playing dynamic effects or sound effects and data processing, for example, after the user clicks the photo button in the camera application, the electronic device needs to perform image processing and needs to play dynamic effects and sound effects that simulate the shutter effect of the photo. After the electronic device detects the second operation, when it determines whether to end the response action corresponding to the first operation, when the electronic device determines that the execution time of the response action corresponding to the first operation is greater than or equal to the preset time, the electronic device can also determine whether the data processing in the response action corresponding to the first operation is completed. If the data processing is completed, the electronic device can end the execution of the response action corresponding to the first operation and execute the response action corresponding to the second operation; if the data processing is not completed, the electronic device can continue to execute the response action corresponding to the first operation until the data processing is completed, and then end the response action corresponding to the first operation, and execute the response action corresponding to the second operation.

[0130] For example, taking the continuous operation of the user in the camera application as an example, the electronic device detects the first operation triggered by the user, and the first operation can be a click operation triggered by the user on the photo button. The electronic device executes the response action corresponding to the first operation, and the response action includes playing dynamic effects, playing sound effects, and image processing. Among them, the click operation can include the process of the user triggering the screen and the user raising his hand. The electronic device can obtain the image information collected by the camera at the moment when the user raises his hand and start image processing. The electronic device detects the second operation triggered by the user, and the second operation can be a click operation triggered by the user on the photo button. The electronic device determines whether the execution time of the response action corresponding to the first operation is greater than or equal to the preset time. When the execution time of the response action corresponding to the first operation is greater than or equal to the preset time, the electronic device determines whether the image processing corresponding to the first operation is completed. If the image processing is not completed, the electronic device continues to execute the response action corresponding to the first operation until the image processing is completed, that is, the electronic device continues to play dynamic effects, play sound effects, and continue to process the image until the image processing is completed. The electronic device ends the execution of the response action corresponding to the first operation and starts to execute the response action corresponding to the second operation.

[0131] It should be noted that the embodiments of the present application Fig.10 In the illustrated embodiment, the execution order between S1003-S1004 and S1005-S1006 is not limited, that is, in a specific implementation, S1003-S1004 may be executed first and then S1005-S1006, that is, first judge according to the condition that the execution time of the response action corresponding to the first operation is greater than the preset time, and then judge according to the condition that the data processing in the response action corresponding to the first operation is completed; S1005-S1006 may also be executed first and then S1003-S1004, that is, first judge according to the condition that the data processing in the response action corresponding to the first operation is completed, and then judge according to the condition that the execution time of the response action corresponding to the first operation is greater than the preset time. It can be understood that the execution order of the above steps will not affect the essence of the solution of the embodiment of the present application. In addition, Fig.10 The embodiment shown in the specific embodiment can be seen in Figure 4 and Fig. 9 The description in the illustrated embodiment will not be repeated any more.

[0132] It should be understood that the above embodiments may be referenced or combined with each other.

[0133] Based on the above embodiments, the present application further provides an electronic device, the electronic device comprising a plurality of functional modules; the plurality of functional modules interact with each other to implement the functions performed by the electronic device in each method described in the embodiments of the present application. Figure 4 , Fig. 9 or Fig.10 Functions of the electronic device in the illustrated embodiment. The multiple functional modules can be implemented based on software, hardware, or a combination of software and hardware, and the multiple functional modules can be arbitrarily combined or divided based on specific implementations.

[0134] Based on the above embodiments, the present application further provides an electronic device, which includes at least one processor and at least one memory, wherein the at least one memory stores computer program instructions, and when the electronic device is running, the at least one processor executes the functions executed by the electronic device in each method described in the embodiments of the present application. Figure 4 , Fig. 9 or Fig.10 Functionality of the electronic device in the illustrated embodiment.

[0135] Based on the above embodiments, the present application further provides a computer program product comprising instructions, and when the computer program product is run on a computer, the computer is enabled to execute the methods described in the embodiments of the present application.

[0136] Based on the above embodiments, the present application further provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a computer, the computer executes the methods described in the embodiments of the present application.

[0137] Based on the above embodiments, the present application further provides a chip, which is used to read a computer program stored in a memory to implement the methods described in the embodiments of the present application.

[0138] Based on the above embodiments, the present application provides a chip system, which includes a processor for supporting a computer device to implement the methods described in the embodiments of the present application. In one possible design, the chip system also includes a memory, which is used to store the necessary programs and data for the computer device. The chip system can be composed of a chip, or it can include a chip and other discrete devices.

[0139] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0140] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0141] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0142] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0143] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the scope of protection of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A response method for continuous operation, characterized in that: Applied to electronic equipment, the method comprises: Detecting a first operation triggered by a user at a first moment, and executing a response action corresponding to the first operation; detecting a second operation triggered by the user at a second time, where the second time is later than the first time; If the execution duration of the response action corresponding to the first operation at the second moment is greater than or equal to the preset duration, the response action corresponding to the first operation is terminated and the response action corresponding to the second operation is executed; the preset duration is less than the single execution duration, and the single execution duration is the preset sustainable duration of the response action corresponding to the first operation.

2. The method according to claim 1, characterized in that The method further comprises: If the execution time of the response action corresponding to the first operation at the second moment is less than the preset time, continue to execute the response action corresponding to the first operation until the execution time of the response action corresponding to the first operation is greater than or equal to the preset time; After the execution time of the response action corresponding to the first operation is greater than or equal to the preset time, the response action corresponding to the first operation is terminated, and the response action corresponding to the second operation is executed.

3. The method according to claim 2, characterized in that The method further comprises: When the execution time of the response action corresponding to the first operation is less than the preset time, detecting multiple operations triggered by the user; Determine a target operation from the multiple operations, and use the target operation as the second operation; The target operation is any one of the multiple operations; or the target operation is the operation with the earliest triggering time among the multiple operations; or the target operation is the operation with the latest triggering time among the multiple operations.

4. The method according to any one of claims 1 to 3, characterized in that: The response action corresponding to the first operation includes data processing; before ending the response action corresponding to the first operation and executing the response action corresponding to the second operation, the method further includes: It is determined that data processing in a response action corresponding to the first operation has been completed.

5. The method according to any one of claims 1 to 3, characterized in that: The first operation is a photo-taking operation triggered by the user in a camera application of the electronic device; and a response action corresponding to the first operation includes at least one of the following: Play animations; Play sound effects; Image information collected by the camera at the first moment is obtained, and image processing is performed according to the image information.

6. A response method for continuous operation, characterized in that: Applied to electronic equipment, the method comprises: Detecting a first operation triggered by a user at a first moment, and executing a response action corresponding to the first operation, wherein the response action corresponding to the first operation includes data processing; detecting a second operation triggered by the user at a second time, where the second time is later than the first time; If data processing in the response action corresponding to the first operation is completed at the second moment, the response action corresponding to the first operation is ended, and the response action corresponding to the second operation is executed.

7. The method according to claim 6, characterized in that The method further comprises: If the data processing in the response action corresponding to the first operation is not completed at the second moment, continue to execute the response action corresponding to the first operation until the data processing is completed; After completing the data processing, the response action corresponding to the first operation is ended, and the response action corresponding to the second operation is executed.

8. An electronic device, characterized in that: The method comprises at least one processor coupled to at least one memory, wherein the at least one processor is used to read a computer program stored in the at least one memory to execute the method according to any one of claims 1 to 5, or to execute the method according to claim 6 or 7.

9. An electronic device, characterized in that: It comprises a plurality of functional modules; the plurality of functional modules interact with each other to implement the method as claimed in any one of claims 1 to 5, or execute the method as claimed in claim 6 or 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the method according to any one of claims 1 to 5, or the method according to claim 6 or 7.

11. A computer program product comprising instructions, characterized in that When the computer program product is executed on a computer, the computer is enabled to execute the method according to any one of claims 1 to 5, or the method according to claim 6 or 7.

Citation Information

Patent Citations

  • Operation processing method and device

    CN106060616A

  • Response method of a touch screen and electronic equipment

    CN109871147A

  • Touch panel control method and electronic equipment

    CN113946208A