A response method and apparatus for continuous operation
Patent Information
- Application Number
- CN202311131288.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2023-08-29
- Filing Date
- 2023-08-31
- Publication Date
- 2026-10-23
- Estimated Expiration
- 2043-08-31
AI Technical Summary
[0014]通过该设计,若电子设备在执行第一操作对应的响应动作,且第一操作对应的响应动作的执行时长小于预设时长,电子设备检测到用户触发的多个操作,电子设备可以从多个操作中确定目标操作,将目标操作作为第二操作,并在结束第一操作对应的响应动作后,对第二操作进行响应,从而解决用户过快触发操作时,电子设备无法响应的问题。
Smart Images

Figure CN119545163B_ABST
Abstract
Description
[0001] Cross-reference to related applications
[0002] This application claims priority to Chinese Patent Application No. 202311114808.8, filed on August 29, 2023, with the State Intellectual Property Office of the People's Republic of China, entitled "A Response Method and Apparatus for Continuous Operation", the entire contents of which are incorporated herein by reference. Technical Field
[0003] This application relates to the field of terminal technology, and in particular to a response method and device for continuous operation. Background Technology
[0004] In user interactions with electronic devices, to ensure that every input receives immediate and effective feedback, the device can respond to user input through methods such as displaying animations, playing sound effects, or vibrating. For example, when a user uses a camera app on an electronic device and clicks the shutter button, the device's interface displays a black-and-white animation simulating a mechanical shutter effect. Specifically, a completely black layer is displayed over the preview image in the viewfinder, and the opacity of the 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 animations and playing sound effects, the electronic device can simultaneously process the image corresponding to the moment the user clicks.
[0005] When users input quickly and continuously, such as frequently clicking the shutter button in a camera app, how electronic devices respond to these continuous user actions when the time interval between clicks is less than the duration of a single playback of an animation or sound effect becomes a pressing issue. Summary of the Invention
[0006] This application provides a response method and apparatus for continuous operation, which improves the response speed of electronic devices to continuous operations triggered by users and ensures the smoothness of electronic devices in responding to continuous user operations.
[0007] In a first aspect, this application provides a response method for continuous operation, which can be applied to an electronic device. The method includes: the electronic device 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 moment, the second moment being 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, ending the response action corresponding to the first operation, and executing the response action corresponding to the second operation; the preset duration is less than a single execution duration, and the single execution duration is a preset duration of the continuous operation of the response action corresponding to the first operation.
[0008] In the above method, the preset duration can be understood as the 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 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. This speeds up the response speed of the electronic device to the continuous operations triggered by the user, ensures the smoothness of the electronic device's response to the continuous operations of the user, and improves the user experience.
[0009] In one possible design, the method is applied to the photo-taking process, where the operation corresponds to the user's photo-taking action, such as pressing a virtual photo-taking button.
[0010] In one possible design, the response action could be playing an animation, playing a sound effect, or both.
[0011] In one possible design, the method further includes: if the execution duration of the response action corresponding to the first operation at the second time point is less than the preset duration, continuing 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; 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.
[0012] With this design, when the execution duration of the response action corresponding to the first operation is less than the preset duration at the second moment, the electronic device needs to continuously 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. Then, the response action corresponding to the first operation ends, and the response action corresponding to the second operation is executed. This ensures the effectiveness of the response actions executed by the electronic device. For example, if the response action includes playing animation and sound effects, the electronic device can continuously play the animation and sound effects corresponding to the previous operation within the preset duration. This prevents the user from experiencing an unusual experience due to excessively rapid switching of animation and sound effects, thereby ensuring the user's visual experience and improving the user experience.
[0013] In one possible design, the method further includes: detecting multiple operations triggered by the user when the execution time of the response action corresponding to the first operation is less than the preset time; determining a target operation from the multiple operations and using the target operation as the second operation; wherein the target operation is any one of 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] With this design, if the electronic device is performing the response action corresponding to the first operation, and the execution time of the response action corresponding to the first operation is less than the preset time, the electronic device can detect 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 the response action corresponding to the first operation ends. This solves 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 further includes: determining that the data processing in the response action corresponding to the first operation has been completed.
[0016] With this design, when the response action corresponding to the first operation includes data processing, after 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 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 the camera application of the electronic device; the response action corresponding to the first operation includes at least one of the following: playing an animation effect; playing a sound effect; acquiring image information captured 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 operation provided in this application can be applied to camera applications. With the response method for continuous operation provided in this application, electronic devices can respond to the user's continuous photo-taking operations in a timely manner while ensuring the response effect, thus ensuring the smoothness of the response after the user continuously triggers the photo-taking operation and improving the user experience.
[0019] Secondly, this application provides a response method for continuous operation, which can be applied to an electronic device. The method includes: the electronic device detecting a first operation triggered by a user at a first moment, executing a response action corresponding to the first operation, the response action corresponding to the first operation including data processing; detecting a second operation triggered by the user at a second moment, the second moment being later than the first moment; if data processing in the response action corresponding to the first operation has been completed at the second moment, ending the response action corresponding to the first operation, and executing the response action corresponding to the second operation.
[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, thereby responding to the second operation in a timely manner and improving the response speed of the electronic device to continuous operations.
[0021] In one possible design, the method further includes: if the data processing in the response action corresponding to the first operation is not completed at the second time point, continuing to execute 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] With this design, if the electronic device detects a second operation triggered by the user at a second moment, and the data processing in the response action corresponding to the first operation is not yet completed, the electronic device can continue to execute the response action corresponding to the first operation until the data processing is completed. This ensures that the electronic device can fully execute the data processing in the response action corresponding to the first operation, enabling the electronic device to correctly respond to the operation triggered by the user.
[0023] Thirdly, this application provides an electronic device comprising multiple functional modules; the multiple functional modules interact to implement the methods performed by the electronic device in any of the above aspects and their 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 specific implementations.
[0024] Fourthly, this application provides an electronic device including 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 any of the above aspects and the methods executed by the electronic device in its various embodiments.
[0025] Fifthly, this application also provides a computer program product containing instructions that, when the computer program product is run on a computer, cause the computer to perform the method executed by the electronic device in any of the above aspects and embodiments.
[0026] Sixthly, this application also provides a computer-readable storage medium storing a computer program that, when executed by a computer, causes the computer to perform the method executed by the electronic device in any of the above aspects and embodiments.
[0027] In a seventh aspect, this application also provides a chip for reading a computer program stored in a memory and executing the method performed by the electronic device in any of the above aspects and embodiments.
[0028] Eighthly, this application also provides a chip system including a processor for supporting a computer device in implementing the methods executed by the electronic devices in any of the above aspects and embodiments. In one possible design, the chip system further includes a memory for storing programs and data necessary for the computer device. The chip system may be composed of chips or may include chips and other discrete devices. Attached Figure Description
[0029] Figure 1 A schematic diagram of the camera interface of an electronic device; Figure 2 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application; Figure 3 A software structure block diagram of an electronic device provided in an embodiment of this application; Figure 4 A flowchart illustrating a response method for continuous operation provided in an embodiment of this application; Figure 5 A schematic diagram illustrating the photo-taking process of a camera application provided in an embodiment of this application; Figure 6 A schematic diagram of the transparency variation curve of an overlay layer provided in an embodiment of this application; Figure 7 A schematic diagram illustrating the execution of a response action provided in an embodiment of this application; Figure 8 A schematic diagram illustrating the execution of a response action provided in an embodiment of this application; Figure 9 A flowchart illustrating a response method for continuous operation provided in an embodiment of this application; Figure 10 This is a flowchart illustrating a response method for continuous operation provided in an embodiment of this application. Detailed Implementation
[0030] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the embodiments of this application will be further described in detail below with reference to the accompanying drawings. In the description of the embodiments of this application, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Therefore, a feature defined with "first" and "second" may explicitly or implicitly include one or more of that feature.
[0031] It should be understood that in the embodiments of this application, "at least one" means one or more, and "more than one" means two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" or similar expressions refer 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, and c can be single or multiple.
[0032] In user interactions with electronic devices, to ensure that every input receives immediate and effective feedback, the electronic device can respond to user input by displaying animations, playing sound effects, or vibrating on the interface. For example, Figure 1 This is a schematic diagram of the camera interface of an electronic device. (Reference) Figure 1 When a user uses the camera app on an electronic device and clicks the shutter button, the device's interface displays a black-and-white animation simulating a mechanical shutter effect. Specifically, a completely black layer is displayed over the preview image in the viewfinder, and the transparency of this black layer decreases over time until a clear preview image is displayed. The electronic device can also play a shutter opening and closing sound effect. When the user clicks the shutter button, the electronic device acquires the image information captured by the camera. Simultaneously with displaying the animation and playing the sound effect, the electronic device performs image processing corresponding to the moment the user clicks. After image processing, a thumbnail is displayed in the lower left corner of the camera interface.
[0033] When users input quickly and continuously, such as frequently clicking the shutter button in a camera app, how electronic devices can respond to these continuous actions when the time interval between clicks is less than the duration of a single playback of an animation or sound effect becomes a pressing issue.
[0034] In some implementations, the electronic device cannot respond to the same user-triggered operation while displaying animations and / or playing sound effects in response to user actions. For example, in a camera application, after a user clicks the shutter button, the electronic device displays a black flash animation and plays a shutter sound. If the user clicks the shutter button again while the black flash animation and shutter sound are displaying and playing, the electronic device will not respond. However, if the electronic device stops displaying the black flash animation and playing the shutter sound, and the user clicks the shutter button again, the electronic device can respond. Furthermore, if the electronic device has not completed the image processing corresponding to the moment the user clicked the shutter button after the black flash animation and shutter sound have ended, the electronic device will not respond if the user clicks the shutter button again. Therefore, in this implementation, the electronic device cannot coordinate multiple processes such as user operation, animation and sound effect playback, and image processing, resulting in untimely feedback to user operations and a choppy user experience.
[0035] To address the aforementioned issues, this 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 the response action corresponding to the first operation. When the electronic device detects a second operation triggered by the user at a second moment, and determines that 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, it terminates the response action corresponding to the first operation and executes the response action corresponding to the second operation. The preset duration is less than the single execution duration of the response action corresponding to the user-triggered operation. In this method, the preset duration in this application embodiment can be understood as a preset minimum duration for the electronic device to execute response actions. 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. This accelerates the response speed of the electronic device to continuous user-triggered operations, ensures the smoothness of the electronic device's response to continuous user operations, and improves the user experience.
[0036] The response method for continuous operation provided in this application can be applied to various situations requiring user operation responses.
[0037] Feedback applications, such as camera applications in electronic devices, need to play animations / sound effects in response to users clicking the shutter button; game applications need to play animations / sound effects in response to users clicking controls, etc. This application embodiment does not limit the specific application scenarios.
[0038] The following describes an electronic device and embodiments for using such an electronic device. The electronic device in the embodiments of this application can be a tablet computer, mobile phone, in-vehicle device, augmented reality (AR) / virtual reality (VR) device, laptop computer, ultra-mobile personal computer (UMPC), netbook, personal digital assistant (PDA), wearable device, etc. The embodiments of this application do not limit the specific type of electronic device.
[0039] In some embodiments of this application, the electronic device may also be a portable terminal device that 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, portable terminal devices running iOS®, Android®, Microsoft®, HarmonyOS®, or other operating systems.
[0040] Figure 2 This is a schematic diagram of the structure of an electronic device 100 provided in an embodiment of this 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, a headphone jack 170D, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.
[0041] Processor 110 may include one or more processing units, such as 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). Different processing units may be independent devices or integrated into one or more processors. The controller may serve as the central nervous system and command center of the electronic device 100. The controller can generate operation control signals based on instruction opcodes and timing signals to control instruction fetching and execution. Processor 110 may also include memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that processor 110 has recently used or is repeatedly used. If processor 110 needs to reuse an instruction or data, it can directly retrieve it from the memory. This avoids repeated access, reduces the waiting time of processor 110, and thus improves system efficiency.
[0042] USB interface 130 is a USB standard compliant interface, specifically a Mini USB interface, Micro USB interface, USB Type-C interface, etc. USB interface 130 can be used to connect a charger to charge electronic device 100, and can also be used for data transfer between electronic device 100 and peripheral devices. Charging management module 140 receives charging input from the charger. Power management module 141 connects battery 142, charging management module 140, and processor 110. Power management module 141 receives input from battery 142 and / or charging management module 140, providing power to processor 110, internal memory 121, external memory, display 194, camera 193, and wireless communication module 160, etc.
[0043] The wireless communication function of electronic device 100 can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor, and 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 one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with tuning switches.
[0044] The mobile communication module 150 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 150 may be housed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be housed in the same device.
[0045] The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 100, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. 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 antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.
[0046] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling electronic device 100 to communicate with networks and other devices via 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 technologies, etc. The GNSS may include the Global Positioning System (GPS), the Global Navigation Satellite System (GLONASS), the BeiDou Navigation Satellite System (BDS), the Quasi-Zenith Satellite System (QZSS), and / or satellite-based augmentation systems (SBAS).
[0047] The display screen 194 is used to display the display interface of an application, such as the display page of an 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 (AMOLED), a flexible light-emitting diode (FLED), a Mini LED, 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 1.
[0048] Camera 193 is used to capture still images or videos. An object is projected onto a photosensitive element by generating an optical image through the lens. 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, which is then passed to an ISP for conversion into a digital image signal. The ISP outputs the digital image signal to a DSP for processing. The DSP converts the digital image signal into image signals in standard RGB, YUV, or other formats. In some embodiments, the electronic device 100 may include one or N cameras 193, where N is a positive integer greater than 1.
[0049] Internal memory 121 can be used to store computer executable program code, which includes instructions. Processor 110 executes various functional applications and data processing of electronic device 100 by running the instructions stored in internal memory 121. Internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system and software code for at least one application program. The data storage area may store data generated during the use of electronic device 100 (e.g., captured images, recorded videos, etc.). Furthermore, internal memory 121 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.
[0050] The external storage 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 storage interface 120 to perform data storage functions. For example, images, videos, and other files can be saved on the external memory card.
[0051] Electronic device 100 can implement audio functions, such as music playback and recording, through audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor.
[0052] The sensor module 180 may include a pressure sensor 180A, an acceleration sensor 180B, a touch sensor 180C, etc.
[0053] The pressure sensor 180A is used to sense pressure signals and can convert the pressure signals into electrical signals. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194.
[0054] Touch sensor 180C, also known as a "touch panel," can be located on display screen 194. The touch sensor 180C and display screen 194 together form a touchscreen, also known as a "touch screen." Touch sensor 180C detects touch operations applied to or near it. The touch sensor can transmit 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 display screen 194. In other embodiments, touch sensor 180C may also be located on the surface of electronic device 100, in a different position than display screen 194.
[0055] Buttons 190 include a power button, volume buttons, etc. Buttons 190 can be mechanical buttons or touch buttons. Electronic device 100 can receive button inputs and generate key signal inputs related to user settings and function control. Motor 191 can generate vibration alerts. Motor 191 can be used for incoming call vibration alerts or for touch vibration feedback. For example, touch operations applied to different applications (such as taking photos, audio playback, etc.) can correspond to different vibration feedback effects. Touch vibration feedback effects can also be customized. Indicator 192 can be an indicator light, used to indicate charging status, battery level changes, or to indicate messages, missed calls, notifications, etc. SIM card interface 195 is used to connect a SIM card. The SIM card can be inserted into or removed from the SIM card interface 195 to achieve contact and separation with electronic device 100.
[0056] Understandable 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 have different component arrangements. Furthermore, Figure 2 The combination / connection relationships between the components can also be adjusted and modified.
[0057] Figure 3 This is a software structure block diagram of an electronic device provided in an embodiment of this application. For example... Figure 3 As shown, the software architecture of an 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. Layers communicate with each other through software interfaces. In some embodiments, the operating system is divided into four layers, from top to bottom: the application layer, the application framework layer (FWK), the runtime and system libraries, and the kernel layer.
[0058] The application layer can include a series of application packages. For example... Figure 3 As shown, the application layer may include a camera, settings, skin modules, a user interface (UI), and third-party applications. These third-party applications may include a gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and SMS. In this embodiment, the application layer may include a target installation package of a target application that the electronic device requests to download from a server. The function files and layout files in this target installation package are adapted to the electronic device.
[0059] The application framework layer provides application programming interfaces (APIs) and a programming framework for applications in the application layer. The application framework layer can include some predefined functions. For example... Figure 3 As shown, the application framework layer may include a window manager, content provider, view system, phone manager, resource manager, and notification manager.
[0060] The window manager is used to manage windowed applications. It can obtain the screen size, determine if a status bar is present, lock the screen, and capture screenshots. The content provider stores and retrieves data, making this data accessible to applications. This data may include videos, images, audio, made and received phone calls, browsing history and bookmarks, phone books, etc.
[0061] A view system includes visual controls, such as controls for displaying text and controls for displaying images. View systems can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text notification icon could include views for displaying text and views for displaying images.
[0062] A phone manager is used to provide communication functions for electronic devices. For example, it manages call status (including connection and disconnection).
[0063] The file explorer provides applications with various resources, such as localized strings, icons, images, layout files, video files, and more.
[0064] The notification manager allows applications to display notifications in the status bar. These notifications can be used to deliver informational messages and can disappear automatically after a short pause, requiring no user interaction. For example, the notification manager can be used to notify users of completed downloads or message alerts. The notification manager can also display notifications as icons or scrolling text in the top status bar, such as notifications from background applications, or as dialog boxes on the screen. Examples include displaying text messages in the status bar, emitting sounds, vibrating electronic devices, and flashing indicator lights.
[0065] The runtime includes the core libraries and the virtual machine. The runtime is responsible for the scheduling and management of the operating system.
[0066] The core library consists of two parts: one part contains the functionalities that the Java language needs to call, and the other part contains the core libraries of the operating system. The application layer and application framework layer run in the virtual machine. The virtual machine executes the Java files of the application layer and application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.
[0067] System libraries can include multiple functional modules. For example: surface manager, media libraries, 3D graphics processing libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), image processing libraries, etc.
[0068] The Surface Manager is used to manage the display subsystem and provides the blending of 2D and 3D layers for multiple applications.
[0069] The media library supports playback and recording of various common audio and video formats, as well as still image files. It supports multiple audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG.
[0070] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0071] A 2D graphics engine is a graphics engine for 2D drawing.
[0072] The kernel layer is the layer between hardware and software. The kernel layer contains at least the display driver, camera driver, audio driver, and sensor driver.
[0073] The hardware layer can include various types of sensors, such as accelerometers, gyroscopes, and touch sensors.
[0074] It should be noted that, Figure 2 and Figure 3 The structure shown is merely an example of an electronic device provided in this application embodiment and is not intended to limit the electronic device provided in this application embodiment in any way. In specific implementations, the electronic device may have more than Figure 2 or Figure 3 The structure shown may contain more or fewer devices or modules.
[0075] The response method for continuous operation provided in the embodiments of this application will be described below.
[0076] In this embodiment, after a user triggers an operation, the electronic device can execute a response action corresponding to the user's operation. This response action may include at least one of playing animation effects, playing sound effects, or data processing. To ensure the display effect of animation effects and sound effects, when the electronic device detects consecutive user-triggered operations, it can execute the response action corresponding to one operation for a preset duration before executing the response action corresponding to the next operation. To ensure that the electronic device can complete data processing, when the electronic device detects consecutive user-triggered operations, it can determine that the data processing corresponding to one operation has been completed before executing the response action corresponding to the next operation. The response methods for consecutive operations provided in this embodiment are described below for the different situations described above: In some embodiments, the electronic device may determine whether to end the response action based on the execution duration of the response action corresponding to the user operation, and then execute the response action corresponding to the next operation.
[0077] Figure 4 A flowchart illustrating a response method for continuous operation provided in this application embodiment, the method being executed by an electronic device, the electronic device potentially having... Figure 2 and / or Figure 3 The structure shown. (Reference) Figure 4 The method includes the following steps: S401: The electronic device detects the first operation triggered by the user at the first moment and executes the response action corresponding to the first operation.
[0078] In this application embodiment, the first operation triggered by the user can be any operation such as clicking, swiping, or double-clicking 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. This application embodiment does not limit the type of the first operation.
[0079] After detecting a first operation triggered by the user, the electronic device can execute a response action corresponding to the first operation. The response action corresponding to the first operation can be at least one of the following: a motion effect, a sound effect, or data processing that lasts for a period of time. Optionally, in this embodiment, the duration for which the electronic device plays motion effects and sound effects after the user triggers an operation can be a single execution duration, which can be a preset value.
[0080] For example, take camera applications in electronic devices. Figure 5 This is a schematic diagram illustrating the photo-taking process of a camera application provided in an embodiment of this application. (Reference) Figure 5 The first action triggered by the user can be clicking the camera button. After detecting the first action, the electronic device can acquire the image information captured by the camera at the moment the user triggers the first action. It should be noted that the user's click action can consist of the moment the user's finger touches the screen and the moment the user lifts their finger. The first moment can be the moment the user lifts their finger. The electronic device can acquire the image information captured by the camera at the moment of the first action and perform image processing on the acquired image information to generate the image taken by the user.
[0081] refer to Figure 5 After the electronic device detects the first operation, it can also play a flash-black effect. This flash-black effect can be the display effect of overlaying a layer onto the preview image in the viewfinder of the camera interface. This layer is initially displayed as pure black, and its opacity decreases over time until it becomes completely transparent. For example, Figure 6 This is a schematic diagram of the opacity variation curve of an overlay layer provided in an embodiment of this 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 velocity of 0. When the electronic device displays animation based on this opacity curve, it can maintain a completely black layer for a period of time (e.g., 50ms) and then gradually reduce the opacity of the overlay layer. During this time, the display effect in the viewfinder can be a gradually clearer preview image, which can be an image captured in real-time by the electronic device's camera. The duration from when the electronic device starts displaying the overlay layer until the opacity of the overlay layer changes to 0 can be considered the duration of a single execution.
[0082] Additionally, refer to Figure 5After the electronic device detects the first operation, it can also play a shutter sound effect, and the duration of the shutter sound effect can be the duration of a single execution.
[0083] It is understandable that during the execution of the first operation response action, if the electronic device does not detect any other operations that conflict with the first operation, the electronic device will execute the first operation response action until it ends, such as ending the execution of the first operation response action when the single execution duration is reached.
[0084] S402: The electronic device detects a second operation triggered by the user at a second moment.
[0085] The second moment is later than the first moment.
[0086] Optionally, the second operation triggered by the user can be the same as the first operation, or the second operation can be an operation with the same effect as the first operation.
[0087] For example, when the first operation is the user clicking the shutter button on the camera app's camera interface, the second operation can also be the user clicking the shutter button on the camera app's camera interface, or it can be any operation by the user using the physical buttons on the electronic device, voice input, etc.
[0088] S403: Does the electronic device determine 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 yes, proceed to S405; otherwise, proceed to S404.
[0089] Optionally, the preset duration in the embodiments of this 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 duration of a single execution. When the response action includes playing animation or sound effects, the preset duration can be a duration that can guarantee 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.
[0090] S404: The electronic device continues 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.
[0091] Understandably, if the execution time of the response action corresponding to the first operation is less than the preset time in the second moment, and the electronic device ends the response action corresponding to the first operation at this time, it may give the user an abnormal experience due to the short duration of the response action. As in the camera application mentioned above, after the user clicks the shutter button, the electronic device will display a black flash effect. If the duration of this effect is too short, the electronic device will display the black flash effect multiple times in a short period of time, resulting in a poor user experience.
[0092] In one optional implementation, when the electronic device determines that the execution time of the response action corresponding to the first operation is less than a preset time at the second moment, it 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. 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's execution of the response action of the second operation.
[0093] For example, consider a user's continuous operations in a camera app. Figure 7 This is a schematic diagram illustrating the execution of a response action provided in an embodiment of this application. (Reference) Figure 7 The first and second operations can be user clicks triggered by the camera button. These clicks can include the user triggering the screen and the user raising their hand. The electronic device can acquire image information from the camera and begin image processing the moment the user raises their hand. After detecting the user's first operation, the electronic device can execute the corresponding response action, such as... Figure 7 The diagram shows that the response actions corresponding to the first operation are playing animation and sound effects. When the electronic device detects a second operation triggered by the user, if the execution duration of the response action corresponding to the first operation is less than a 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. For example... Figure 7 In this process, when the execution time of the response action corresponding to the first operation by the electronic device is equal to a preset time, the electronic device ends the execution of the response action corresponding to the first operation and begins the execution of 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 ensures the effectiveness of the electronic device's response action. Similarly, if the execution time of the response action corresponding to the second operation by the electronic device is less than the preset time, and the electronic device detects a third operation triggered by the user (the third operation could be a click on the camera button), the electronic device will continue to execute the response action corresponding to the second operation until its execution time is greater than or equal to the preset time, then it will end the response action corresponding to the second operation and begin executing the response action corresponding to the third operation.
[0094] Furthermore, in some scenarios, if the execution time of the response action corresponding to the first operation by the electronic device is less than a preset time, and 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 one operation from the multiple operations as the second operation. If the execution time of the response action corresponding to the first operation is greater than or equal to the preset time, the electronic device executes the response action corresponding to the second operation, ignoring all other operations from the multiple operations. Optionally, when determining the second operation from the multiple operations, the electronic device can use the operation with the earliest trigger time, or the operation with the latest trigger time, or any operation from the multiple operations as the second operation. This application embodiment does not limit the method of determining the second operation.
[0095] S405: The electronic device ends the response action corresponding to the first operation and executes the response action corresponding to the second operation.
[0096] In one optional implementation, after detecting the second operation triggered by the user at a second time, the electronic device can determine whether the execution duration of the response action corresponding to the first operation at the second time 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.
[0097] For example, consider a user's continuous operations in a camera app. Figure 8 This is a schematic diagram illustrating the execution of a response action provided in an embodiment of this application. (Reference) Figure 8 The first and second operations can be user clicks triggered by the camera button. These clicks can include the user triggering the screen and the user raising their hand. The electronic device can acquire image information from the camera and begin image processing the moment the user raises their hand. After detecting the user's first operation, the electronic device can execute the corresponding response action, such as... Figure 8 The diagram shows that the response action corresponding to the first operation is to play animation and sound effects. When the electronic device detects a 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 a 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. Similarly, if the execution duration of the response action corresponding to the second operation is greater than or equal to the preset duration, and the electronic device detects a third operation triggered by the user, which could 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.
[0098] In some embodiments, the electronic device may determine whether to end the response action based on whether the data processing in the response action corresponding to the user operation is completed, and then execute the response action corresponding to the next operation.
[0099] Figure 9 A flowchart illustrating a response method for continuous operation provided in this application embodiment, the method being executed by an electronic device, the electronic device potentially having... Figure 2 and / or Figure 3 The structure shown. (Reference) Figure 9 The method includes the following steps: S901: The electronic device detects the first operation triggered by the user at the first moment and executes the response action corresponding to the first operation.
[0100] S902: The electronic device detects a second operation triggered by the user at a second moment.
[0101] The second moment is later than the first moment.
[0102] It should be noted that the descriptions of the first operation in S901, the corresponding response action, and the second operation in S902 can be found in [reference needed]. Figure 4 The repeated parts of S401-S402 in the illustrated embodiment will not be described again.
[0103] S903: The electronic device determines whether the data processing in the response action corresponding to the first operation is complete at the second moment. If yes, proceed to S905; otherwise, proceed to S904.
[0104] S904: The electronic device continues to execute the response action corresponding to the first operation until the data processing in the response action corresponding to the first operation is completed.
[0105] S905: The electronic device ends the response action corresponding to the first operation and executes the response action corresponding to the second operation.
[0106] In some embodiments of this application, the electronic device responds to a first operation triggered by a user, and the response action includes data processing. For example, in a camera application, after a user clicks the shutter button, the electronic device needs to perform image processing. After detecting a second operation, when determining 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 complete at the second moment. If the data processing is complete, 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 complete, the electronic device can continue to execute the response action corresponding to the first operation until the data processing is complete, then end the response action corresponding to the first operation and execute the response action corresponding to the second operation.
[0107] For example, taking continuous user operations in a camera app as an example, in some unconventional shooting scenarios, such as when the electronic device is under high load, the current shooting environment is extremely low light, or the camera app's flash function is enabled, the image processing time of the electronic device when processing the image information captured by the camera will be longer than in regular shooting scenarios. In other words, the image output time of the electronic device will be longer. In this case, the electronic device can determine whether to end the current response action based on whether the image output is complete. Specifically, the electronic device detects the first operation triggered by the user, which can be a click operation triggered by the user on the shutter button. The electronic device executes the response action corresponding to the first operation, which includes playing animation effects, playing sound effects, and image processing. The click operation can include the user triggering the screen and the user raising their hand; the electronic device can acquire the image information captured by the camera and begin image processing at the moment the user raises their hand. The electronic device detects the second operation triggered by the user, which can also be a click operation triggered by the user on the shutter button. 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. That is, the electronic device continues to play animation effects and sound effects while continuing to perform image processing until the image processing is complete. Then the electronic device stops executing the response action corresponding to the first operation and begins to execute the response action corresponding to the second operation.
[0108] In some embodiments, the electronic device may 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 the data processing in the response action is completed, and then execute the response action corresponding to the next operation.
[0109] Figure 10 A flowchart illustrating a response method for continuous operation provided in this application embodiment, the method being executed by an electronic device, the electronic device potentially having... Figure 2 and / or Figure 3 The structure shown. (Reference) Figure 10 The method includes the following steps: S1001: The electronic device detects the first operation triggered by the user at the first moment and executes the response action corresponding to the first operation.
[0110] S1002: The electronic device detects a second operation triggered by the user at a second moment.
[0111] S1003: Does the electronic device determine 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 yes, proceed to S1005; otherwise, proceed to S1004.
[0112] S1004: The electronic device continues 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.
[0113] S1005: Does the electronic device determine whether data processing in the response action corresponding to the first operation is complete? If yes, proceed to S1007; otherwise, proceed to S1006.
[0114] It should be noted that if the electronic device determines that 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, 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 complete. If the electronic device determines that the execution duration of the response action corresponding to the first operation at the second moment is less than the preset duration, 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 complete after the electronic device completes S1004.
[0115] S1006: The electronic device continues to execute the response action corresponding to the first operation until the data processing in the response action corresponding to the first operation is completed.
[0116] S1007: 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 this application, when an electronic device responds to a first operation triggered by a user, the response actions include playing animation or sound effects and data processing. For example, in a camera application, after a user clicks the shutter button, the electronic device needs to perform image processing and play animation and sound effects simulating a shutter effect. When the electronic device detects a second operation and determines whether to end the response action corresponding to the first operation, if the electronic device determines that the execution duration of the response action corresponding to the first operation is greater than or equal to a preset duration, the electronic device can also determine whether the data processing in the response action corresponding to the first operation is complete. If the data processing is complete, 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 complete, the electronic device can continue to execute the response action corresponding to the first operation until the data processing is complete, then end the response action corresponding to the first operation and execute the response action corresponding to the second operation.
[0118] For example, taking continuous user operations in a camera application as an example, the electronic device detects the first operation triggered by the user, which could be a click on the shutter button. The electronic device executes the response action corresponding to the first operation, which includes playing animation effects, playing sound effects, and image processing. The click operation can include the user triggering the screen and the user raising their hand; the electronic device can acquire image information from the camera and begin image processing at the moment the user raises their hand. The electronic device detects the second operation triggered by the user, which could also be a click on the shutter 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; that is, the electronic device continues to play animation effects and sound effects while continuing image processing until the image processing is complete. Then, the electronic device ends the execution of the response action corresponding to the first operation and begins the execution of the response action corresponding to the second operation.
[0119] It should be noted that the embodiments of this application... Figure 10 In the illustrated embodiment, the execution order between S1003-S1004 and S1005-S1006 is not limited. That is, in specific implementations, S1003-S1004 can be executed first, followed by S1005-S1006. Specifically, the judgment is made first based on whether the execution time of the response action corresponding to the first operation is greater than a preset time, and then based on whether the data processing in the response action corresponding to the first operation is complete. Alternatively, S1005-S1006 can be executed first, followed by S1003-S1004. That is, the judgment is made first based on whether the data processing in the response action corresponding to the first operation is complete, and then based on whether the execution time of the response action corresponding to the first operation is greater than a preset time. It is understood that the execution order of the above steps will not affect the essential nature of the solution in this application embodiment. Furthermore, Figure 10 The illustrated embodiments can be found in specific embodiments. Figure 4 and Figure 9 The descriptions in the illustrated embodiments are repeated hereafter.
[0120] It should be understood that the above embodiments can be referenced or combined with each other.
[0121] Based on the above embodiments, this application also provides an electronic device, which includes multiple functional modules; the multiple functional modules interact to realize the functions performed by the electronic device in the methods described in the embodiments of this application. For example, [the following is an example of implementation]. Figure 4 , Figure 9 or Figure 10 The illustrated embodiment describes the functions of the electronic device. These multiple functional modules can be implemented using software, hardware, or a combination of both, and can be arbitrarily combined or divided based on specific implementations.
[0122] Based on the above embodiments, this application also 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. When the electronic device is running, the at least one processor executes the functions performed by the electronic device in the various methods described in the embodiments of this application. For example, when executing... Figure 4 , Figure 9 or Figure 10 The electronic device in the illustrated embodiment has the following functions.
[0123] Based on the above embodiments, this application also provides a computer program product containing instructions, which, when run on a computer, causes the computer to execute the methods described in the embodiments of this application.
[0124] Based on the above embodiments, this application also provides a computer-readable storage medium storing a computer program, which, when executed by a computer, causes the computer to perform the methods described in the embodiments of this application.
[0125] Based on the above embodiments, this application also provides a chip for reading computer programs stored in a memory to implement the methods described in the embodiments of this application.
[0126] Based on the above embodiments, this application provides a chip system including a processor for supporting a computer device in implementing the methods described in the embodiments of this application. In one possible design, the chip system further includes a memory for storing necessary programs and data of the computer device. This chip system may be composed of chips or may include chips and other discrete devices.
[0127] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0128] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0129] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0130] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0131] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the scope of protection of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.
Claims
1. A response method for continuous operation, characterized in that, Applied to electronic devices, the method includes: Upon detecting the first action triggered by the user at the first moment, execute the response action corresponding to the first action; A second operation triggered by the user at a second time point is detected, the second time point being later than the first time point; If the execution duration of the response action corresponding to the first operation at the second time point is greater than or equal to the preset duration, the response action corresponding to the first operation ends, 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 duration of the continuous response action corresponding to the first operation.
2. The method as described in claim 1, characterized in that, The method further includes: If the execution time of the response action corresponding to the first operation at the second time point is less than the preset time, the response action corresponding to the first operation continues to be executed 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 a preset time, the response action corresponding to the first operation ends, and the response action corresponding to the second operation is executed.
3. The method as described in claim 2, characterized in that, The method further includes: When the execution time of the response action corresponding to the first operation is less than the preset time, multiple operations triggered by the user are detected; A target operation is determined from the plurality of operations, and the target operation is used as the second operation; Wherein, the target operation is any one of the plurality of operations; or the target operation is the operation with the earliest trigger time among the plurality of operations; or the target operation is the operation with the latest trigger time among the plurality of operations.
4. The method according to any one of claims 1-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 the data processing in the response action corresponding to the first operation has been completed.
5. The method according to any one of claims 1-3, characterized in that, 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: Playback animation; Play sound effects; The image information captured by the camera at the first moment is obtained, and image processing is performed based on the image information.
6. An electronic device, characterized in that, It includes at least one processor coupled to at least one memory, the at least one processor being configured to read a computer program stored in the at least one memory to perform the method as described in any one of claims 1-5.
7. An electronic device, characterized in that, It includes multiple functional modules; the multiple functional modules interact with each other to implement the method as described in any one of claims 1-5.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores instructions that, when executed on a computer, cause the computer to perform the method as described in any one of claims 1-5.
9. A computer program product containing instructions, characterized in that, When the instructions are executed on a computer, the computer causes the computer to perform the method as described in any one of claims 1-5.
Citation Information
Patent Citations
Operation processing method and device
CN106060616A
Touch panel control method and electronic equipment
CN113946208A