Response method for continuous operations, and device
By detecting the time interval of continuous operation of the user and ending the response action of the previous operation based on the preset time, the electronic device can respond to the current operation in a timely manner, solving the problem of unsmooth response when the user enters quickly and continuously, and improving the user experience.
Patent Information
- Application Number
- PCT/CN2024/104361
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-08-31
- Filing Date
- 2024-07-09
- Publication Date
- 2025-03-06
AI Technical Summary
When users quickly and continuously input operations, it is difficult for electronic devices to respond in a timely and effective manner, resulting in a poor user experience.
By detecting the time interval of continuous operation of the user, if the duration 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.
It improves the response speed of electronic devices to users' continuous operations, ensures the smoothness of response, and improves the user experience.
Smart Images

Figure CN2024104361_06032025_PF_FP_ABST
Abstract
Description
A response method and device for continuous operation
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of the People's Republic of China on August 29, 2023, with application number 202311114808.8 and invention name “A response method and device for continuous operation”, the entire contents of which are incorporated by reference into this application; this application claims priority to the Chinese patent application filed with the State Intellectual Property Office of the People's Republic of China on August 31, 2023, with application number 202311131288.1 and invention name “A response method and device for continuous operation”, the entire contents of which are incorporated by reference into 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 animation 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 animation effect 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. While displaying the animation effect and playing the sound effect, the electronic device can complete the image processing corresponding to the moment the user clicks.
[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.
[0006] Summary of the Invention
[0007] 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.
[0008] In a first aspect, the present application provides a method for responding to 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.
[0009] 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 continuous operations triggered by the user, ensuring the smoothness of the electronic device's response to continuous user operations, and improving the user experience.
[0010] 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.
[0011] In a possible design, the response action may be playing an animation, playing a sound effect, or both.
[0012] In one possible design, the method also includes: if the execution duration of the response action corresponding to the first operation at the second moment is less than the preset duration, continuously executing the response action corresponding to the first operation until the execution duration of the response action corresponding to the first operation is greater than or equal to the preset duration; after the execution duration of the response action corresponding to the first operation 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.
[0013] 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, so as to ensure 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, so as to prevent the user from having an unusual experience from being switched too quickly to play the motion effects and sound effects, thereby ensuring the user's perception and improving the user experience.
[0014] 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.
[0015] 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 a preset time, the electronic device detects multiple operations triggered by the user. The electronic device can determine the target operation from the multiple operations, use 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.
[0016] 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.
[0017] 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 fully 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.
[0018] In one possible design, the first operation is a photo-taking operation triggered by the user in the 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.
[0019] 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-taking operations in a timely manner while ensuring the response effect, ensuring the response smoothness after the user continuously triggers the photo-taking operation, and improving the user experience.
[0020] In a second aspect, the present application provides a method for responding to 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.
[0021] 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 a timely manner and improve the response speed of the electronic device to continuous operations.
[0022] In one 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.
[0023] 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 fully 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.
[0024] In a third aspect, the present application provides an 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 respective 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 the specific implementation.
[0025] 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. 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.
[0026] In a fifth aspect, the present application also provides a computer program product comprising instructions, which, when run 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.
[0027] In a sixth aspect, the present application also 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.
[0028] 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.
[0029] In an eighth aspect, the present application further provides a chip system, comprising a processor for supporting a computer device in implementing the method executed by an electronic device in any of the above aspects and its respective embodiments. In one possible design, the chip system further comprises a memory for storing the necessary programs and data for the computer device. The chip system may be composed of a chip or may include a chip and other discrete devices. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] FIG1 is a schematic diagram of a camera interface of an electronic device;
[0031] FIG2 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
[0032] FIG3 is a software structure block diagram of an electronic device provided in an embodiment of the present application;
[0033] FIG4 is a flow chart of a response method for continuous operation provided in an embodiment of the present application;
[0034] FIG5 is a schematic diagram of a photographing process of a camera application provided in an embodiment of the present application;
[0035] FIG6 is a schematic diagram of a transparency change curve of an overlay layer provided in an embodiment of the present application;
[0036] FIG7 is a schematic diagram of executing a response action provided in an embodiment of the present application;
[0037] FIG8 is a schematic diagram of executing a response action provided in an embodiment of the present application;
[0038] FIG9 is a flow chart of a response method for continuous operation provided in an embodiment of the present application;
[0039] FIG10 is a flowchart of a response method for continuous operation provided in an embodiment of the present application. DETAILED DESCRIPTION
[0040] In order to make the purpose, technical solutions and advantages of the embodiments of the present application more clear, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings. In the description of the embodiments of the present application, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features.
[0041] It should be understood that in the embodiments of the present application, "at least one" refers to one or more, and "more" 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: the existence of A alone, the existence of A and B at the same time, and the existence of B alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects 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.
[0042] In the interaction between users and electronic devices, in order to ensure that each input of the user can get immediate and effective feedback, the electronic device can respond to the user's input by displaying animation effects, playing sound effects or vibrations on the interface. For example, Figure 1 is a schematic diagram of a photo-taking interface of an electronic device. Referring to Figure 1, when a user uses the camera application in an electronic device, the user clicks the photo-taking button, and the interface of the electronic device will display a flashing black animation effect 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-taking button, the electronic device can obtain the image information collected by the camera, and while displaying the animation effect and playing the sound effect, the electronic device can complete the image processing corresponding to the moment the user clicks. After completing the image processing, the electronic device can display a thumbnail in the lower left corner of the photo-taking interface.
[0043] 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.
[0044] In some embodiments, when the electronic device displays an animation and / or plays a sound effect in response to a user operation, it is unable to respond to the same operation triggered by the user. For example, in a camera application, 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 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 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 is unable to 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.
[0045] Based on the above problems, an 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 the 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 a preset time, the response action corresponding to the first operation is terminated and the response action corresponding to the second operation is executed. Wherein, 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 a response action. When the electronic device receives an 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 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.
[0046] 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, which needs to play animations / sound effects in response to a user clicking a photo button; a game application which 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.
[0047] 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, in-vehicle devices, augmented reality (AR) / virtual reality (VR) devices, laptop 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.
[0048] 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. Or portable terminal devices with other operating systems.
[0049] Figure 2 is a schematic diagram of the structure of an electronic device 100 provided in an embodiment of the present application. As shown in Figure 2, 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 194, and a subscriber identification module (SIM) card interface 195.
[0050] 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 processing unit (GPU), an image signal processor (ISP), a controller, memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors. The controller may serve as the nerve center and command center of the electronic device 100. The controller may generate operation control signals based on instruction opcodes and timing signals to control instruction fetching and execution. The processor 110 may also include memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a high-speed cache memory. This memory may store instructions or data that have just been used or are being recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can directly retrieve it from the memory. This avoids duplicate accesses, reduces the processor 110's waiting time, and thus improves system efficiency.
[0051] The USB interface 130 is an interface that complies with USB standards and specifications, and may be a Mini USB interface, a Micro USB interface, a USB Type-C interface, or the like. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer 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 194, the camera 193, and the wireless communication module 160.
[0052] The wireless communication functionality of electronic device 100 can be implemented using antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, a modem processor, and a baseband processor. Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.
[0053] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G 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.
[0054] 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 that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0055] 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 a network and other devices through wireless communication technologies. The wireless communication technologies 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).
[0056] 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), a MiniLED, a MicroLed, a Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include one or N display screens 194, where N is a positive integer greater than one.
[0057] 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 light signal into an electrical signal, and then passes the electrical signal to the ISP for conversion 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.
[0058] 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 the 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.
[0059] 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 via the external memory interface 120 to implement data storage functions. For example, files such as pictures and videos can be saved on the external memory card.
[0060] The electronic device 100 can implement audio functions such as music playback and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0061] Among them, the sensor module 180 may include a pressure sensor 180A, an acceleration sensor 180B, a touch sensor 180C, etc.
[0062] The pressure sensor 180A is used to sense the pressure signal and convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be disposed on the display screen 194 .
[0063] Touch sensor 180C, also known as a "touch panel," can be disposed on display screen 194. The touch sensor 180C and display screen 194 form a touch screen, also known as a "touch screen." Touch sensor 180C is used to detect touch operations applied thereto or in the vicinity thereof. The touch sensor can transmit the detected touch operations to an application processor to determine the type of touch event. Visual output related to the touch operations can be provided via display screen 194. In other embodiments, touch sensor 180C can also be disposed on the surface of electronic device 100, at a location different from that of display screen 194.
[0064] The buttons 190 include 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 button input and generate 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.
[0065] It is understood that the components shown in FIG2 do not constitute a specific limitation on the electronic device 100. The electronic device may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. In addition, the combination / connection relationship between the components in FIG2 may also be adjusted and modified.
[0066] Figure 3 is a block diagram of the software structure of an electronic device provided in an embodiment of the present application. As shown in Figure 3, the software structure of the electronic device can be a layered architecture. For example, the software can be divided into several layers, each with 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 system library, and the kernel layer.
[0067] The application layer may include a series of application packages. As shown in Figure 3, the application layer may include a camera, settings, skin module, user interface (UI), third-party applications, etc. Among them, third-party applications may include gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc. In an 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.
[0068] The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer may include some predefined functions. As shown in Figure 3, the application framework layer may include a window manager, content provider, view system, telephony manager, resource manager, and notification manager.
[0069] The window manager manages windowed applications. It can determine the display size, determine whether a status bar is present, lock the screen, and take screenshots. Content providers store and retrieve data and make it accessible to applications. This data can include video, images, audio, incoming and outgoing calls, browsing history and bookmarks, and phone books.
[0070] The view system includes visual controls, such as those for displaying text and images. The view system is used to build applications. A display interface can consist of one or more views. For example, a display interface containing a text notification icon might include a view for displaying text and a view for displaying images.
[0071] The phone manager is used to provide communication functions for electronic devices, such as call status management (including answering, hanging up, etc.).
[0072] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0073] The Notification Manager allows applications to display notifications in the status bar. These messages can be displayed briefly and then disappear automatically without user interaction. For example, the Notification Manager is used to notify users of completed downloads and message reminders. The Notification Manager can also display notifications in the top status bar of the system as icons or scrolling text, such as notifications from background applications, or as dialog windows on the screen. Examples include displaying text messages in the status bar, emitting alert sounds, vibrating electronic devices, or flashing indicator lights.
[0074] The runtime includes the core library and the virtual machine. The runtime is responsible for the scheduling and management of the operating system.
[0075] The core library consists of two parts: one containing the Java language's callable functions and the other containing the operating system's core libraries. The application layer and application framework layer run in a virtual machine. The virtual machine executes the Java files in the application layer and application framework layer as binary files. The virtual machine manages object lifecycles, stack management, thread management, security and exception management, and garbage collection.
[0076] The system library can include multiple functional modules, such as a surface manager, media libraries, a 3D graphics processing library (e.g., OpenGL ES), a 2D graphics engine (e.g., SGL), and an image processing library.
[0077] The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
[0078] The media library supports playback and recording of a variety of common audio and video formats, as well as static image files. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0079] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0080] A 2D graphics engine is a drawing engine for 2D drawings.
[0081] The kernel layer is the layer between hardware and software. The kernel layer includes at least display driver, camera driver, audio driver, and sensor driver.
[0082] The hardware layer can include various sensors, such as accelerometers, gyroscopes, touch sensors, etc.
[0083] It should be noted that the structures shown in Figures 2 and 3 are merely examples of electronic devices provided in the embodiments of the present application and do not limit the electronic devices provided in the embodiments of the present application. In specific implementations, the electronic device may have more or fewer devices or modules than those in the structures shown in Figures 2 or 3.
[0084] The following describes a response method for continuous operation provided in an embodiment of the present application.
[0085] In an embodiment of the present application, after the user triggers an operation, the electronic device can 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 can execute a response action corresponding to an operation for a preset period of time 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 can 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:
[0086] 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.
[0087] FIG4 is a flow chart of a method for responding to continuous operations provided by an embodiment of the present application. The method can be executed by an electronic device, and the electronic device can have the structure shown in FIG2 and / or FIG3. Referring to FIG4, the method includes the following steps:
[0088] 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.
[0089] 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.
[0090] After detecting a first operation triggered by a user, the electronic device may execute a response action corresponding to the first operation. The response action corresponding to the first operation may be at least one of an animation, sound effect, data processing, etc. that lasts for a period of time. Optionally, in embodiments of the present application, the duration for which the electronic device plays animation and sound effects after a user triggers an operation may be a single execution duration, and the single execution duration may be a preset value.
[0091] For example, taking the camera application in an electronic device as an example, FIG5 is a schematic diagram of a camera application photographing process provided by an embodiment of the present application. Referring to FIG5 , the first operation triggered by the user can be the user clicking a photo button. After the electronic device detects the first operation, it can obtain the image information collected by the camera when the user triggers the first operation. It should be noted that the user's click operation can be composed of the user's finger touching the screen to the user's finger being lifted. The first moment can be the moment when the user's finger is lifted. The electronic device can obtain the image information collected by the camera at the first moment, and the electronic device can perform image processing on the obtained image information to generate an image taken by the user.
[0092] Referring to Figure 5, after the electronic device detects the first operation, the electronic device can also play a flash black dynamic effect. The flash black dynamic effect can be the display effect after superimposing a layer on the preview image in the viewfinder of the photo interface. The layer is initially displayed as completely black. As time goes by, the opacity of the layer decreases until the layer changes to a fully transparent layer. For example, Figure 6 is a schematic diagram of an opacity change curve of an overlay layer provided in an embodiment of the present application. Referring 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 velocity of 0. When the electronic device performs a dynamic effect display according to the opacity curve, the electronic device can keep displaying the completely black layer for a period of time (such as 50ms), and then gradually reduce the opacity of the overlay 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 overlay layer to the opacity of the overlay layer changing to 0 can be the single execution time.
[0093] In addition, referring to FIG5 , after the electronic device detects the first operation, the electronic device may further play a shutter sound effect, and the playing duration of the shutter sound effect may also be a single execution duration.
[0094] 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.
[0095] S402: The electronic device detects a second operation triggered by the user at a second moment.
[0096] Among them, the second moment is later than the first moment.
[0097] 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 with the same effect as the first operation.
[0098] For example, when the first operation is the user clicking the photo button in the photo interface of the camera application, the second operation can be 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 the physical buttons of the electronic device, voice input of photo instructions, etc.
[0099] 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, the process proceeds to S405; otherwise, the process proceeds to S404.
[0100] 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 less than the single execution duration. When the response action includes playing animations 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.
[0101] 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.
[0102] It is understandable that if the execution duration of the response action corresponding to the first operation at the second moment is less than the preset duration, and the electronic device terminates the response action corresponding to the first operation at this time, the user may experience an abnormal experience due to the short duration of the response action. For example, in the camera app described above, after the user clicks the photo button, the electronic device will display a flash-to-black animation. If the duration of this animation is too short, the electronic device will display the flash-to-black effect multiple times in a short period of time, which is a poor user experience.
[0103] In an optional implementation, when the electronic device determines that 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 can 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 can respond to the user's second operation. That is, 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.
[0104] For example, taking a user's continuous operations in a camera application as an example, Figure 7 is a schematic diagram of the execution of a response action provided by an embodiment of the present application. Referring to Figure 7, the first and second operations can be click operations triggered by the user pressing the take photo button. The click operation can include the user triggering the screen and the user raising their hand. The electronic device can obtain image information captured by the camera and begin image processing at the moment the user raises their hand. After detecting the first operation triggered by the user, the electronic device can execute the response action corresponding to the first operation. As shown in Figure 7, the response action corresponding to the first operation is playing animation and sound effects. When the electronic device detects the second operation triggered by the user, and the execution duration of the response action corresponding to the first operation is less than the preset duration, the electronic device will continue to execute the response action corresponding to the first operation until the execution duration of the response action corresponding to the first operation is greater than or equal to the preset duration. As shown in Figure 7, when the execution duration of the response action corresponding to the first operation by the electronic device equals the preset duration, 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 in the response action corresponding to the second operation, but this method can ensure that the electronic device executes the response action effectively. Similarly, if the execution time of the response action corresponding to the second operation performed by the electronic device is less than 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 photo 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.
[0105] 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, the electronic device detects multiple operations triggered by the user, and the time difference between the trigger time of each operation and the trigger 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 multiple operations, the electronic device can use the operation with the earliest trigger time among the multiple operations as the second operation, or use the operation with the latest trigger 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.
[0106] S405: The electronic device ends the response action corresponding to the first operation, and performs the response action corresponding to the second operation.
[0107] 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.
[0108] For example, taking a user's continuous operations in a camera application as an example, Figure 8 is a schematic diagram of executing a response action provided by an embodiment of the present application. Referring to Figure 8, the first and second operations can be click operations triggered by the user pressing the take photo button. The click operation can include the user triggering the screen and the user raising their hand. The electronic device can obtain image information captured by the camera and begin image processing at the moment the user raises their hand. After detecting the first operation triggered by the user, the electronic device can execute the response action corresponding to the first operation. As shown in Figure 8, the response action corresponding to the first operation is playing animation and sound effects. If the electronic device detects the second operation triggered by the user, and 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 terminate the response action corresponding to the first operation and execute the response action corresponding to the second operation. Similarly, if the execution duration of the response action corresponding to the second operation is greater than or equal to the preset duration, the electronic device detects a third operation triggered by the user. The third operation can be a click operation triggered by the user pressing the take photo button. The electronic device can terminate the response action corresponding to the second operation and execute the response action corresponding to the third operation.
[0109] In some embodiments, the electronic device may determine whether to end the response action based on whether data processing in the response action corresponding to the user operation is completed, and execute the response action corresponding to the next operation.
[0110] FIG9 is a flow chart of a method for responding to continuous operations provided by an embodiment of the present application. The method can be executed by an electronic device, and the electronic device can have the structure shown in FIG2 and / or FIG3. Referring to FIG9, the method includes the following steps:
[0111] 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.
[0112] S902: The electronic device detects a second operation triggered by the user at a second moment.
[0113] Among them, the second moment is later than the first moment.
[0114] It should be noted that, for the introduction of the first operation in S901, the response action corresponding to the first operation, and the second operation in S902, reference can be made to S401-S402 in the embodiment shown in FIG. 4 , and repeated descriptions are omitted.
[0115] 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 so, the process proceeds to S905; otherwise, the process proceeds to S904.
[0116] 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.
[0117] S905: The electronic device ends the response action corresponding to the first operation, and performs the response action corresponding to the second operation.
[0118] In some embodiments of the present application, when an electronic device responds to a first operation triggered by a user and the response action performed includes data processing, for example, after the user clicks the photo button in a camera application, the electronic device needs to perform image processing. After detecting a second operation, when the electronic device 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 is completed at the second moment. 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, then end the response action corresponding to the first operation, and execute the response action corresponding to the second operation.
[0119] For example, taking the user's continuous operation in the camera application as an example, in some unconventional photo-taking scenarios, such as the electronic device is under high load, the current photo-taking environment is extremely dim, the flash function of the camera application is turned on, etc., when the electronic device processes the image information collected by the camera, the time to perform image processing will increase compared to conventional photo-taking scenarios, that is, the image output time of the electronic device will increase. At this time, the electronic device can determine 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 executes a response action corresponding to the first operation, and the response action includes playing animation 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 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 at the same time 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.
[0120] 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 the preset time and whether the data processing in the response action is completed, and execute the response action corresponding to the next operation.
[0121] FIG10 is a flow chart of a method for responding to continuous operations provided by an embodiment of the present application. The method can be executed by an electronic device, and the electronic device can have the structure shown in FIG2 and / or FIG3. Referring to FIG10, the method includes the following steps:
[0122] 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.
[0123] S1002: The electronic device detects a second operation triggered by the user at a second moment.
[0124] 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, the process proceeds to S1005; otherwise, the process proceeds to S1004.
[0125] 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.
[0126] S1005: The electronic device determines whether data processing in the response action corresponding to the first operation is completed. If so, the process proceeds to S1007; otherwise, the process proceeds to S1006.
[0127] 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 in S1005 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 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 in S1005 the electronic device can determine whether the data processing in the response action corresponding to the first operation is completed after the electronic device completes S1004.
[0128] 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.
[0129] S1007: The electronic device ends the response action corresponding to the first operation, and performs the response action corresponding to the second operation.
[0130] In some embodiments of the present application, when an electronic device responds to a first operation triggered by a user and the response action performed includes playing an animation or sound effect and processing data, for example, after the user clicks the photo button in a camera application, the electronic device needs to perform image processing and, at the same time, needs to play an animation and sound effect that simulates the photo shutter effect. After the electronic device detects the second operation and 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.
[0131] For example, taking a user's continuous operation in a camera app as an example, the electronic device detects a first user-triggered operation, which could be a click on the photo button. The electronic device executes a response action corresponding to the first operation, which includes playing animations, playing sound effects, and processing images. The click operation can include the user triggering the screen and then raising their hand. The electronic device can obtain image information captured by the camera and begin image processing at the moment the user raises their hand. The electronic device detects a second user-triggered operation, which could be a click on the photo button. The electronic device determines whether the execution duration of the response action corresponding to the first operation 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 determines whether the image processing corresponding to the first operation is complete. If the image processing is not complete, the electronic device continues to execute the response action corresponding to the first operation until the image processing is complete. In other words, the electronic device continues to play animations and sound effects, while also processing the image. At this point, the electronic device ends executing the response action corresponding to the first operation and begins executing the response action corresponding to the second operation.
[0132] It should be noted that the embodiment of the present application does not limit the execution order between S1003-S1004 and S1005-S1006 in the embodiment shown in Figure 10. That is to say, in the specific implementation, S1003-S1004 can be executed first and then S1005-S1006, that is, first judge according to the condition of whether 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 of whether the data processing in the response action corresponding to the first operation is completed; S1005-S1006 can also be executed first and then S1003-S1004, that is, first judge according to the condition of whether the data processing in the response action corresponding to the first operation is completed, and then judge according to the condition of whether 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 does not affect the essence of the solution of the embodiment of the present application. In addition, the embodiment shown in Figure 10 can refer to the introduction of the embodiments shown in Figures 4 and 9 in the specific embodiment, and the repeated parts will not be repeated.
[0133] It should be understood that the above embodiments can be referenced or combined with each other.
[0134] Based on the above embodiments, the present application further provides an electronic device, comprising multiple functional modules; the multiple 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. For example, the functions of the electronic device in the embodiments shown in Figures 4, 9, or 10 are implemented. 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 the specific implementation.
[0135] 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 performs the functions performed by the electronic device in each method described in the embodiments of the present application, such as performing the functions of the electronic device in the embodiments shown in Figures 4, 9, or 10.
[0136] Based on the above embodiments, the present application further provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the methods described in the embodiments of the present application.
[0137] 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.
[0138] 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 various methods described in the embodiments of the present application.
[0139] Based on the above embodiments, the present application provides a chip system, which includes a processor for supporting a computer device to implement the various methods described in the embodiments of the present application. In one possible design, the chip system also includes a memory for storing the necessary programs and data for the computer device. The chip system can be composed of a chip or can include a chip and other discrete devices.
[0140] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can 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 can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0141] 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 flow and / or box in the flow chart and / or block diagram, as well as the combination of the flow chart and / or box in the flow chart 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 produce a device for implementing the functions specified in one or more flow charts and / or one or more boxes in the block diagram.
[0142] These computer program instructions may also be stored in a computer-readable memory that can direct 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 a product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0143] 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, so that the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0144] Obviously, those skilled in the art may make various modifications and variations to this application without departing from the scope of protection of this application. Thus, if these modifications and variations of this application fall within the scope of the claims of this application and their equivalents, this application is 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
Dialing number and mobile terminal
CN106990904A
Touch panel control method and electronic equipment
CN113946208A
Human-computer interaction method and electronic equipment
CN114527920A