WO2024152676A1 - 一种窗口管理方法以及电子设备 - Google Patents
一种窗口管理方法以及电子设备 Download PDFInfo
- Publication number
- WO2024152676A1 WO2024152676A1 PCT/CN2023/129563 CN2023129563W WO2024152676A1 WO 2024152676 A1 WO2024152676 A1 WO 2024152676A1 CN 2023129563 W CN2023129563 W CN 2023129563W WO 2024152676 A1 WO2024152676 A1 WO 2024152676A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- application
- layer
- interface
- electronic device
- window
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
- G06F3/04883—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
Definitions
- the present application relates to the field of electronic devices, and more specifically, to a window management method and an electronic device.
- Electronic devices can respond to the user's operation of starting an application to start the application.
- the electronic device can display the startup interface in the form of animation, including the gradual enlargement of the startup interface, the startup interface from blur to clear, etc.
- GUI graphical user interface
- the electronic device can also respond to the user's operation of exiting the application to exit the application.
- the electronic device can also display the exit interface in the form of animation, including the gradual reduction of the exit interface, the gradual blurring of the exit interface, etc.
- whether the electronic device is smooth depends on whether the electronic device can respond quickly after the user's operation, that is, the chirality of the electronic device. At present, the chirality of electronic devices is poor, resulting in a decline in user experience.
- the present application provides a window management and electronic device, which can quickly respond to user operations, improve the tracking performance of the electronic device, and enhance the user experience.
- a window management method which is applied to an electronic device, and the method includes: in response to a first operation of a user starting a first application, creating a first window, the first window being a preview window of the first application, the first window including a first layer and a second layer, the first layer being used for animation operation, the first layer being mounted on a screen node, and the second layer being mounted on the first layer; drawing a first startup interface on the second layer; displaying the first startup interface; loading an application process of the first application to create a third layer and start the first application; using the third layer to replace the second layer to display the first interface of the first application, wherein the first interface of the first application is drawn on the third layer.
- the electronic device when the electronic device starts the first application, it can only create one window.
- the electronic device can first display the first startup interface through the window, and then display the first interface of the first application by replacing the layer after the application process of the first application is loaded. There is no need to create a new window, which can reduce resource consumption, increase the startup speed of the application, and enhance the user experience.
- the second layer and the third layer are mounted on the first layer, the second layer and the third layer can inherit the animation properties of the first layer. Therefore, when the electronic device switches from the first startup interface to the first interface of the first application, it can only modify the animation properties of the first layer without perceiving the changes of the second layer and the third layer.
- a second operation of the user to exit the first application is detected, and the method also includes: drawing a first exit interface on the second layer; displaying the first exit interface; caching the second operation; and after loading the application process of the first application, executing the second operation to exit the first application and hide the first window.
- the electronic device can first display the first exit interface and cache the user's operation, and then execute the operation of exiting the first application after the first launched application is executed. Since the electronic device's display of the first exit interface is no longer coupled with the life cycle of the application, the first exit interface is no longer lost, which can improve the hand tracking performance of the electronic device and enhance the user experience.
- the second operation is an operation of closing the first application.
- a third operation of the user starting the first application is detected, and the method further includes: creating a second window, the second window being a preview window of the first application, the second window including a fourth layer and a fifth layer, the fourth layer being used for animation operations, the fourth layer being mounted on the screen node, and the fifth layer being mounted on the fourth layer; drawing the first startup interface on the fifth layer; displaying the first startup interface; caching the third operation; and after closing the first application, executing the third operation to create a A sixth layer is created and the first application is started; the fifth layer is replaced by the sixth layer to display the first interface of the first application, wherein the first interface of the first application is drawn on the sixth layer.
- the electronic device may first display the first launch interface and cache the third operation of the user. After closing the application, the third operation of launching the first application may be executed. This avoids the problem of the final state of the first application being inconsistent with the third operation of the user due to the electronic device discarding the third operation, and can improve the tracking performance of the electronic device and enhance the user experience.
- the second operation is an operation of returning the first application to the background.
- a third operation of the user starting the first application is detected. The method includes: displaying the first interface of the first application; caching the third operation; and after returning the first application to the background, executing the third operation to start the first application.
- the electronic device may first display the first interface of the first application and cache the third operation of the user. After the first application is put into the background, the third operation of starting the first application may be executed. This avoids the problem of the final state of the first application being inconsistent with the third operation of the user due to the electronic device discarding the third operation, and can improve the hand tracking performance of the electronic device and enhance the user experience.
- the second operation is an operation of exiting the first application to the background, and during the process of exiting the first application to the background, a third operation of the user initiating the first application is detected, and the method also includes: displaying the first interface of the first application; caching the third operation; while the electronic device is still in the process of exiting the application to the background, a fourth operation of the user exiting the first application to the background is detected again, and in response to the fourth operation, the first exit interface is drawn on the third layer; the first exit interface is displayed; the fourth operation is cached; after exiting the first application to the background, the user's operation is determined to be the fourth operation based on the order in which the user performs the third operation and the fourth operation; and the fourth operation is discarded.
- the electronic device if the electronic device detects that the user has started the third operation of the first application in the process of putting the first application into the background, the first interface of the first application can be displayed in an animated form and the third operation of the user can be cached. If the fourth operation of the user putting the first application into the background is detected and the electronic device is still in the process of putting the first application into the background, the electronic device can display the first exit interface again and cache the fourth operation, which can improve the hand tracking performance of the electronic device and enhance the user experience.
- the fourth operation is determined as the user's operation, and because the fourth operation corresponds to the state of the first application, the fourth operation can be discarded, ensuring that the state of the first application corresponds to the user's latest operation.
- the second operation is an operation of retiring the first application to the background, and during the process of retiring the first application to the background, a third operation of the user starting the first application is detected, and the method also includes: displaying the first interface of the first application; caching the third operation; while the electronic device is still in the process of retiring the first application to the background, detecting a fifth operation of the user closing the first application, and in response to the fifth operation, replacing the third layer with the second layer; drawing the first exit interface on the second layer; displaying the first exit interface; caching the fifth operation; after retiring the first application to the background, determining that the user's operation is the fifth operation based on the order in which the user performs the third operation and the fifth operation; and executing the fifth operation to close the first application.
- the electronic device detects that the user starts the third operation of the first application in the process of putting the first application into the background, the first interface of the first application can be displayed in an animated form and the third operation of the user can be cached. If the fifth operation of the user closing the first application is detected and the electronic device is still in the process of putting the first application into the background, the electronic device can display the first exit interface again and cache the fifth operation, which can improve the hand tracking performance of the electronic device and enhance the user experience.
- the fifth operation is determined as the user's operation, and because the fifth operation does not correspond to the state of the first application, the fifth operation can be executed, ensuring that the state of the first application corresponds to the user's latest operation.
- the second operation is an operation of closing the first application
- a third operation of the user starting the first application is detected
- the method also includes: creating a second window, the second window is a preview window of the first application, the second window includes a fourth layer and a fifth layer, the fourth layer is used for animation operations, the fourth layer is mounted on the screen node, and the fifth layer is mounted on the fourth layer; drawing the first startup interface on the fifth layer; displaying the first startup interface; caching the third operation; while the electronic device is still in the process of closing the first application, the fifth operation of the user closing the first application is detected again, and in response to the fifth operation, the first exit interface is drawn on the fifth layer; the first exit interface is displayed; caching the fifth operation; after closing the first application, determining that the user's operation is the fifth operation according to the order in which the user performs the third operation and the fifth operation; and discarding the fifth operation.
- the electronic device if the electronic device detects that the user starts the third operation of the first application during the process of closing the first application, If the electronic device detects the user's fifth operation of closing the first application and the electronic device is still in the process of closing the first application, the electronic device can display the first exit interface and cache the fifth operation, which can improve the hand tracking of the electronic device and enhance the user experience.
- the fifth operation is determined as the user's operation, and because the fifth operation corresponds to the state of the first application, the fifth operation can be discarded, ensuring that the state of the first application corresponds to the user's latest operation.
- the second operation is an operation of returning the first application to the background.
- a sixth operation of the user starting the second application is detected, and the method also includes: creating a third window, the third window being a preview window of the second application, the third window including a seventh layer and an eighth layer, the seventh layer being used for animation operations, the seventh layer being mounted on the screen node, and the eighth layer being mounted on the seventh layer; drawing the second startup interface on the eighth layer; displaying the second startup interface; caching the sixth operation; after returning the first application to the background, executing the sixth operation to create a ninth layer and start the second application; using the ninth layer to replace the eighth layer to display the first interface of the second application, wherein the first interface of the second application is drawn on the ninth layer.
- a second operation of the user to exit the first application is detected, and the method also includes: drawing a first exit interface on the second layer; displaying the first exit interface; caching the second operation; while the electronic device is still in the process of loading the application process of the first application, detecting a third operation of the user to start the first application, and in response to the third operation, drawing the first startup interface on the second layer; displaying the first startup interface; caching the third operation; after loading the application process of the first application, determining that the user's operation is the third operation based on the order in which the user performs the second operation and the third operation; and discarding the third operation.
- the electronic device detects the user's second operation of exiting the first application during the process of loading the application process, the first exit interface can be displayed first and the user's third operation can be cached. If the fourth operation of the user exiting the first application is detected and the electronic device is still in the process of exiting the first application, the electronic device can display the first exit interface again and cache the fourth operation, which can improve the hand tracking performance of the electronic device and enhance the user experience. In addition, after the first application is exited, the fourth operation is determined as the user's operation, and since the fourth operation corresponds to the state of the first application, the fourth operation can be discarded, ensuring that the state of the application corresponds to the user's latest operation.
- the method also includes: replacing the third layer with the second layer; drawing a first exit interface on the second layer; displaying the first exit interface and closing the application.
- the electronic device when closing an application, can use the second layer to replace the third layer and draw the first exit interface on the second layer, thereby decoupling the application process from the first exit interface. Even if the application process is closed in advance, the first exit interface can still maintain its integrity and will not disappear suddenly, thereby improving the user experience.
- the method also includes: drawing a first exit interface on the third layer; displaying the exit interface and returning the application to the background.
- replacing the second layer with the third layer includes: after drawing the first interface of the application on the third layer, replacing the second layer with the third layer.
- the first exit interface is a screenshot or a preset interface of the second interface of the application.
- the second aspect is an electronic device of an embodiment of the present application, which includes modules/units for executing the above aspects or any possible design method of the above aspects; these modules/units can be implemented by hardware, or the corresponding software can be implemented by hardware.
- the third aspect is a chip of an embodiment of the present application, which is coupled to a memory in an electronic device and is used to call a computer program stored in the memory and execute the above-mentioned aspects of the embodiment of the present application and any possible design of the above-mentioned aspects of the embodiment of the present application; "coupling" in the embodiment of the present application refers to the direct or indirect combination of two components with each other.
- a computer-readable storage medium includes a computer program, and when the computer program is executed on an electronic device, the electronic device executes a technology as in the above aspect and any possible design of the above aspect. plan.
- the fifth aspect is a computer program according to an embodiment of the present application, which includes instructions.
- the instructions When the instructions are executed on a computer, the computer executes a technical solution such as the above aspect and any possible design of the above aspect.
- the sixth aspect is an electronic device of an embodiment of the present application, which includes one or more processors; one or more memories; the one or more memories store one or more computer programs, and the one or more computer programs include instructions.
- the instructions are executed by the one or more processors, the above aspects or any possible implementation method of the above aspects is executed.
- FIG1 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
- FIG. 2 is a software structure block diagram of an electronic device provided in an embodiment of the present application.
- FIG. 3 is a schematic flow chart of launching and exiting an application program in an electronic device.
- FIG. 4 is a schematic diagram of an electronic device creating a first window and a second window.
- FIG5 is a schematic flow chart of a window management method provided in an embodiment of the present application.
- FIG. 6 is a schematic diagram of the first window layer changes when the electronic device provided by an embodiment of the present application starts and closes an application.
- FIG. 7 is a schematic diagram of the internal data flow of a window management method provided in an embodiment of the present application.
- FIG8 is a schematic diagram of internal data flow of another window management method provided in an embodiment of the present application.
- FIG. 9 is a schematic diagram of internal data flow of another window management method provided in an embodiment of the present application.
- FIG. 10 is a schematic diagram of internal data flow of another window management method provided in an embodiment of the present application.
- FIG. 11 is a schematic diagram of internal data flow of another window management method provided in an embodiment of the present application.
- FIG. 12 is a schematic diagram of internal data flow of another window management method provided in an embodiment of the present application.
- FIG. 13 is a schematic diagram of internal data flow of another window management method provided in an embodiment of the present application.
- FIG. 14 is a schematic diagram of internal data flow of another window management method provided in an embodiment of the present application.
- FIG. 15 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
- a and/or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural.
- the character "/” generally indicates that the objects associated before and after are in an "or” relationship.
- references to "one embodiment” or “some embodiments” etc. described in this specification mean that a particular feature, structure or characteristic described in conjunction with the embodiment is included in one or more embodiments of the present application.
- the phrases “in one embodiment”, “in some embodiments”, “in some other embodiments”, “in some other embodiments”, etc. appearing in different places in this specification do not necessarily all refer to the same embodiment, but mean “one or more but not all embodiments", unless otherwise specifically emphasized in other ways.
- the terms “including”, “comprising”, “having” and their variations all mean “including but not limited to”, unless otherwise specifically emphasized in other ways.
- the electronic device may be a portable electronic device that also includes other functions such as a personal digital assistant and/or a music player function, such as a mobile phone, a tablet computer, a wearable electronic device with wireless communication function (such as a smart watch), etc.
- portable electronic devices include but are not limited to devices equipped with Or a portable electronic device with other operating systems.
- the portable electronic device may also be other portable electronic devices, such as a laptop computer, etc. It should also be understood that in some other embodiments, the electronic device may not be a portable electronic device, but a desktop computer.
- FIG1 shows a schematic diagram of the structure of an electronic device 100.
- 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 compass 190, a motor 191, and a pointer.
- SIM subscriber identification module
- the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100.
- the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently.
- the components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
- the processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc.
- different processing units may be independent components or integrated in one or more processors.
- the electronic device 100 may also include one or more processors 110.
- the controller may generate an operation control signal according to the instruction opcode and the timing signal to complete the control of fetching and executing instructions.
- a memory may also be set in the processor 110 for storing instructions and data.
- the memory in the processor 110 may be a high-speed cache memory.
- the memory may save instructions or data that the processor 110 has just used or circulated. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the electronic device 100 in processing data or executing instructions.
- the processor 110 may include one or more interfaces.
- the interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input/output (GPIO) interface, a SIM card interface, and/or a USB interface.
- the USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc.
- the USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and a peripheral device.
- the USB interface 130 can also be used to connect headphones to play audio through the headphones.
- the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 100.
- the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
- 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 supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160.
- the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc.
- the power management module 141 can also be set in the processor 110.
- the power management module 141 and the charging management module 140 can also be set in the same device.
- the wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the 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 the utilization of antennas.
- antenna 1 can be reused as a diversity antenna for a wireless local area network.
- the antenna can be used in combination with a tuning switch.
- the mobile communication module 150 can provide solutions for wireless communications including 2G/3G/4G/5G, etc., applied to the electronic device 100.
- the mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc.
- the mobile communication module 150 may receive electromagnetic waves from the antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.
- the mobile communication module 150 may also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1.
- at least some of the functional modules of the mobile communication module 150 may be arranged in the processor 110.
- at least some of the functional modules of the mobile communication module 150 may be arranged in the same device as at least some of the modules of the processor 110.
- the wireless communication module 160 can provide wireless local area networks (WLANs) for use in the electronic device 100.
- the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
- the wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110.
- the wireless communication module 160 may also receive the signal to be sent from the processor 110, modulate the frequency of the signal, amplify the signal, and convert it into electromagnetic waves for radiation through the antenna 2.
- the electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor.
- the GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor.
- the GPU is used to perform mathematical and geometric calculations for graphics rendering.
- the processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
- the display screen 194 is used to display images, videos, etc.
- the display screen 194 includes a display panel.
- the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diodes (QLED), etc.
- the electronic device 100 may include one or more display screens 194.
- the display screen 194 in FIG. 1 can be bent.
- the display screen 194 can be bent, which means that the display screen can be bent to any angle at any position and can be maintained at the angle.
- the display screen 194 can be folded in half from the middle to the left or right. It can also be folded in half from the middle to the top or bottom.
- the electronic device 100 can realize the shooting function through the ISP, the camera 193, the video codec, the GPU, the display screen 194 and the application processor.
- 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.
- CMOS complementary metal oxide semiconductor
- the photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal.
- the ISP outputs the digital image signal to the DSP for processing.
- the DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format.
- the electronic device 100 may include one or more cameras 193.
- the digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
- NPU is a neural network (NN) computing processor.
- NN neural network
- applications such as intelligent cognition of electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.
- 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 100.
- the external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music and videos can be stored in the external memory card.
- the internal memory 121 can be used to store one or more computer programs, which include instructions.
- the processor 110 can run the above instructions stored in the internal memory 121, so that the electronic device 100 executes the methods provided in some embodiments of the present application, as well as various applications and data processing.
- the internal memory 121 may include a program storage area and a data storage area.
- the program storage area may store an operating system; the program storage area may also store one or more applications (such as a gallery, contacts, etc.).
- the data storage area can store data (such as photos, contacts, etc.) created during the use of the electronic device 100.
- the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more disk storage components, a flash memory component, a universal flash storage (UFS), etc.
- the processor 110 can enable the electronic device 100 to execute the method provided in the embodiment of the present application, as well as other applications and data processing by running instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor 110.
- the electronic device 100 can implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, and an application processor. For example, music playback, recording, etc.
- the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
- the pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal.
- the pressure sensor 180A can be set on the display screen 194.
- the capacitive pressure sensor can be a parallel plate including at least two conductive materials.
- the electronic device 100 determines the intensity of the pressure according to the change in capacitance.
- the electronic device 100 detects the touch operation intensity according to the pressure sensor 180A.
- the electronic device 100 can also calculate the touch position according to the detection signal of the pressure sensor 180A.
- touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
- the gyro sensor 180B can be used to determine the motion posture of the electronic device 100.
- the angular velocity of the electronic device 100 around three axes i.e., X, Y, and Z axes
- the gyro sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyro sensor 180B detects the angle of the electronic device 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse movement to achieve anti-shake.
- the gyro sensor 180B can also be used for navigation and somatosensory game scenes.
- the acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in all directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device and is applied to applications such as horizontal and vertical screen switching and pedometers.
- the ambient light sensor 180L is used to sense the brightness of the ambient light.
- the electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness.
- the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
- the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches.
- the fingerprint sensor 180H is used to collect fingerprints.
- the electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.
- the temperature sensor 180J is used to detect temperature.
- the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 reduces the performance of a processor located near the temperature sensor 180J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 due to low temperature. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
- the touch sensor 180K is also called a "touch panel”.
- the touch sensor 180K can be set on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen”.
- the touch sensor 180K is used to detect touch operations acting on or near it.
- the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
- Visual output related to the touch operation can be provided through the display screen 194.
- the touch sensor 180K can also be set on the surface of the electronic device 100, which is different from the position of the display screen 194.
- FIG2 is a software structure diagram of the electronic device 100 of an embodiment of the present application.
- the layered architecture divides the software into several layers, each layer has a clear role and division of labor.
- the layers communicate with each other through software interfaces.
- the Android system is divided into four layers, from top to bottom, namely, the application layer, the application framework layer, the Android runtime (Android runtime) and the system library, and the kernel layer.
- the application layer can include a series of application packages.
- the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and short message.
- the application framework layer provides application programming interface (API) and programming framework for applications in the application layer.
- API application programming interface
- the application framework layer includes some predefined functions.
- the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.
- the window manager is used to manage window programs.
- the window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc.
- Content providers are used to store and retrieve data and make it accessible to applications.
- This data can include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
- the view system includes visual controls, such as controls for displaying text, controls for displaying images, etc.
- the view system can be used to build applications.
- a display interface can be composed of one or more views.
- a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
- the phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including connecting, hanging up, etc.).
- the resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
- the notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc.
- the notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is prompted in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.
- the system library can include multiple functional modules, such as surface manager, media libraries, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
- functional modules such as surface manager, media libraries, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
- the surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
- the media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc.
- the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG and PNG, etc.
- the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis and layer processing.
- a 2D graphics engine is a drawing engine for 2D drawings.
- 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.
- Electronic devices can respond to the user's operation of starting an application to start the application.
- the electronic device can display the startup interface in the form of animation, including the startup interface gradually enlarging, the startup interface from blurry to clear, etc.
- GUI graphical user interface
- the electronic device can also respond to the user's operation of exiting the application to exit the application.
- the electronic device can also display the exit interface in the form of animation, including the gradual reduction of the exit interface, the gradual blurring of the exit interface, etc.
- whether the electronic device is smooth depends on whether the electronic device can respond quickly after the user's operation, that is, the hand-tracking of the electronic device. The following describes the process when the electronic device starts or exits the application in conjunction with Figures 3 and 4.
- FIG. 3 shows a schematic flow chart of launching and exiting an application program in an electronic device.
- the electronic device detects a user's operation of launching an application.
- the operation of a user starting an application program may be that the user clicks an application icon corresponding to the application program on the desktop.
- the operation of the user starting the application program may be a voice command of the user.
- the operation of the user launching the application may be a preset gesture of the user, and the preset gesture may be an air gesture.
- the operation of the user starting the application program may be an operation of the user pressing a physical button.
- S302 The electronic device creates a first window.
- the electronic device can create a first window, which is a preview window of the application and can also be called a launch window.
- the first window includes a first layer and a second layer, wherein the first layer is mounted on a screen node (displaynode) for animation operation, and the second layer is mounted on the first layer for drawing the launch interface of the application.
- the first layer can be the leash window and the second layer can be the starting window.
- first layer and the second layer may also be referred to as a first rendering node (surface node) and a second rendering node.
- S303 The electronic device draws a startup interface on the second layer to display the startup interface.
- the electronic device After the electronic device completes drawing the startup interface on the second layer, since the second layer is mounted on the first layer, and the first layer is mounted on the screen node and used for animation operations, the electronic device can display the startup interface in the form of animation.
- the startup interface can also be called a preview screen, startup interface, preview interface, etc.
- the electronic device may gradually enlarge the startup interface until it fills the entire screen, and gradually reduce the transparency of the startup interface during the process of enlarging the startup interface.
- S305 The electronic device destroys the first window and creates a second window.
- the electronic device After the electronic device loads the application process, it can destroy the first window and create a second window.
- the second window is the window corresponding to the application.
- the second window is used to display the interface of the application.
- the second window includes a third layer, which is mounted on the screen node and is used to draw the interface of the application.
- S306 The electronic device detects an operation of the user to exit the application program, and in response to the operation, draws an exit interface on the third layer.
- the electronic device exiting the application includes the electronic device running the application in the background or the electronic device closing the application.
- the user's operation of exiting the application may be that the user clicks a close control on the interface of the application.
- the user's operation of exiting the application program may be a voice command of the user.
- the operation of the user to exit the application may be a preset gesture of the user, and the preset gesture may be an air gesture.
- the electronic device may display the exit interface in the form of animation.
- the application can be exited.
- FIG. 4 is a schematic diagram showing an electronic device creating a first window and a second window.
- the electronic device in response to the user's operation of starting an application, creates a first window, which includes a first layer and a second layer. After the electronic device loads the application, the first window can be destroyed and a second window can be created. The first layer of the first window and the third layer of the second window can both be mounted on the screen node. In response to the user's operation of exiting the application, the electronic device can draw an exit interface on the third layer of the second window.
- the application life cycle is coupled with the window animation. If the user restarts the application, the electronic device needs to create the first window again, and when the electronic device exits the application, it needs to draw the exit interface in the second window.
- the second window is created after the electronic device loads the application process. In some scenarios, if the electronic device has not completed loading the application process, and the user executes the operation of exiting the application, in other words, the electronic device has not created the second window, and the user executes the operation of exiting the application, then the electronic device cannot draw the exit interface, resulting in poor hand tracking of the electronic device and reducing the user experience.
- the application life cycle is blocked by the window animation. If the electronic device does not completely exit the application, and the user executes the operation of starting the application, the electronic device may not respond to the user's operation this time, reducing the user experience.
- an embodiment of the present application provides a window management method, which can decouple the application startup interface and exit interface from the application life cycle, improve the tracking performance of the electronic device, and help improve the user experience.
- FIG. 5 shows a schematic flow chart of a window management method 500 provided in an embodiment of the present application. As shown in FIG. 5 , the method 500 includes:
- S501 In response to a first operation of a user starting a first application, the electronic device creates a first window.
- the electronic device can create a first window in response to detecting the operation of the user starting the first application, and the first window is a preview window of the first application.
- the first window includes a first layer and a second layer, wherein the first layer is a root layer for animation operation, the first layer is mounted on the screen node, and the second layer is mounted on the first layer.
- the operation of the user starting the first application may be that the user clicks on an application icon corresponding to the first application on the desktop.
- the operation of the user starting the first application may be a voice command of the user.
- the operation of the user launching the first application may be a preset gesture of the user, and the preset gesture may be an air gesture.
- the operation of the user starting the first application may be an operation of the user pressing a physical button.
- S502 The electronic device draws a first startup interface on the second layer.
- S503 The electronic device displays the first startup interface.
- the electronic device can transfer the first layer to the animation module to display the first startup interface drawn on the second layer in an animated form. Since the electronic device displays the first startup interface in an animated form, the electronic device displaying the first startup interface can also be referred to as the electronic device playing the first startup animation.
- the electronic device may gradually enlarge the first startup interface until the screen is fully covered, and gradually reduce the transparency of the first startup interface during the process of enlarging the first startup interface.
- the electronic device loads the application process of the first application to create a third layer and start the first application.
- the electronic device can load the application process corresponding to the first application, and when the application process of the first application is loaded, the third layer can be created.
- the electronic device can execute S502 and S504 simultaneously, but because the time it takes for the electronic device to load the application process of the first application is longer than the time it takes for the electronic device to draw the first startup interface on the second layer, the electronic device is still executing S504 when completing S502.
- the electronic device may execute S502 first, and then execute S504.
- S505 The electronic device replaces the second layer with the third layer.
- a third layer may be created, on which the first interface of the first application is drawn, and the third layer is mounted on the first layer.
- the electronic device creates a third layer and replaces the second layer after drawing the first interface of the first application on the third layer.
- the electronic device may first replace the second layer with the third layer, and after completing the layer replacement, draw the first interface of the application on the third layer.
- the first layer can be transferred to the animation module for animation display of the first interface of the first application program drawn on the third layer.
- the electronic device when the electronic device starts the first application, it can only create one window.
- the electronic device can first display the first startup interface through the window, and then display the first interface of the first application by replacing the layer after the application process of the first application is loaded. There is no need to create a new window, which can reduce resource consumption, increase the startup speed of the application, and enhance the user experience.
- the second layer and the third layer are mounted on the first layer, the second layer and the third layer can inherit the animation properties of the first layer. Therefore, when the electronic device switches from the first startup interface to the first interface of the first application, it can only modify the animation properties of the first layer without perceiving the changes of the second layer and the third layer.
- the method 500 further includes:
- the operation of the user to withdraw the first application to the background may be an operation of the user sliding in a first preset direction.
- the user's operation of retiring the first application to the background may be an operation of the user pressing a physical case.
- the first exit interface may be a preset screen, or may be a second interface of the first application, where the second interface is the interface corresponding to the first application when the user executes an operation to close the first application.
- the electronic device displays a first exit interface.
- the first layer can be transferred to the animation module to animate the first exit interface drawn on the third layer.
- the transparency of the first exit interface may gradually increase until the electronic device displays the desktop, that is, after the electronic device plays the first exit animation, the electronic device may display the desktop.
- the method further includes:
- the electronic device replaces the third layer with the second layer
- the electronic device draws an exit interface on the second layer
- the electronic device displays the first exit interface
- the user's operation of closing the first application may be an operation of sliding in the second preset direction.
- the user's operation of closing the first application may be an operation of the user clicking a close control.
- the electronic device may transfer the first layer to the animation module to animate the first exit interface drawn on the second layer.
- the first interface of the first application and the second interface of the first application may be the same interface.
- the electronic device displaying the first exit screen may also be referred to as the electronic device playing the first exit animation.
- exiting an application to the background can be understood as the application exiting the foreground and running in the background
- closing an application can be understood as the application exiting the foreground and not running in the background
- the method 500 further includes: after displaying the first exit interface, the electronic device sets the state of the first window to a hidden state.
- the second layer when the electronic device closes the first application, the second layer can be used to replace the third layer, and the first exit interface can be drawn on the second layer, thereby decoupling the application process from the first exit interface. Even if the application process is closed in advance, the first exit interface can still maintain its integrity and will not disappear suddenly, thereby improving the user experience.
- FIG6 is a schematic diagram showing the changes in the first window layer when the electronic device provided by an embodiment of the present application starts and closes an application.
- the electronic device creates a first window in response to the user's operation of starting the application, and the first window includes a first layer and a second layer.
- the electronic device can draw a startup interface on the second layer, and the first layer is used to display it on the screen, so that the electronic device can display the startup interface.
- a third layer can be created and the third layer can be used to replace the second layer.
- the electronic device can draw the interface of the application on the third layer, and the first layer is used to display it on the screen, so that the electronic device can display the interface of the application.
- the second layer can be used to replace the third layer, and the exit interface can be drawn on the second layer, and the first layer can be used to display it on the screen.
- the electronic device can respond to the user's operation of starting and/or exiting an application during the process of loading an application process (i.e., starting an application) and during the process of exiting an application (i.e., the process of moving the application to the background and the process of closing the application), which will be described in detail below.
- the method 500 further includes:
- the second operation is performed to exit the application.
- the second operation may be an operation of the user sliding in a preset direction.
- the second operation may be sliding in the first preset direction.
- the second operation may be sliding in the second preset direction.
- the electronic device When the electronic device is loading an application process, it detects the user's second operation to exit the application. The electronic device can draw a first exit interface on the second layer and display it on the first layer, so that the electronic device can display the first exit interface. Since the electronic device is in the process of loading the application process at this time, the electronic device can cache the second operation to exit the first application. After the electronic device completes loading the application process, the state of the application is the startup state, which does not correspond to the cached second operation. The electronic device can then execute the second operation to exit the application.
- the electronic device displays the first exit interface in the following possible situations:
- the electronic device After the electronic device displays the first startup interface (ie, the startup animation has been played), the electronic device detects a second operation, and the electronic device may draw a first exit interface on the second layer and display the first exit interface.
- the electronic device When the electronic device is displaying the first startup interface (ie, the startup animation is playing), the electronic device detects a second operation, and the electronic device can draw the first exit interface on the second layer to switch the startup interface being displayed.
- the electronic device When the electronic device is displaying the first startup interface (i.e., playing the startup animation), the electronic device detects the second operation, then the electronic device After the device displays the first startup interface (ie, the startup animation has been played), the device may draw the first exit interface on the second layer to display the first exit interface.
- the electronic device can first display the first exit interface and cache the user's operation, and then execute the operation of exiting the first application after the first launched application is executed. Since the electronic device's display of the first exit interface is no longer coupled with the life cycle of the application, the first exit interface is no longer lost, which can improve the hand tracking performance of the electronic device and enhance the user experience.
- the second operation is an operation of closing the first application
- the process of exiting the first application is the process of closing the first application. If the electronic device detects a third operation of the user starting the application during the process of closing the first application in the above embodiment, the method 500 further includes:
- the second window is a preview window of the first application, the second window includes a fourth layer and a fifth layer, the fourth layer is used for animation operation, the fourth layer is mounted on the screen node, and the fifth layer is mounted on the fourth layer;
- the fifth layer is replaced by the sixth layer to display the first interface of the first application, and the first interface of the first application is drawn on the sixth layer.
- the third operation may be an operation in which the user clicks on an application icon.
- the electronic device When closing an application, the electronic device detects the user's operation of launching the application, and the electronic device creates a second window and draws the first startup interface in the second window to display the first startup interface. Since the electronic device is in the process of closing the first application at this time, the electronic device can cache the third operation of launching the first application. After the electronic device completes closing the first application, the state of the first application is a closed state, which does not correspond to the cached third operation. The electronic device can then execute the third operation to launch the application and create a sixth layer to replace the fifth layer in the second window to create and display the first interface of the first application.
- the electronic device may first display the first launch interface and cache the third operation of the user. After closing the application, the third operation of launching the first application may be executed. This avoids the problem of the final state of the first application being inconsistent with the third operation of the user due to the electronic device discarding the third operation, and can improve the tracking performance of the electronic device and enhance the user experience.
- the second operation is an operation of exiting the first application program to the background
- the process of exiting the first application program is the process of exiting the first application program to the background. If the electronic device detects a third operation of the user starting the application program during the process of exiting the first application program to the background in the above embodiment, the method 500 further includes:
- the electronic device When the electronic device is dismissing the first application, it detects the user's operation of launching the first application. The electronic device can display the first interface of the first application in the form of an animation. Since the electronic device is in the process of dismissing the first application at this time, the electronic device can cache the third operation of launching the first application. After the electronic device completes dismissing the first application, the state of the first application is the dismissed state, which does not correspond to the cached third operation. The electronic device can then execute the third operation to launch the application.
- the electronic device may first display the first interface of the first application and cache the third operation of the user. After the first application is put into the background, the third operation of starting the first application may be executed. This avoids the problem of the final state of the first application being inconsistent with the third operation of the user due to the electronic device discarding the third operation, and can improve the hand tracking performance of the electronic device and enhance the user experience.
- the second operation is an operation of exiting the first application program to the background
- the process of exiting the first application program is the process of exiting the first application program to the background. If the electronic device detects a third operation of the user starting the application program during the process of exiting the first application program to the background in the above embodiment, the method 500 further includes:
- the fourth operation is discarded.
- the electronic device When the electronic device is dismissing the first application, it detects the user's third operation of launching the first application, and the electronic device can display the first interface of the first application. Since the electronic device is in the process of dismissing the first application, the electronic device can first cache the third operation of launching the first application. The electronic device is in the process of dismissing the first application, and the electronic device detects the user's fourth operation of dismissing the first application. The electronic device can draw the first exit interface on the third layer, so that the electronic device can display the first exit interface. After the electronic device completes dismissing the first application, the state of the first application is the dismissed state.
- the electronic device has a total of 2 operations cached, namely the third operation and the fourth operation, of which the fourth operation is the latest operation, and the fourth operation is determined to be the user's operation. Since the fourth operation corresponds to the state of the first application, the electronic device can discard the fourth operation.
- the electronic device if the electronic device detects that the user has started the third operation of the first application in the process of putting the first application into the background, the first interface of the first application can be displayed in an animated form and the third operation of the user can be cached. If the fourth operation of the user putting the first application into the background is detected and the electronic device is still in the process of putting the first application into the background, the electronic device can display the first exit interface again and cache the fourth operation, which can improve the hand tracking performance of the electronic device and enhance the user experience.
- the fourth operation is determined as the user's operation, and because the fourth operation corresponds to the state of the first application, the fourth operation can be discarded, ensuring that the state of the first application corresponds to the user's latest operation.
- the second operation is an operation of exiting the first application program to the background
- the process of exiting the first application program is the process of exiting the first application program to the background. If the electronic device detects a third operation of the user starting the application program during the process of exiting the first application program to the background in the above embodiment, the method 500 further includes:
- a fifth operation is performed to close the first application.
- the electronic device When the electronic device is dismissing the first application, it detects the user's third operation of launching the application, and the electronic device can display the first interface of the first application. Since the electronic device is in the process of dismissing the first application, the electronic device can first cache the third operation of launching the first application. The electronic device is in the process of dismissing the first application, and the electronic device detects the user's fifth operation of closing the first application. The electronic device can replace the third layer with the second layer, and draw the first exit interface on the second layer, so that the electronic device can display the first exit interface. After the electronic device completes dismissing the first application, the state of the first application is the dismissed state.
- the electronic device detects that the user starts the third operation of the first application in the process of putting the first application into the background, the first interface of the first application can be displayed in an animated form and the third operation of the user can be cached. If the fifth operation of the user closing the first application is detected and the electronic device is still in the process of putting the first application into the background, the electronic device can display the first exit interface again and cache the fifth operation, which can improve the hand tracking performance of the electronic device and enhance the user experience.
- the fifth operation is determined as the user's operation, and because the fifth operation does not correspond to the state of the first application, the fifth operation can be executed, ensuring that the state of the first application corresponds to the user's latest operation.
- the second operation is an operation of exiting the first application program to the background
- the process of exiting the first application program is the process of exiting the first application program to the background. If the electronic device detects a sixth operation of the user starting the second application program during the process of exiting the first application program to the background in the above embodiment, the method 500 further includes:
- the third window being a preview window of the second application, the third window comprising a seventh layer and an eighth layer, the seventh layer being used for animation operation, the seventh layer being mounted on a screen node, and the eighth layer being mounted on the seventh layer;
- a sixth operation is performed to create a ninth layer and start the second application
- the eighth layer is replaced by the ninth layer to display the first interface of the second application, wherein the first interface of the second application is drawn on the ninth layer.
- the electronic device When the electronic device dismisses the first application, it detects the sixth operation of the user starting the second application.
- the electronic device can create a third window and draw a second startup interface in the third window to display the second startup interface.
- the second startup interface is the startup interface corresponding to the second application. Since the electronic device is in the process of dismissing the first application, the electronic device can first cache the sixth operation of starting the second application. After the electronic device completes dismissing the first application, it executes the sixth operation to create the ninth layer and start the second application, and then uses the ninth layer to replace the eighth layer.
- the ninth layer is drawn with the first interface of the second application, so that the electronic device can display the first interface of the second application.
- the second startup interface may be displayed in an animated form and the user's sixth operation may be cached.
- the sixth operation may be executed, thereby ensuring that the sixth operation is executed.
- the second operation is an operation of closing the first application
- the process of exiting the first application is the process of closing the first application. If the electronic device detects that the user starts the first application during the process of closing the first application in the above embodiment, the method 500 further includes:
- a second window is created, where the second window is a preview window of the first application.
- the third window includes a fourth layer and a fifth layer.
- the fourth layer is used for animation operation.
- the fourth layer is mounted on the screen node, and the fifth layer is mounted on the fourth layer.
- the fifth operation is discarded.
- the electronic device When the electronic device is closing the first application, it detects the user's third operation of starting the first application.
- the electronic device can create a second window and draw the first startup interface in the second window to display the first startup interface. Since the electronic device is in the process of closing the first application at this time, the electronic device can first cache the third operation of starting the first application.
- the electronic device is in the process of closing the first application at this time, and the electronic device detects the user's fifth operation of closing the first application.
- the electronic device can draw the first exit interface on the fifth layer, so that the electronic device can display the first exit interface.
- the electronic device has a total of 2 operations cached, namely the third operation and the fifth operation.
- the fifth operation is the latest operation, so the fifth operation is determined to be the user's operation, and since the fourth operation corresponds to the state of the first application, the electronic device can discard the fifth operation.
- the method 500 further includes:
- the third operation is discarded.
- the electronic device When the electronic device is loading an application process, it detects the second operation of the user to exit the first application. The electronic device can draw the first exit interface on the second layer, and display it on the first layer, so that the electronic device can display the first exit interface. Since the electronic device is in the process of loading the application process at this time, the electronic device can first cache the second operation of exiting the first application. The electronic device is in the process of loading the application process at this time. The electronic device detects the third operation of the user to start the first application. The electronic device can draw the first startup interface on the second layer, and display it on the first layer, so that the electronic device can display the first startup interface. After the electronic device completes loading the application process, the state of the application is the startup state.
- the electronic device has a total of 2 operations cached, namely the second operation and the third operation, where the third operation is the latest operation, and the third operation is determined to be the user's operation. Since the third operation corresponds to the state of the first application, the electronic device can discard the third operation.
- the electronic device detects the user's second operation of exiting the first application during the process of loading the application process, the first exit interface can be displayed first and the user's third operation can be cached. If the fourth operation of the user exiting the first application is detected and the electronic device is still in the process of exiting the first application, the electronic device can display the first exit interface again and cache the fourth operation, which can improve the hand tracking performance of the electronic device and enhance the user experience. In addition, after the first application is exited, the fourth operation is determined as the user's operation, and since the fourth operation corresponds to the state of the first application, the fourth operation can be discarded, ensuring that the state of the application corresponds to the user's latest operation.
- FIG. 7 is a schematic diagram showing the internal data flow of a window management method provided in an embodiment of the present application.
- the electronic device includes an application management module and a window management module.
- the application management module can load the application process of the first application in response to the first operation and send indication information #1 and indication information #2 to the window management module, wherein indication information #1 is used to instruct the window management module to display a first startup interface, and indication information #2 is used to instruct the display (show) window.
- the window management module can create a first window and display a first startup interface, wherein the state of the first window is a display state, and the first window includes a first layer and a second layer, wherein the first layer is mounted on a screen node for animation operation, the second layer is mounted on the first layer, and the first startup interface is drawn on the second layer.
- the window management module can respond to the second operation, create a third layer to replace the second layer, and send indication information #3 to the application management module, wherein the third layer has the first interface of the first application drawn, and the indication information #3 is used to instruct the application management module to close the first application.
- the application management module can close the first application.
- the window management module can respond to the second operation, draw the first exit interface on the second layer and send indication information #3 to the application management module, where the indication information #3 is used to instruct the application management module to exit the first application to the background. After receiving the indication information #3, the application management module can exit the first application to the background.
- FIG8 is a schematic diagram showing the internal data flow of another window management method provided in an embodiment of the present application.
- the electronic device includes an application management module and a window management module.
- the application management module in response to the first operation, can load the application process and send indication information #1 and indication information #2 to the window management module, wherein indication information #1 is used to instruct the window management module to display a startup interface, and indication information #2 is used to instruct the window management module to display a window.
- indication information #1 is used to instruct the window management module to display a startup interface
- indication information #2 is used to instruct the window management module to display a window.
- a first window can be created and a first startup interface can be displayed.
- the state of the first window is the display state.
- the first window includes a first layer and a second layer, wherein the first layer is mounted on the screen node for animation operation, the second layer is mounted on the first layer, and the first startup interface is drawn on the first layer.
- the window management module can also cache the indication information #2.
- the user performs a second operation to exit the application.
- the window management module can respond to the second operation, draw a first exit interface on the second layer and send indication information #3 to the application management module.
- the indication information #3 is used to instruct the application management module to exit the first application. Since the application management module is loading the application process at this time, the application management module can cache the indication information #3.
- the state of the first application is the startup state, and the indication information #3 indicates to exit the application.
- the application management module exits the first application according to the cached indication information #3.
- the application management module can send indication information #4 to the window management module.
- the indication information #4 is used to indicate to hide window #1. If the window management module is displaying the first exit screen, the window management module can cache the indication information #4.
- the window management module After the window management module displays the first exit screen, that is, plays the first exit animation, the window management module caches indication information #2 and indication information #4. Since the window management module last executes the display of the first exit interface, the window management module can set window #1 to a hidden state according to indication information #4 after displaying the first exit interface.
- the electronic device includes an application management module and a window management module.
- the application management module When a user performs a first operation to start an application, the application management module, in response to the first operation, can load an application process and send indication information #1 and indication information #2 to the window management module.
- the window management module After receiving the indication information #1 and indication information #2, the window management module can create a first window and display a first startup interface, and the state of the first window is a display state.
- the window management module can also cache the indication information #2.
- indication information #1 indication information #1
- indication information #2 indication information #2
- the first window can be found above, and for the sake of brevity, they are not repeated here.
- the user performs a second operation to close the first application.
- the window management module can respond to the second operation, draw the first exit interface on the second layer and send indication information #3 to the application management module.
- the application management module can cache the indication information #3, which is used to instruct the application management module to close the first application.
- the application is in the startup state, and the indication information #3 indicates to close the first application.
- the application management module closes the first application according to the cached indication information #3.
- the application management module can send indication information #4 to the window management module, which is used to instruct to destroy the first window.
- the window management module can cache the indication information #4, and after the window management module displays the first exit interface, the first window is destroyed. After the first window is destroyed, the window management module no longer caches indication information #2 and indication information #4.
- the user performs the third operation of starting the application.
- the application management module sends indication information #5 and indication information #6 to the window management module.
- the indication information #5 is used to instruct the window management module to display the first startup interface
- the indication information #6 is used to instruct the display (show) window.
- the window management module can create a second window and display the first startup interface.
- the state of the second window is the display state.
- the second window includes a fourth layer and a fifth layer, wherein the fourth layer is mounted on the screen node for animation operation, the fifth layer is mounted on the fourth layer, and the first startup interface is drawn on the fifth layer.
- the application management module can cache the third operation. After the application management module closes the first application, since the third operation does not correspond to the state of the first application, the application management module can load the application process again according to the third operation.
- the application management module When the application management module loads the application process again, it can send indication information #7 to the window management module, and the indication information #7 is used to indicate the display window. If the window management module is displaying the startup interface, the window management module can cache the indication information #7.
- the window management module may create a sixth layer, and use the sixth layer to replace the fifth layer to display the first interface of the first application.
- the window management module After the window management module displays the first startup interface, the window management module caches indication information #6 and indication information #7. Since the window management module last executes display of the first startup interface in the second window, the window management module can set the second window to the display state according to indication information #7 after displaying the first startup interface.
- FIG. 10 is a schematic diagram showing the internal data flow of another window management method provided in an embodiment of the present application.
- the electronic device includes an application management module and a window management module.
- the application management module When a user performs a first operation to start an application, the application management module, in response to the first operation, can load an application process and send indication information #1 and indication information #2 to the window management module.
- the window management module After receiving the indication information #1 and indication information #2, the window management module can create a first window and display a first startup interface, and the state of the first window is a display state.
- the window management module can also cache the indication information #2.
- indication information #1 indication information #1
- indication information #2 indication information #2
- the first window can be found above, and for the sake of brevity, they are not repeated here.
- the user performs a second operation to put the first application into the background.
- the window management module can respond to the second operation, draw a first exit interface on the second layer and send indication information #3 to the application management module.
- the indication information #3 is used to instruct the application management module to put the first application into the background.
- the application management module can cache the indication information #3.
- the status of the application is the startup status, and the indication information #3 indicates to put the first application into the background.
- the application management module then puts the first application into the background according to the cached indication information #3.
- the application management module can send indication information #4 to the window management module.
- the indication information #4 is used to instruct to hide the first window. If the window management module is displaying the first exit screen, the window management module can cache the indication information #4.
- the application management module During the process of the application management module withdrawing the first application process to the background, the user performs a third operation of starting the application.
- the application management module sends an instruction message #8 to the window management module.
- the instruction message #5 is used to instruct the window management module to display the first interface of the first application. Since the application management module is still in the process of closing the first application, the application management module can cache the third operation. After the application management module closes the first application, since the third operation does not correspond to the state of the first application, the application management module can start the application again according to the third operation.
- the application management module When the application management module starts the application again, it can send indication information #9 to the window management module, and the indication information #9 is used to indicate the display window. If the window management module is displaying the first startup interface, the window management module can cache the indication information #6.
- the window management module After the window management module displays the first startup interface, the window management module caches indication information #2, indication information #4, and indication information #9. Since the window management module last executes display of the first startup interface in the first window, the window management module can set the first window to a display state according to indication information #9 after displaying the first startup interface.
- FIG. 11 is a schematic diagram showing the internal data flow of another window management method provided in an embodiment of the present application.
- the electronic device includes an application management module and a window management module.
- the application management module When a user performs a first operation to start an application, the application management module, in response to the first operation, can load an application process and send indication information #1 and indication information #2 to the window management module.
- the window management module After receiving the indication information #1 and indication information #2, the window management module can create a first window and display a first startup interface, and the state of the first window is a display state.
- the window management module can also cache the indication information #2.
- indication information #1 indication information #1
- indication information #2 indication information #2
- the first window can be found above, and for the sake of brevity, they are not repeated here.
- the user performs a second operation to put the first application into the background.
- the window management module can respond to the second operation, draw a first exit interface on the second layer and send indication information #3 to the application management module.
- the indication information #3 is used to instruct the application management module to put the first application into the background.
- the application management module can cache the indication information #3.
- the status of the application is the startup status, and the indication information #3 indicates to put the first application into the background.
- the application management module then puts the first application into the background according to the cached indication information #3.
- the application management module can send indication information #4 to the window management module.
- the indication information #4 is used to instruct to hide the first window. If the window management module is displaying the first exit screen, the window management module can cache the indication information #4.
- the application management module During the process of the application management module withdrawing the first application process to the background, the user performs a third operation of starting the first application.
- the application management module sends an instruction message #10 to the window management module, and the instruction message #10 is used to instruct the window management module to display the first startup interface. Since the application management module is still in the process of closing the first application, the application management module can cache the third operation.
- the window management module can respond to the fourth operation, display the first exit interface, and send an indication message #11 to the application management module, where the indication message #11 is used to instruct the application management module to exit the first application to the background.
- the application management module When the application management module completes the first backend of the first application, the application management module caches the third operation and the fourth operation, the fourth operation is the latest operation of the user, and the fourth operation corresponds to the state of the first application, then the application management module can discard the fourth operation
- the window management module After the window management module displays the first exit interface, the window management module caches indication information #2 and indication information #4. Since the window management module last executes display of the first recommendation interface in the first window, the window management module can set the first window to a hidden state according to indication information #4 after displaying the first exit interface.
- FIG. 12 is a schematic diagram showing the internal data flow of another window management method provided in an embodiment of the present application.
- the electronic device includes an application management module and a window management module.
- the application management module When a user performs a first operation to start an application, the application management module, in response to the first operation, can load an application process and send indication information #1 and indication information #2 to the window management module.
- the window management module After receiving the indication information #1 and indication information #2, the window management module can create a first window and display a first startup interface, and the state of the first window is a display state.
- the window management module can also cache the indication information #2.
- indication information #1 indication information #1
- indication information #2 indication information #2
- the first window can be found above, and for the sake of brevity, they are not repeated here.
- the user performs a second operation to close the first application.
- the window management module can respond to the second operation, draw the first exit interface on the second layer and send indication information #3 to the application management module.
- the application management module can cache the indication information #3, which is used to instruct the application management module to close the first application.
- the application is in the startup state, and the indication information #3 indicates to close the first application.
- the application management module closes the first application according to the cached indication information #3.
- the application management module can send indication information #4 to the window management module, which is used to instruct to destroy the first window.
- the window management module can cache the indication information #4, and after the window management module displays the first exit interface, the first window is destroyed. After the first window is destroyed, the window management module no longer caches indication information #2 and indication information #4.
- the user performs a third operation of starting the application.
- the application management module sends indication information #12 and indication information #13 to the window management module.
- the indication information #12 is used to instruct the window management module to display the first startup interface
- the indication information #13 is used to instruct the display (show) window.
- the window management module can create a second window and display the first startup interface.
- the state of the second window is the display state.
- the second window includes a fourth layer and a fifth layer, wherein the fourth layer is mounted on the screen node for animation operation, the fifth layer is mounted on the fourth layer, and the first startup interface is drawn on the fifth layer. Since the application management module is still in the process of closing the first application, the application management module can cache the third operation.
- the window management module can respond to the fifth operation, display the first exit interface, and send an indication message #14 to the application management module, where the indication message #14 is used to instruct the closing of the first application.
- the application management module When the application management module closes the first application for the first time, the third operation and the fifth operation are cached, the fifth operation is the user's latest operation, and the fifth operation corresponds to the state of the first application, then the application management module can discard the fifth operation.
- the window management module may destroy the first window.
- FIG. 13 is a schematic diagram showing the internal data flow of another window management method provided in an embodiment of the present application.
- the electronic device includes an application management module and a window management module.
- the application management module When a user performs a first operation to start an application, the application management module, in response to the first operation, can load an application process and send indication information #1 and indication information #2 to the window management module.
- the window management module After receiving the indication information #1 and indication information #2, the window management module can create a first window and display a first startup interface, and the state of the first window is a display state.
- the window management module can also cache the indication information #2.
- indication information #1 indication information #1
- indication information #2 indication information #2
- the first window can be found above, and for the sake of brevity, they will not be repeated here.
- the user performs a second operation to close the first application.
- the window management module can respond to the second operation, draw the first exit interface on the second layer and send indication information #3 to the application management module.
- the application management module can cache the indication information #3, which is used to instruct the application management module to close the first application.
- the application is in the startup state, and the indication information #3 indicates to close the first application.
- the application management module closes the first application according to the cached indication information #3.
- the application management module can send indication information #4 to the window management module, which is used to instruct to destroy the first window.
- the window management module can cache the indication information #4, and after the window management module displays the first exit interface, the first window is destroyed. After the first window is destroyed, the window management module no longer caches indication information #2 and indication information #4.
- the application management module sends instruction information #15 and instruction information #16 to the window management module.
- the instruction information #15 is used to instruct the window management module to display the second startup interface, which is the startup interface of the second application program.
- the instruction information #16 is used to instruct the window management module to display (show) the window.
- the window management module can create a third window and display the second startup interface.
- the state of the third window is the display state.
- the third window includes the seventh layer and the eighth layer, wherein the seventh layer is mounted on the screen.
- the node is used for animation operation, the eighth layer is mounted on the seventh layer, and the second startup interface is drawn on the eighth layer. Since the application management module is still in the process of withdrawing the first application to the background, the application management module can cache the sixth operation.
- the window management module can create a ninth layer and use the ninth layer to replace the eighth layer to display the first interface of the second application, and the ninth layer is drawn with the first interface of the second application.
- a sixth operation may be performed, namely, loading the application process of the second application.
- FIG. 14 is a schematic diagram showing the internal data flow of another window management method provided in an embodiment of the present application.
- the electronic device includes an application management module and a window management module.
- the application management module When a user performs a first operation to start a first application, the application management module, in response to the first operation, can load an application process and send indication information #1 and indication information #2 to the window management module.
- the window management module After receiving the indication information #1 and indication information #2, the window management module can create a first window and display a startup interface. The state of the first window is a display state.
- the window management module can also cache the indication information #2.
- indication information #1 indication information #1
- indication information #2 indication information #2
- the first window can be found above, and for the sake of brevity, they are not repeated here.
- the user performs the second operation of exiting the first application.
- the window management module can respond to the second operation, draw the exit interface on the second layer and send indication information #3 to the application management module, and the application management module can cache the indication information #3.
- the application management module When the application management module is still in the process of loading the application process, the user performs the third operation of starting the first application.
- the window management module can respond to the third operation, draw the first startup interface on the second layer and send indication information #5 to the application management module. Since the application management module is in the process of loading the application process at this time, the application management module can cache the indication information #5.
- the application management module After the application management module completes loading the application process, the application management module caches indication information #3 and indication information #5, where indication information #5 is the user's latest operation, and indication information #5 corresponds to the state of the first application, then the application management module can discard the third operation.
- the window management module After the window management module displays the first startup interface, the window management module caches indication information #2. Since the window management module last executes the display of the first startup interface, the window management module can set the first window to a display state according to indication information #2 after displaying the first startup interface.
- the window management module may create a third layer, and use the third layer to replace the second layer to display the first interface of the first application.
- the electronic device includes a hardware structure and/or software module corresponding to each function.
- the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present application.
- the embodiment of the present application can divide the functional modules of the electronic device according to the above method example.
- each functional module can be divided according to each function, or two or more functions can be integrated into one processing module.
- the above integrated module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.
- FIG. 12 shows a schematic structural diagram of an electronic device 1500 provided in an embodiment of the present application.
- the electronic device 1500 includes an application management module 1510 and a window management module 1520, wherein:
- the window management module 1520 is used to create a first window in response to a first operation of the user to start an application.
- the first window is a preview window of the application.
- the first window includes a first layer and a second layer.
- the first layer is used for animation operations.
- the first layer is mounted on a screen node, and the second layer is mounted on the first layer.
- the window management module 1520 is further used to draw a startup interface on the second layer
- the window management module 1520 is also used to display the startup interface
- An application management module 1510 configured to load an application process of the application to create a third layer and start the application;
- the window management module 1520 is further configured to replace the second layer with a third layer to display the first interface of the application, wherein the first interface of the application is drawn on the third layer.
- the embodiment of the present application also provides an electronic device, including: a processor, a memory, an application program, and a computer program.
- the above-mentioned devices can be connected via one or more communication buses.
- the one or more computer programs are stored in the above-mentioned memory and are configured to be executed by the one or more processors, and the one or more computer programs include instructions, and the above-mentioned instructions can be used to make the electronic device perform each step of the electronic device in the above-mentioned embodiments.
- the processor may specifically be the processor 110 shown in FIG. 1
- the memory may specifically be the internal memory 120 shown in FIG. 1 and/or an external memory connected to the electronic device.
- An embodiment of the present application also provides a chip, which includes a processor and a communication interface, wherein the communication interface is used to receive a signal and transmit the signal to the processor, and the processor processes the signal so that the method for generating a playlist as described in any possible implementation method described above is executed.
- This embodiment also provides a computer program product.
- the computer program product runs on a computer, it enables the computer to execute the above-mentioned related steps to implement the method for generating a playlist in the above-mentioned embodiment.
- the term “when" or “after" may be interpreted to mean “if" or “after" or “in response to determining" or “in response to detecting", depending on the context.
- the phrase “upon determining" or “if (the stated condition or event) is detected” may be interpreted to mean “if determining" or “in response to determining" or “upon detecting (the stated condition or event)” or “in response to detecting (the stated condition or event)", depending on the context.
- the disclosed systems, devices and methods can be implemented in other ways.
- the device embodiments described above are only schematic.
- the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.
- Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
- the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
- each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
- the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium.
- the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art.
- the computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application.
- the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store program codes.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
Description
Claims (16)
- 一种窗口管理方法,其特征在于,所述方法应用于电子设备,所述方法包括:响应于用户启动第一应用程序的第一操作,创建第一窗口,所述第一窗口为所述第一应用程序的预览窗口,所述第一窗口包括第一图层和第二图层,所述第一图层用于动画操作,所述第一图层挂载在屏幕节点上,所述第二图层挂载在所述第一图层上;在所述第二图层绘制第一启动界面;显示所述第一启动界面;加载所述第一应用程序的应用进程以创建第三图层和启动所述第一应用程序;使用所述第三图层替换所述第二图层以显示所述第一应用程序的第一界面,其中,在所述第三图层上绘制有所述第一应用程序的第一界面。
- 根据权利要求1所述的方法,其特征在于,在加载所述第一应用程序的应用进程的过程中,检测到所述用户退出第一应用程序的第二操作,所述方法还包括:在所述第二图层绘制第一退出界面;显示所述第一退出界面;缓存所述第二操作;在加载所述第一应用程序的应用进程后,执行所述第二操作以退出所述第一应用程序和隐藏所述第一窗口。
- 根据权利要求2所述的方法,其特征在于,所述第二操作为关闭所述第一应用程序的操作,在关闭所述第一应用程序的过程中,检测到所述用户启动所述第一应用程序的第三操作,所述方法还包括:创建第二窗口,所述第二窗口为所述第一应用程序的预览窗口,所述第二窗口包括第四图层和第五图层,所述第四图层用于动画操作,所述第四图层挂载在所述屏幕节点上,所述第五图层挂载在所述第四图层上;在所述第五图层绘制所述第一启动界面;显示所述第一启动界面;缓存所述第三操作;在关闭所述第一应用程序后,执行所述第三操作以创建第六图层和启动所述第一应用程序;使用所述第六图层替换所述第五图层以显示所述第一应用程序的第一界面,其中,在所述第六图层上绘制有所述第一应用程序的第一界面。
- 根据权利要求2所述的方法,其特征在于,所述第二操作为将所述第一应用程序退后台的操作,在将所述第一应用程序退后台的过程中,检测到所述用户启动所述第一应用程序的第三操作,所述方法包括:显示所述第一应用程序的第一界面;缓存所述第三操作;在将所述第一应用程序退后台后,执行所述第三操作以启动所述第一应用程序。
- 根据权利要求2所述的方法,其特征在于,所述第二操作为将所述第一应用程序退后台的操作,在将所述第一应用程序退后台的过程中,检测到所述用户启动所述第一应用程序的第三操作,所述方法还包括:显示所述第一应用程序的第一界面;缓存所述第三操作;在所述电子设备仍处于将所述应用程序退后台的过程中,再次检测到所述用户将所述第一应用程序退后台的第四操作,响应于所述第四操作,在所述第三图层绘制所述第一退出界面;显示所述第一退出界面;缓存所述第四操作;在将所述第一应用程序退后台后,根据所述用户执行所述第三操作和所述第四操作的顺序,确定所述用户的操作为所述第四操作;丢弃所述第四操作。
- 根据权利要求2所述的方法,其特征在于,所述第二操作为将所述第一应用程序退后台的操作,在将所述第一应用程序退后台的过程中,检测到所述用户启动所述第一应用程序的第三操作,所述方法还包括:显示所述第一应用程序的第一界面;缓存所述第三操作;在所述电子设备仍处于将所述第一应用程序退后台的过程中,检测到所述用户关闭所述第一应用程序的第五操作,响应于所述第五操作,使用所述第二图层替换所述第三图层;在所述第二图层绘制所述第一退出界面;显示所述第一退出界面;缓存所述第五操作;在将所述第一应用程序退后台后,根据所述用户执行所述第三操作和所述第五操作的顺序,确定所述用户的操作为所述第五操作;执行所述第五操作以关闭所述第一应用程序。
- 根据权利要求2所述的方法,其特征在于,所述第二操作为关闭所述第一应用程序的操作,在关闭所述第一应用程序的过程中,检测到所述用户启动所述第一应用程序的第三操作,所述方法还包括:创建第二窗口,所述第二窗口为所述第一应用程序的预览窗口,所述第二窗口包括第四图层和第五图层,所述第四图层用于动画操作,所述第四图层挂载在所述屏幕节点上,所述第五图层挂载在所述第四图层上;在所述第五图层绘制所述第一启动界面;显示所述第一启动界面;缓存所述第三操作;在所述电子设备仍处于关闭所述第一应用程序的过程中,再次检测到所述用户关闭所述第一应用程序的第五操作,响应于所述第五操作,在所述第五图层绘制所述第一退出界面;显示所述第一退出界面;缓存所述第五操作;在关闭所述第一应用程序后,根据所述用户执行所述第三操作和所述第五操作的顺序,确定所述用户的操作为所述第五操作;丢弃所述第五操作。
- 根据权利要求2所述的方法,其特征在于,所述第二操作为将所述第一应用程序退后台的操作,在将所述第一应用程序退后台的过程中,检测到所述用户启动所述第二应用程序的第六操作,所述方法还包括:创建第三窗口,所述第三窗口为所述第二应用程序的预览窗口,所述第三窗口包括第七图层和第八图层,所述第七图层用于动画操作,所述第七图层挂载在所述屏幕节点上,所述第八图层挂载在所述第七图层上;在所述第八图层绘制所述第二启动界面;显示所述第二启动界面;缓存所述第六操作;在将所述第一应用程序退后台后,执行所述第六操作以创建第九图层和启动所述第二应用程序;使用所述第九图层替换所述第八图层以显示所述第二应用程序的第一界面,其中,在所述第九图层上绘制有所述第二应用程序的第一界面。
- 根据权利要求1所述的方法,其特征在于,在加载所述第一应用程序的应用进程的过程中,检测到所述用户退出所述第一应用程序的第二操作,所述方法还包括:在所述第二图层绘制第一退出界面;显示所述第一退出界面;缓存所述第二操作;在所述电子设备仍处于加载所述第一应用程序的应用进程的过程中,检测到所述用户启动所述第一应用程序的第三操作,响应于所述第三操作,在所述第二图层绘制所述第一启动界面;显示所述第一启动界面;缓存所述第三操作;在加载所述第一应用程序的应用进程后,根据所述用户执行所述第二操作和所述第三操作的顺序,确定所述用户的操作为所述第三操作;丢弃所述第三操作。
- 根据权利要求1至9中任一项所述的方法,其特征在于,在加载所述第一应用程序的应用进程后,检测到所述用户关闭所述第一应用程序的操作,所述方法还包括:使用所述第二图层替换所述第三图层;在所述第二图层绘制第一退出界面;显示所述第一退出界面并关闭所述应用程序。
- 根据权利要求1至9中任一项所述的方法,其特征在于,在加载所述第一应用程序的应用进程后,检测到所述用户将所述第一应用程序退后台的操作,所述方法还包括:在所述第三图层绘制第一退出界面;显示所述退出界面并将所述应用程序退后台。
- 根据权利要求1至11中任一项所述的方法,其特征在于,所述使用第三图层替换所述第二图层,包括:在所述第三图层绘制所述应用程序的所述第一界面后,使用所述第三图层替换所述第二图层。
- 根据权利要求1至12中任一项所述的方法,其特征在于,所述第一退出界面为所述应用程序的第二界面的截图或预设的界面。
- 一种电子设备,其特征在于,包括一个或多个处理器;一个或多个存储器;所述一个或多个存储器存储有一个或多个计算机程序,所述一个或多个计算机程序包括指令,当所述指令被所述一个或多个处理器执行时,使得如权利要求1至13中任一项所述的方法被执行。
- 一种芯片,其特征在于,所述芯片包括处理器和通信接口,所述通信接口用于接收信号,并将所述信号传输至所述处理器,所述处理器处理所述信号,使得如权利要求1至13中任一项所述的方法被执行。
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机指令,当所述计算机指令在计算机上运行时,使得如权利要求1至13中任一项所述的方法被执行。
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| EP23917144.0A EP4586086A4 (en) | 2023-01-17 | 2023-11-03 | WINDOW MANAGEMENT METHOD AND ELECTRONIC DEVICE |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310096400.6A CN118363691A (zh) | 2023-01-17 | 2023-01-17 | 一种窗口管理方法以及电子设备 |
| CN202310096400.6 | 2023-01-17 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2024152676A1 true WO2024152676A1 (zh) | 2024-07-25 |
Family
ID=91880971
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2023/129563 Ceased WO2024152676A1 (zh) | 2023-01-17 | 2023-11-03 | 一种窗口管理方法以及电子设备 |
Country Status (3)
| Country | Link |
|---|---|
| EP (1) | EP4586086A4 (zh) |
| CN (1) | CN118363691A (zh) |
| WO (1) | WO2024152676A1 (zh) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN118885234B (zh) * | 2024-09-12 | 2025-02-18 | 荣耀终端有限公司 | 一种播放应用启动动画的方法、电子设备及相关介质 |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107748686A (zh) * | 2017-11-30 | 2018-03-02 | 广东欧珀移动通信有限公司 | 应用程序的启动优化方法、装置、存储介质及智能终端 |
| WO2020102956A1 (zh) * | 2018-11-20 | 2020-05-28 | 深圳市欢太科技有限公司 | 界面显示方法、装置、计算机可存储介质和电子设备 |
| CN113407283A (zh) * | 2021-06-24 | 2021-09-17 | 优地网络有限公司 | 一种界面显示方法、装置及电子设备 |
| CN114443156A (zh) * | 2021-12-24 | 2022-05-06 | 荣耀终端有限公司 | 一种应用程序的处理方法及电子设备 |
| WO2022252816A1 (zh) * | 2021-05-29 | 2022-12-08 | 华为技术有限公司 | 显示方法及电子设备 |
| CN115480834A (zh) * | 2021-05-29 | 2022-12-16 | 华为技术有限公司 | 显示方法及电子设备 |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109947506B (zh) * | 2017-12-20 | 2022-08-12 | 阿里巴巴集团控股有限公司 | 界面切换方法、装置及电子设备 |
| CN115390957A (zh) * | 2021-05-25 | 2022-11-25 | 华为技术有限公司 | 一种应用程序动效衔接的方法及装置 |
-
2023
- 2023-01-17 CN CN202310096400.6A patent/CN118363691A/zh active Pending
- 2023-11-03 WO PCT/CN2023/129563 patent/WO2024152676A1/zh not_active Ceased
- 2023-11-03 EP EP23917144.0A patent/EP4586086A4/en active Pending
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107748686A (zh) * | 2017-11-30 | 2018-03-02 | 广东欧珀移动通信有限公司 | 应用程序的启动优化方法、装置、存储介质及智能终端 |
| WO2020102956A1 (zh) * | 2018-11-20 | 2020-05-28 | 深圳市欢太科技有限公司 | 界面显示方法、装置、计算机可存储介质和电子设备 |
| WO2022252816A1 (zh) * | 2021-05-29 | 2022-12-08 | 华为技术有限公司 | 显示方法及电子设备 |
| CN115480834A (zh) * | 2021-05-29 | 2022-12-16 | 华为技术有限公司 | 显示方法及电子设备 |
| CN113407283A (zh) * | 2021-06-24 | 2021-09-17 | 优地网络有限公司 | 一种界面显示方法、装置及电子设备 |
| CN114443156A (zh) * | 2021-12-24 | 2022-05-06 | 荣耀终端有限公司 | 一种应用程序的处理方法及电子设备 |
Non-Patent Citations (1)
| Title |
|---|
| See also references of EP4586086A4 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN118363691A (zh) | 2024-07-19 |
| EP4586086A4 (en) | 2026-02-18 |
| EP4586086A1 (en) | 2025-07-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN112717370B (zh) | 一种控制方法和电子设备 | |
| CN113760427B (zh) | 显示页面元素的方法和电子设备 | |
| JP7081048B2 (ja) | システムナビゲーションバー表示方法、システムナビゲーションバー制御方法、グラフィカルユーザインターフェース、および電子機器 | |
| CN110543289B (zh) | 控制音量的方法和电子设备 | |
| WO2021129326A1 (zh) | 一种屏幕显示方法及电子设备 | |
| WO2021027747A1 (zh) | 一种界面显示方法及设备 | |
| CN111768416B (zh) | 照片裁剪方法及装置 | |
| WO2021000881A1 (zh) | 一种分屏方法及电子设备 | |
| CN110830645B (zh) | 一种操作方法和电子设备及计算机存储介质 | |
| WO2021036770A1 (zh) | 一种分屏处理方法及终端设备 | |
| WO2021042878A1 (zh) | 一种拍摄方法及电子设备 | |
| WO2021051982A1 (zh) | 调用硬件接口的方法及电子设备 | |
| CN114422686B (zh) | 参数调整方法及相关装置 | |
| WO2024109573A1 (zh) | 悬浮窗显示的方法和电子设备 | |
| CN118245150A (zh) | 一种共享桌面的方法和电子设备 | |
| US20250350829A1 (en) | Video Recording Method and Electronic Device | |
| WO2024152676A1 (zh) | 一种窗口管理方法以及电子设备 | |
| WO2024067551A1 (zh) | 界面显示方法及电子设备 | |
| WO2024114569A1 (zh) | 一种视频处理的方法以及电子设备 | |
| WO2024032124A1 (zh) | 卷轴屏开合方法及相关产品 | |
| WO2024193470A1 (zh) | 一种管理服务的方法以及折叠屏电子设备 | |
| US20250328228A1 (en) | Display method and electronic device | |
| WO2025261278A1 (zh) | 分屏显示的方法和电子设备 | |
| CN120319199A (zh) | 一种送显装置及相关方法 | |
| CN119003145A (zh) | 一种管理系统服务的方法以及电子设备 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 23917144 Country of ref document: EP Kind code of ref document: A1 |
|
| WWE | Wipo information: entry into national phase |
Ref document number: 2023917144 Country of ref document: EP |
|
| ENP | Entry into the national phase |
Ref document number: 2023917144 Country of ref document: EP Effective date: 20250410 |
|
| WWP | Wipo information: published in national office |
Ref document number: 2023917144 Country of ref document: EP |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |