WO2024152676A1 - 一种窗口管理方法以及电子设备 - Google Patents

一种窗口管理方法以及电子设备 Download PDF

Info

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
Application number
PCT/CN2023/129563
Other languages
English (en)
French (fr)
Inventor
陈海莹
钱良芳
刘超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to EP23917144.0A priority Critical patent/EP4586086A4/en
Publication of WO2024152676A1 publication Critical patent/WO2024152676A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction 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
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction 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/0488Interaction 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/04883Interaction 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
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/445Program 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

一种窗口管理方法以及电子设备
本申请要求于2023年01月17日提交中国专利局、申请号为202310096400.6、申请名称为“一种窗口管理方法以及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及电子设备领域,并且更具体地,涉及一种窗口管理方法以及电子设备。
背景技术
随着技术的进步,电子设备已经成为用户日常生活中必不可少的一环。电子设备可以响应于用户的启动应用程序的操作以启动应用程序。电子设备在启动应用程序时,可以以动画的形式显示启动界面,包括启动界面逐渐放大、启动界面由模糊到清晰等。电子设备完成应用程序的启动后,可以显示图形用户界面(graphical user interface,GUI)以与用户进行交互。电子设备还可以响应于用户的退出应用程序的操作以退出应用程序。电子设备在退出应用程序时,也可以以动画的形式显示退出界面,包括退出界面的逐渐缩小、退出界面的逐渐模糊等。对于用户而言,电子设备是否流畅取决于用户在操作后,电子设备是否能够快速响应,即电子设备的跟手性。目前,电子设备的跟手性差,造成用户的使用体验下降。
发明内容
本申请提供一种窗口管理以及电子设备,可以快速响应用户的操作,能够提高电子设备的跟手性,提升用户的使用体验。
第一方面,提供了一种窗口管理方法,该方法应用于电子设备,该方法包括:响应于用户启动第一应用程序的第一操作,创建第一窗口,该第一窗口为该第一应用程序的预览窗口,该第一窗口包括第一图层和第二图层,该第一图层用于动画操作,该第一图层挂载在屏幕节点上,该第二图层挂载在该第一图层上;在该第二图层绘制第一启动界面;显示该第一启动界面;加载该第一应用程序的应用进程以创建第三图层和启动该第一应用程序;使用该第三图层替换该第二图层以显示该第一应用程序的第一界面,其中,在该第三图层上绘制有该第一应用程序的第一界面。
本申请实施例中,电子设备在启动第一应用程序时,可以仅创建一个窗口,电子设备可以通过该窗口先显示第一启动界面,然后在第一应用程序的应用进程加载完成后以替换图层的方式显示第一应用程序的第一界面,无需额外创建新的窗口,能够减少资源的消耗,提高应用程序的启动速度,提升了用户体验。此外,由于第二图层和第三图层挂载在第一图层上,使得第二图层和第三图层可以继承第一图层的动画属性,因此电子设备在由第一启动界面切换至第一应用程序的第一界面时,可以仅修改第一图层的动画属性,无需感知第二图层和第三图层的变换。
结合第一方面,在第一方面的某些实现方式中,在加载该第一应用程序的应用进程的过程中,检测到该用户退出第一应用程序的第二操作,该方法还包括:在该第二图层绘制第一退出界面;显示该第一退出界面;缓存该第二操作;在加载该第一应用程序的应用进程后,执行该第二操作以退出该第一应用程序和隐藏该第一窗口。
本申请实施例中,电子设备在启动第一应用程序的过程中若检测到用户退出第一应用程序的操作,可以先显示第一退出界面并缓存用户的操作,在执行完第一启动应用程序后,再执行退出第一应用程序的操作。由于电子设备显示第一退出界面和应用程序的生命周期不再耦合,第一退出界面不再丢失,能够提高电子设备的跟手性,提升用户体验。
结合第一方面,在第一方面的某些实现方式中,该第二操作为关闭该第一应用程序的操作,在关闭该第一应用程序的过程中,检测到该用户启动该第一应用程序的第三操作,该方法还包括:创建第二窗口,该第二窗口为该第一应用程序的预览窗口,该第二窗口包括第四图层和第五图层,该第四图层用于动画操作,该第四图层挂载在该屏幕节点上,该第五图层挂载在该第四图层上;在该第五图层绘制该第一启动界面;显示该第一启动界面;缓存该第三操作;在关闭该第一应用程序后,执行该第三操作以创 建第六图层和启动该第一应用程序;使用该第六图层替换该第五图层以显示该第一应用程序的第一界面,其中,在该第六图层上绘制有该第一应用程序的第一界面。
本申请实施例中,电子设备在关闭应用程序的过程中若检测到用户启动应用程序的第三操作,可以先显示第一启动界面并缓存用户的第三操作,在执行完关闭应用程序后,再执行启动第一应用程序的第三操作,避免了因电子设备丢弃第三操作而造成的第一应用程序的最终状态与用户的第三操作不符的问题,能够提高电子设备的跟手性,提升用户体验。
结合第一方面,在第一方面的某些实现方式中,该第二操作为将该第一应用程序退后台的操作,在将该第一应用程序退后台的过程中,检测到该用户启动该第一应用程序的第三操作,该方法包括:显示该第一应用程序的第一界面;缓存该第三操作;在将该第一应用程序退后台后,执行该第三操作以启动该第一应用程序。
本申请实施例中,电子设备在将第一应用程序退后台的过程中若检测到用户启动第一应用程序的第三操作,可以先显示第一应用程序的第一界面并缓存用户的第三操作,在执行完将第一应用程序退后台后,再执行启动第一应用程序的第三操作,避免了因电子设备丢弃第三操作而造成的第一应用程序的最终状态与用户的第三操作不符的问题,能够提高电子设备的跟手性,提升用户体验。
结合第一方面,在第一方面的某些实现方式中,该第二操作为将该第一应用程序退后台的操作,在将该第一应用程序退后台的过程中,检测到该用户启动该第一应用程序的第三操作,该方法还包括:显示该第一应用程序的第一界面;缓存该第三操作;在该电子设备仍处于将该应用程序退后台的过程中,再次检测到该用户将该第一应用程序退后台的第四操作,响应于该第四操作,在该第三图层绘制该第一退出界面;显示该第一退出界面;缓存该第四操作;在将该第一应用程序退后台后,根据该用户执行该第三操作和该第四操作的顺序,确定该用户的操作为该第四操作;丢弃该第四操作。
本申请实施例中,电子设备在将第一应用程序退后台的过程中若检测到用户启动第一应用程序的第三操作,可以先以动画形式显示第一应用程序的第一界面并缓存用户的第三操作,若又检测到用户将第一应用程序退后台的第四操作且电子设备仍处于将第一应用程序退后台的过程中,电子设备可以再显示第一退出界面并缓存第四操作,能够提高电子设备的跟手性,提升用户体验。此外,在执行完将第一应用程序退后台后,将第四操作确定为用户的操作,且由于第四操作与第一应用程序的状态相对应,则可以丢弃该第四操作,保证了第一应用程序的状态与用户最新的操作相对应。
结合第一方面,在第一方面的某些实现方式中,该第二操作为将该第一应用程序退后台的操作,在将该第一应用程序退后台的过程中,检测到该用户启动该第一应用程序的第三操作,该方法还包括:显示该第一应用程序的第一界面;缓存该第三操作;在该电子设备仍处于将该第一应用程序退后台的过程中,检测到该用户关闭该第一应用程序的第五操作,响应于该第五操作,使用该第二图层替换该第三图层;在该第二图层绘制该第一退出界面;显示该第一退出界面;缓存该第五操作;在将该第一应用程序退后台后,根据该用户执行该第三操作和该第五操作的顺序,确定该用户的操作为该第五操作;执行该第五操作以关闭该第一应用程序。
本申请实施例中,电子设备在将第一应用程序退后台的过程中若检测到用户启动第一应用程序的第三操作,可以先以动画形式显示第一应用程序的第一界面并缓存用户的第三操作,若又检测到用户关闭第一应用程序的第五操作且电子设备仍处于将第一应用程序退后台的过程中,电子设备可以再显示第一退出界面并缓存第五操作,能够提高电子设备的跟手性,提升用户体验。此外,在执行完将第一应用程序退后台后,将第五操作确定为用户的操作,且由于第五操作与第一应用程序的状态不对应,则可以执行第五操作,保证了第一应用程序的状态与用户最新的操作相对应。
结合第一方面,在第一方面的某些实现方式中,该第二操作为关闭该第一应用程序的操作,在关闭该第一应用程序的过程中,检测到该用户启动该第一应用程序的第三操作,该方法还包括:创建第二窗口,该第二窗口为该第一应用程序的预览窗口,该第二窗口包括第四图层和第五图层,该第四图层用于动画操作,该第四图层挂载在该屏幕节点上,该第五图层挂载在该第四图层上;在该第五图层绘制该第一启动界面;显示该第一启动界面;缓存该第三操作;在该电子设备仍处于关闭该第一应用程序的过程中,再次检测到该用户关闭该第一应用程序的第五操作,响应于该第五操作,在该第五图层绘制该第一退出界面;显示该第一退出界面;缓存该第五操作;在关闭该第一应用程序后,根据该用户执行该第三操作和该第五操作的顺序,确定该用户的操作为该第五操作;丢弃该第五操作。
本申请实施例中,电子设备在关闭第一应用程序的过程中若检测到用户启动第一应用程序的第三操 作,可以创建第二窗口以显示第一启动界面并缓存用户的第三操作,若又检测到用户关闭第一应用程序的第五操作且电子设备仍处于关闭第一应用程序的过程中,电子设备可以再显示第一退出界面并缓存第五操作,能够提高电子设备的跟手性,提升用户体验。此外,在关闭第一应用程序后,将第五操作确定为用户的操作,且由于第五操作与第一应用程序的状态相对应,则可以丢弃该第五操作,保证了第一应用程序的状态与用户最新的操作相对应。
结合第一方面,在第一方面的某些实现方式中,该第二操作为将该第一应用程序退后台的操作,在将该第一应用程序退后台的过程中,检测到该用户启动该第二应用程序的第六操作,该方法还包括:创建第三窗口,该第三窗口为该第二应用程序的预览窗口,该第三窗口包括第七图层和第八图层,该第七图层用于动画操作,该第七图层挂载在该屏幕节点上,该第八图层挂载在该第七图层上;在该第八图层绘制该第二启动界面;显示该第二启动界面;缓存该第六操作;在将该第一应用程序退后台后,执行该第六操作以创建第九图层和启动该第二应用程序;使用该第九图层替换该第八图层以显示该第二应用程序的第一界面,其中,在该第九图层上绘制有该第二应用程序的第一界面。
本申请实施例中,电子设备在将第一应用程序退后台的过程中若检测到用户启动第二应用程序的第六操作,可以先以动画形式显示第二启动界面并缓存用户的第六操作,在电子设备执行完将第一应用程序退后台后,将执行第六操作,保证了第六操作被执行。
结合第一方面,在第一方面的某些实现方式中,在加载该第一应用程序的应用进程的过程中,检测到该用户退出该第一应用程序的第二操作,该方法还包括:在该第二图层绘制第一退出界面;显示该第一退出界面;缓存该第二操作;在该电子设备仍处于加载该第一应用程序的应用进程的过程中,检测到该用户启动该第一应用程序的第三操作,响应于该第三操作,在该第二图层绘制该第一启动界面;显示该第一启动界面;缓存该第三操作;在加载该第一应用程序的应用进程后,根据该用户执行该第二操作和该第三操作的顺序,确定该用户的操作为该第三操作;丢弃该第三操作。
本申请实施例中,电子设备在加载应用进程的过程中若检测到用户退出第一应用程序的第二操作,可以先显示第一退出界面并缓存用户的第三操作,若又检测到用户退出第一应用程序的第四操作且电子设备仍处于退出第一应用程序的过程中,电子设备可以再显示第一退出界面并缓存第四操作,能够提高电子设备的跟手性,提升用户体验。此外,在执行完退出第一应用程序后,将第四操作确定为用户的操作,且由于第四操作与第一应用程序的状态相对应,则可以丢弃该第四操作,保证了应用程序的状态与用户最新的操作相对应。
结合第一方面,在第一方面的某些实现方式中,在加载该第一应用程序的应用进程后,检测到该用户关闭该第一应用程序的操作,该方法还包括:使用该第二图层替换该第三图层;在该第二图层绘制第一退出界面;显示该第一退出界面并关闭该应用程序。
本申请实施例中,电子设备在关闭应用程序时,可以使用第二图层替换第三图层,并在第二图层绘制第一退出界面,实现了应用进程与第一退出界面的解耦,即使应用进程提前关闭,第一退出界面仍可以保持完整性,不会突然消失,提升了用户体验。
结合第一方面,在第一方面的某些实现方式中,在加载该第一应用程序的应用进程后,检测到该用户将该第一应用程序退后台的操作,该方法还包括:在该第三图层绘制第一退出界面;显示该退出界面并将该应用程序退后台。
结合第一方面,在第一方面的某些实现方式中,该使用第三图层替换该第二图层,包括:在该第三图层绘制该应用程序的该第一界面后,使用该第三图层替换该第二图层。
结合第一方面,在第一方面的某些实现方式中,该第一退出界面为该应用程序的第二界面的截图或预设的界面。
第二方面,为本申请实施例的一种电子设备,该电子设备包括执行上述方面或者上述方面的任意一种可能的设计的方法的模块/单元;这些模块/单元可以通过硬件实现,也可以通过硬件执行相应的软件实现。
第三方面,为本申请实施例的一种芯片,该芯片与电子设备中的存储器耦合,用于调用存储器中存储的计算机程序并执行本申请实施例上述方面及其上述方面任一可能设计的技术方案;本申请实施例中“耦合”是指两个部件彼此直接或间接地结合。
第四方面,为本申请实施例的一种计算机可读存储介质,该计算机可读存储介质包括计算机程序,当计算机程序在电子设备上运行时,使得该电子设备执行如上述方面及其上述方面任一可能设计的技术 方案。
第五方面,为本申请实施例的一种计算机程序,该计算机程序包括指令,当该指令在计算机上运行时,使得该计算机执行如上述方面及其上述方面任一可能设计的技术方案。
第六方面,为本申请实施例的一种电子设备,该电子设备包括一个或多个处理器;一个或多个存储器;该一个或多个存储器存储有一个或多个计算机程序,该一个或多个计算机程序包括指令,当该指令被该一个或多个处理器执行时,使得上述方面或者上述方面的任意一种可能的实现方式被执行。
其中,第二方面至第六方面的有益效果,请参见第一方面的有益效果,不重复赘述。
附图说明
图1是本申请实施例提供的一种电子设备的结构示意图。
图2是本申请实施例提供的一例电子设备的软件结构框图。
图3是电子设备启动应用程序和退出应用程序的示意性流程图。
图4是电子设备创建第一窗口和第二窗口的示意图。
图5是本申请实施例提供的一种窗口管理方法的示意性流程图。
图6是本申请实施例提供的电子设备启动应用程序和关闭应用程序时第一窗口图层变化示意图。
图7是本申请实施例提供的一种窗口管理方法的内部数据流向示意图。
图8是本申请实施例提供的另一种窗口管理方法的内部数据流向示意图。
图9是本申请实施例提供的另一种窗口管理方法的内部数据流向示意图。
图10是本申请实施例提供的另一种窗口管理方法的内部数据流向示意图。
图11是本申请实施例提供的另一种窗口管理方法的内部数据流向示意图。
图12是本申请实施例提供的另一种窗口管理方法的内部数据流向示意图。
图13是本申请实施例提供的另一种窗口管理方法的内部数据流向示意图。
图14是本申请实施例提供的另一种窗口管理方法的内部数据流向示意图。
图15是本申请实施例提供的一种电子设备的示意性结构图。
具体实施方式
以下实施例中所使用的术语只是为了描述特定实施例的目的,而并非旨在作为对本申请的限制。如在本申请的说明书和所附权利要求书中所使用的那样,单数表达形式“一个”、“一种”、“该”、“上述”、“该”和“这一”旨在也包括例如“一个或多个”这种表达形式,除非其上下文中明确地有相反指示。还应当理解,在本申请以下各实施例中,“至少一个”、“一个或多个”是指一个、两个或两个以上。术语“和/或”,用于描述关联对象的关联关系,表示可以存在三种关系;例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A、B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。
在本说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。
以下介绍电子设备、用于这样的电子设备的用户界面、和用于使用这样的电子设备的实施例。在一些实施例中,电子设备可以是还包含其它功能诸如个人数字助理和/或音乐播放器功能的便携式电子设备,诸如手机、平板电脑、具备无线通讯功能的可穿戴电子设备(如智能手表)等。便携式电子设备的示例性实施例包括但不限于搭载或者其它操作系统的便携式电子设备。上述便携式电子设备也可以是其它便携式电子设备,诸如膝上型计算机(Laptop)等。还应当理解的是,在其他一些实施例中,上述电子设备也可以不是便携式电子设备,而是台式计算机。
示例性的,图1示出了电子设备100的结构示意图。电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,指南针190,马达191,指 示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。
可以理解的是,本申请实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的部件,也可以集成在一个或多个处理器中。在一些实施例中,电子设备100也可以包括一个或多个处理器110。其中,控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。在其他一些实施例中,处理器110中还可以设置存储器,用于存储指令和数据。示例性地,处理器110中的存储器可以为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从该存储器中直接调用。这样就避免了重复存取,减少了处理器110的等待时间,因而提高了电子设备100处理数据或执行指令的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路间(inter-integrated circuit,I2C)接口,集成电路间音频(nter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,SIM卡接口,和/或USB接口等。其中,USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。该USB接口130也可以用于连接耳机,通过耳机播放音频。
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks, WLAN)(如无线保真(wireless fidelity,WiFi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像、视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD)、有机发光二极管(organic light-emitting diode,OLED)、有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode,AMOLED)、柔性发光二极管(flex light-emitting diode,FLED)、Miniled、MicroLed、Micro-oLed、量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或多个显示屏194。
在本申请的一些实施例中,当显示面板采用OLED、AMOLED、FLED等材料时,上述图1中的显示屏194可以被弯折。这里,上述显示屏194可以被弯折是指显示屏可以在任意部位被弯折到任意角度,并可以在该角度保持,例如,显示屏194可以从中部左右对折。也可以从中部上下对折。
电子设备100的显示屏194可以是一种柔性屏,目前,柔性屏以其独特的特性和巨大的潜力而备受关注。柔性屏相对于传统屏幕而言,具有柔韧性强和可弯曲的特点,可以给用户提供基于可弯折特性的新交互方式,可以满足用户对于电子设备的更多需求。对于配置有可折叠显示屏的电子设备而言,电子设备上的可折叠显示屏可以随时在折叠形态下的小屏和展开形态下大屏之间切换。因此,用户在配置有可折叠显示屏的电子设备上使用分屏功能,也越来越频繁。
电子设备100可以通过ISP、摄像头193、视频编解码器、GPU、显示屏194以及应用处理器等实现拍摄功能。
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将该电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点、亮度、肤色进行算法优化。ISP还可以对拍摄场景的曝光、色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或多个摄像头193。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1、MPEG2、MPEG3、MPEG4等。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别、人脸识别、语音识别、文本理解等。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器121可以用于存储一个或多个计算机程序,该一个或多个计算机程序包括指令。处理器110可以通过运行存储在内部存储器121的上述指令,从而使得电子设备100执行本申请一些实施例中所提供的方法,以及各种应用以及数据处理等。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统;该存储程序区还可以存储一个或多个应用(比如图库、联系人等)等。存 储数据区可存储电子设备100使用过程中所创建的数据(比如照片,联系人等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如一个或多个磁盘存储部件,闪存部件,通用闪存存储器(universal flash storage,UFS)等。在一些实施例中,处理器110可以通过运行存储在内部存储器121的指令,和/或存储在设置于处理器110中的存储器的指令,来使得电子设备100执行本申请实施例中所提供的方法,以及其他应用及数据处理。电子设备100可以通过音频模块170、扬声器170A、受话器170B、麦克风170C、耳机接口170D、以及应用处理器等实现音频功能。例如音乐播放、录音等。
传感器模块180可以包括压力传感器180A、陀螺仪传感器180B、气压传感器180C、磁传感器180D、加速度传感器180E、距离传感器180F、接近光传感器180G、指纹传感器180H、温度传感器180J、触摸传感器180K、环境光传感器180L、骨传导传感器180M等。
其中,压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测该触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即X、Y和Z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。
环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备100是否在口袋里,以防误触。
指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。
温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备100对电池142加热,以避免低温导致电子设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。
图2是本申请实施例的电子设备100的软件结构框图。分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。应用程序层可以包括一系列应用程序包。
如图2所示,应用程序包可以包括相机、图库、日历、通话、地图、导航、WLAN、蓝牙、音乐、视频、短信息等应用程序。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架,应用程序框架层包括一些预先定义的函数。
如图2所示,应用程序框架层可以包括窗口管理器、内容提供器、视图系统、电话管理器、资源管理器、通知管理器等。
窗口管理器用于管理窗口程序,窗口管理器可以获取显示屏大小,判断是否有状态栏、锁定屏幕、截取屏幕等。
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。该数据可以包括视频、图像、音频、拨打和接听的电话、浏览历史和书签、电话簿等。
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。
电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。
资源管理器为应用程序提供各种资源,比如本地化字符串、图标、图片、布局文件、视频文件等等。
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息、发出提示音、电子设备振动、指示灯闪烁等。
系统库可以包括多个功能模块。例如:表面管理器(surface manager)、媒体库(media libraries)、三维图形处理库(例如:OpenGL ES)、2D图形引擎(例如:SGL)等。
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。
媒体库支持多种常用的音频、视频格式回放和录制以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4、H.264、MP3、AAC、AMR、JPG和PNG等。
三维图形处理库用于实现三维图形绘图、图像渲染、合成和图层处理等。
2D图形引擎是2D绘图的绘图引擎。
内核层是硬件和软件之间的层。内核层至少包含显示驱动、摄像头驱动、音频驱动、传感器驱动。
随着技术的进步,电子设备已经成为用户日常生活中必不可少的一环。电子设备可以响应于用户的启动应用程序的操作以启动应用程序。电子设备在启动应用程序时,可以以动画的形式显示启动界面,包括启动界面逐渐放大、启动界面由模糊到清晰等。电子设备完成应用程序的启动后,可以显示图形用户界面(graphical user interface,GUI)以与用户进行交互。电子设备还可以响应于用户的退出应用程序的操作以退出应用程序。电子设备在退出应用程序时,也可以以动画的形式显示退出界面,包括退出界面的逐渐缩小、退出界面的逐渐模糊等。对于用户而言,电子设备是否流畅取决于用户在操作后,电子设备是否能够快速响应,即电子设备的跟手性。下文结合图3和图4描述电子设备启动应用程序或退出应用程序时的流程。
图3示出了电子设备启动应用程序和退出应用程序的示意性流程图。
S301,电子设备检测到用户启动应用程序的操作。
示例性的,用户启动应用程序的操作可以是用户在桌面点击该应用程序对应的应用图标。
示例性的,用户启动应用程序的操作可以是用户的语音指令。
示例性的,用户启动应用程序的操作可以是用户的预设手势,该预设手势可以是隔空手势。
示例性的,用户启动应用程序的操作可以是用户按压物理按键的操作。
应理解,本申请实施例中,对于用户启动应用程序的操作不作限定。
S302,电子设备创建第一窗口。
电子设备响应于检测到用户启动应用程序的操作,可以创建第一窗口,该第一窗口是应用程序的预览窗口,也可以称为启动窗口。该第一窗口包括第一图层和第二图层,其中第一图层挂载在屏幕节点(displaynode)上,用于动画操作,第二图层挂载在第一图层上,用于绘制应用程序的启动界面。
例如,第一图层可以是leash window,第二图层可以是starting window。
需要说明的是,第一图层和第二图层也可以称为第一渲染节点(surfacenode)和第二渲染节点。
示例性的,电子设备可以通过窗口管理服务(window manager service,WMS)绘制该启动窗口。
S303,电子设备在第二图层绘制启动界面以显示该启动界面。
电子设备在第二图层完成启动界面的绘制后,由于第二图层挂载在第一图层上,而第一图层挂载在屏幕节点上且用于动画操作,则电子设备可以以动画的形式显示该启动界面,该启动界面也可以称为预览画面、启动界面、预览界面等。
示例性的,电子设备可以逐渐放大该启动界面直至铺满屏幕,且在放大启动界面的过程中逐渐减小该启动界面的透明度。
S304,电子设备加载应用进程。
电子设备响应于检测到用户启动应用程序的操作,可以加载应用进程。
S305,电子设备销毁第一窗口并创建第二窗口。
电子设备加载应用进程后,可以销毁第一窗口并创建第二窗口,第二窗口是应用程序对应的窗口,该第二窗口用于显示应用程序的界面,第二窗口包括第三图层,该第三图层挂载在屏幕节点上,用于绘制应用程序的界面。
S306,电子设备检测到用户退出应用程序的操作,响应于该操作,在第三图层绘制退出界面。
本申请实施例中,电子设备退出应用程序包括电子设备在后台运行应用程序或电子设备关闭该应用程序。
示例性的,用户退出应用程序的操作可以是用户在应用程序的界面点击关闭控件。
示例性的,用户退出应用程序的操作可以是用户的语音指令。
示例性的,用户退出应用程序的操作可以是用户的预设手势,该预设手势可以是隔空手势。
应理解,本申请实施例中,对于用户退出应用程序的操作不作限定。
电子设备在第三图层绘制退出界面后,电子设备可以以动画的形式显示该退出界面。
S307,电子设备退出应用程序。
电子设备在第二窗口绘制的退出界面播放完毕后,可以退出应用程序。
图4示出了电子设备创建第一窗口和第二窗口的示意图。
如图4所示,电子设备响应于用户启动应用程序的操作,创建第一窗口,该第一窗口包括第第一图层和第二图层。当电子设备加载应用程序后,可以销毁第一窗口并创建第二窗口,第一窗口的第一图层和第二窗口的第三图层均可以挂载在屏幕节点上。电子设备响应于用户退出应用程序的操作,可以在第二窗口的第三图层绘制退出界面。
由上文描述可知,应用程序生命周期与窗口动画耦合,若用户重新启动该应用程序,电子设备需再次创建第一窗口,以及电子设备在退出应用程序时,需要在第二窗口绘制退出界面,而第二窗口是在电子设备加载应用进程后创建的,在一些场景中,若电子设备未完成加载应用进程,而用户执行了退出应用程序的操作,换句话说,电子设备未创建第二窗口,而用户执行了退出应用程序的操作,则电子设备无法绘制退出界面,造成电子设备的跟手性差,降低了用户的体验。此外,当用户针对单一应用程序进行连续的启动和退出的操作时,以及用户进行快速切换多个应用程序时,由于窗口动画与应用程序生命周期的耦合,使得应用程序的生命周期被窗口动画阻塞,若电子设备未彻底退出应用程序,而用户又执行了启动应用程序的操作,则电子设备可能会不响应此次用户的操作,降低了用户体验。
基于此,本申请实施例提供了一种窗口管理方法,可以使得应用程序的启动界面、退出界面与应用程序的生命周期解耦,能够提高电子设备的跟手性,有助于提升用户体验。
图5示出了本申请实施例提供的一种窗口管理方法500的示意性流程图,如图5所示,该方法500包括:
S501,电子设备响应于用户启动第一应用程序的第一操作,创建第一窗口。
电子设备可以响应于检测到用户启动第一应用程序的操作,创建第一窗口,该第一窗口是第一应用程序的预览窗口。该第一窗口包括第一图层和第二图层,其中第一图层为根图层,用于动画操作,第一图层挂载在屏幕节点上,第二图层挂载在第一图层上。
示例性的,用户启动第一应用程序的操作可以是用户在桌面点击该第一应用程序对应的应用图标。
示例性的,用户启动第一应用程序的操作可以是用户的语音指令。
示例性的,用户启动第一应用程序的操作可以是用户的预设手势,该预设手势可以是隔空手势。
示例性的,用户启动第一应用程序的操作可以是用户按压物理按键的操作。
应理解,本申请实施例中,对于用户启动第一应用程序的操作不作限定。
S502,电子设备在第二图层上绘制第一启动界面。
电子设备绘制第一窗口后,可以在第二图层绘制第一启动界面。
S503,电子设备显示该第一启动界面。
电子设备在第二图层绘制第一启动界面后,由于第二图层挂载在第一图层上,而第一图层挂载在屏幕节点上,电子设备可以将第一图层传递至动画模块用以动画形式显示绘制在第二图层的第一启动界面。由于电子设备以动画形式显示第一启动界面,则电子设备显示第一启动界面也可以称为电子设备播放第一启动动画。
示例性的,电子设备可以逐渐放大该第一启动界面直至铺满屏幕,且在放大第一启动界面的过程中逐渐减小该第一启动界面的透明度。
S504,电子设备加载第一应用程序的应用进程以创建第三图层和启动第一应用程序。
电子设备响应于用户启动第一应用程序的操作,可以加载该第一应用程序对应的应用进程,并在第一应用程序的应用进程加载完成时,可以创建第三图层。
需要说明的是,在一些实施例中,电子设备可以同时执行S502和S504,但由于电子设备加载第一应用程序的应用进程的时间长于电子设备在第二图层绘制第一启动界面的时间,则电子设备在完成S502时,仍在执行S504。
在另一些实施例中,电子设备可以先执行S502,然后再执行S504。
S505,电子设备使用第三图层替换第二图层。
电子设备完成第一应用程序的应用进程的加载后,可以创建第三图层,该第三图层绘制有第一应用程序的第一界面,该第三图层挂载在第一图层上。
在一些实施例中,电子设备创建第三图层并在第三图层绘制第一应用程序的第一界面后替换第二图层。
在另一些实施中,电子设备可以先以第三图层替换第二图层,并在完成图层的替换后,在第三图层绘制应用程序的第一界面。
类似的,电子设备使用第三图层替换第二图层后,可以将第一图层传递至动画模块用以动画显示绘制在第三图层的第一应用程序的第一界面。
本申请实施例中,电子设备在启动第一应用程序时,可以仅创建一个窗口,电子设备可以通过该窗口先显示第一启动界面,然后在第一应用程序的应用进程加载完成后以替换图层的方式显示第一应用程序的第一界面,无需额外创建新的窗口,能够减少资源的消耗,提高应用程序的启动速度,提升了用户体验。此外,由于第二图层和第三图层挂载在第一图层上,使得第二图层和第三图层可以继承第一图层的动画属性,因此电子设备在由第一启动界面切换至第一应用程序的第一界面时,可以仅修改第一图层的动画属性,无需感知第二图层和第三图层的变换。
可选的,在一些实施例中,在加载第一应用程序的应用进程后,检测到用户将第一应用程序退后台的操作,该方法500还包括:
S506,电子设备响应于用户将第一应用程序退后台的操作,在第三图层绘制第一退出界面。
示例性的,用户将第一应用程序退后台的操作可以是用户向第一预设方向滑动的操作。
示例性的,用户将第一应用程序退后台的操作可以是用户按压物理案件的操作。
该第一退出界面可以是预设的画面,或也可以是第一应用程序的第二界面,该第二界面为用户在执行关闭第一应用程序操作时该第一应用程序对应的界面。
应理解,本申请实施例中,对于用户将第一应用程序退后台的操作不作限定。
S507,电子设备显示第一退出界面。
电子设备在第三图层绘制完第一退出界面后,可以将第一图层传递至动画模块用以动画显示绘制在第三图层的第一退出界面。
电子设备显示退出界面后可以理解为电子设备播放完退出动画。
需要说明的是,电子设备显示第一退出界面的过程中,第一退出界面的透明度可以逐渐增加直至电子设备显示桌面,即电子设备播放完第一退出动画后,电子设备可以显示桌面。
可选的,在一些实施例中,在加载第一应用程序的应用进程后,检测到用户关闭第一应用程序的操作,该方法还包括:
电子设备使用第二图层替换第三图层;
电子设备在第二图层绘制退出界面;
电子设备显示第一退出界面
示例性的,用户关闭第一应用程序的操作可以是向第二预设方向滑动的操作。
示例性的,用户关闭第一应用程序的操作可以是用户点击关闭控件的操作。
电子设备启动第一应用程序后,又检测到用户关闭第一应用程序的操作,则可以使用第二图层替换第三图层,然后在第二图层绘制第一退出界面,该第一退出界面可以是预设的画面,或也可以是第一应用程序的第二界面,该第二界面为用户在执行关闭第一应用程序操作时该第一应用程序对应的界面。
电子设备在第二图层绘制完第一退出界面后,可以将第一图层传递至动画模块用以动画显示绘制在第二图层的第一退出界面。
可选的,该第一应用程序的第一界面和该第一应用程序的第二界面可以是同一个界面。
类似的,电子设备显示第一退出画面也可以称为电子设备播放第一退出动画。
需要说明的是,应用程序退后台可以理解为应用程序退出前台运行而在后台运行,关闭应用程序可以理解为应用程序退出前台运行且不在后台运行。
可选的,在一些实施例中,该方法500还包括:电子设备在显示第一退出界面后,将第一窗口的状态设置为隐藏(hide)状态。
本申请实施例中,电子设备在关闭第一应用程序时,可以使用第二图层替换第三图层,并在第二图层绘制第一退出界面,实现了应用进程与第一退出界面的解耦,即使应用进程提前关闭,第一退出界面仍可以保持完整性,不会突然消失,提升了用户体验。
图6示出了本申请实施例提供的电子设备启动应用程序和关闭应用程序时第一窗口图层变化示意图。
如图6所示,电子设备响应于用户启动应用程序的操作,创建第一窗口,该第一窗口包括第第一图层和第二图层,电子设备可以在第二图层绘制启动界面,并由第一图层进行上屏送显,从而电子设备可以显示该启动界面。当电子设备加载应用进程后,可以创建第三图层,并使用第三图层替换第二图层。电子设备可以在第三图层绘制应用程序的界面,并由第一图层进行上屏送显,从而电子设备可以显示应用程序的界面。当电子设备响应于用户关闭应用程序的操作,可以使用第二图层替换第三图层,并在第二图层绘制退出界面,并由第一图层上屏送显。
本申请实施例中,电子设备可以在加载应用进程(即启动应用程序)的过程中和退出应用程序的过程(应用程序退后台的过程和关闭应用程序的过程)中响应用户的启动和/或退出应用程序的操作,下文将进行具体描述。
可选的,在一些实施例中,若电子设备在执行S504的过程中,检测到用户退出第一应用程序的第二操作,该方法500还包括:
在第二图层绘制第一退出界面;
显示该第一退出界面;
缓存该第二操作;
在加载该第一应用程序的应用进程后,执行该第二操作以退出该应用程序。
示例性的,第二操作可以是用户向预设方向滑动的操作。例如,第二操作是将第一应用程序退后台的操作,则第二操作可以向第一预设方向滑动。再例如,第二操作是关闭第一应用程序的操作,则第二操作可以是向第二预设方向滑动。
电子设备在加载应用进程时,检测到用户退出应用程序的第二操作,电子设备可以在第二图层绘制第一退出界面,并由第一图层上屏送显,从而电子设备可以显示该第一退出界面,由于电子设备此时处于加载应用进程的过程中,电子设备可以缓存退出第一应用程序的第二操作,在电子设备完成加载应用进程后,应用程序的状态为启动状态,而该状态与缓存的第二操作不对应,则电子设备可以执行第二操作以退出应用程序。
在该实施例中,电子设备显示该第一退出界面包括以下几种可能的情况:
1.电子设备在显示第一启动界面后(即已播放完启动动画),电子设备检测到第二操作,则电子设备可以在第二图层绘制第一退出界面,并显示该第一退出界面。
2.电子设备在显示第一启动界面过程中(即正在播放启动动画),电子设备检测到第二操作,则电子设备可以在第二图层绘制第一退出界面以切换正在显示的启动界面。
3.电子设备在显示第一启动界面过程中(即正在播放启动动画),电子设备检测到第二操作,则电子 设备可以显示第一启动界面后(即已播放完启动动画),在第二图层绘制第一退出界面以显示该第一退出界面。
本申请实施例中,电子设备在启动第一应用程序的过程中若检测到用户退出第一应用程序的操作,可以先显示第一退出界面并缓存用户的操作,在执行完第一启动应用程序后,再执行退出第一应用程序的操作。由于电子设备显示第一退出界面和应用程序的生命周期不再耦合,第一退出界面不再丢失,能够提高电子设备的跟手性,提升用户体验。
可选的,在一些实施例中,第二操作为关闭第一应用程序的操作,则退出第一应用程序的过程为关闭第一应用程序的过程,若电子设备在执行上述实施例中的关闭第一应用程序的过程中,检测到用户启动应用程序的第三操作,该方法500还包括:
创建第二窗口,第二窗口为第一应用程序的预览窗口,第二窗口包括第四图层和第五图层,第四图层用于动画操作,第四图层挂载在屏幕节点上,第五图层挂载在第四图层上;
在该第五图层绘制该第一启动界面;
显示该第一启动界面;
缓存该第三操作;
在关闭该第一应用程序后,执行第三操作以创建第六图层和启动第一应用程序;
使用第六图层替换第五图层以显示第一应用程序的第一界面,第六图层绘制有第一应用程序的第一界面。
示例性的,第三操作可以是用户点击应用图标的操作。
电子设备在关闭应用程序时,检测到用户启动应用程序的操作,电子设备创建第二窗口,并在该第二窗口绘制第一启动界面以显示第一启动界面,由于电子设备此时处于关闭第一应用程序的过程中,电子设备可以缓存启动第一应用程序的第三操作,在电子设备完成关闭第一应用程序后,第一应用程序的状态为关闭状态,而该状态与缓存的第三操作不对应,则电子设备可以执行第三操作以启动应用程序,并创建第六图层替换第二窗口中的第五图层创建以显示第一应用程序的第一界面。
本申请实施例中,电子设备在关闭应用程序的过程中若检测到用户启动应用程序的第三操作,可以先显示第一启动界面并缓存用户的第三操作,在执行完关闭应用程序后,再执行启动第一应用程序的第三操作,避免了因电子设备丢弃第三操作而造成的第一应用程序的最终状态与用户的第三操作不符的问题,能够提高电子设备的跟手性,提升用户体验。
应理解,在该实施例中,电子设备显示该启动界面的情况与上文显示退出界面的情况为了简洁,在此不再赘述。
可选的,在一些实施例中,第二操作为将第一应用程序退后台的操作,则退出第一应用程序的过程为将第一应用程序退后台的过程,若电子设备在执行上述实施例中的将第一应用程序退后台的过程中,检测到用户启动应用程序的第三操作,该方法500还包括:
显示第一应用程序的第一界面;
缓存该第三操作;
在将该第一应用程序退后台后,执行第三操作以启动第一应用程序。
电子设备在将第一应用程序退后台时,检测到用户启动第一应用程序的操作,电子设备可以以动画的形式显示第一应用程序的第一界面,由于电子设备此时处于将第一应用程序退后台的过程中,电子设备可以缓存启动第一应用程序的第三操作,在电子设备完成将第一应用程序退后台,第一应用程序的状态为退后台状态,而该状态与缓存的第三操作不对应,则电子设备可以执行第三操作以启动应用程序。
本申请实施例中,电子设备在将第一应用程序退后台的过程中若检测到用户启动第一应用程序的第三操作,可以先显示第一应用程序的第一界面并缓存用户的第三操作,在执行完将第一应用程序退后台后,再执行启动第一应用程序的第三操作,避免了因电子设备丢弃第三操作而造成的第一应用程序的最终状态与用户的第三操作不符的问题,能够提高电子设备的跟手性,提升用户体验。
可选的,在一些实施例中,第二操作为将第一应用程序退后台的操作,则退出第一应用程序的过程为将第一应用程序退后台的过程,若电子设备在执行上述实施例中的将第一应用程序退后台的过程中,检测到用户启动应用程序的第三操作,该方法500还包括:
显示第一应用程序的第一界面;
缓存该第三操作;
在电子设备仍处于将该第一应用程序退后台的过程中,再次检测到用户将该第一应用程序退后台的第四操作,响应于第四操作,在第三图层绘制退出界面;
显示该第一退出界面;
缓存该第四操作;
在电子设备将该第一应用程序退后台后,根据该用户执行该第三操作和该第四操作的顺序,确定该用户的操作为该第四操作;
丢弃该第四操作。
电子设备在将第一应用程序退后台时,检测到用户启动第一应用程序的第三操作,电子设备可以显示第一应用程序的第一界面,由于电子设备此时处于将第一应用程序退后台的过程中,电子设备可以先缓存启动第一应用程序的第三操作,电子设备此时处于将第一应用程序退后台的过程中,电子设备又检测到用户将第一应用程序退后台的第四操作,电子设备可以在第三图层绘制第一退出界面,从而电子设备可以显示该第一退出界面。在电子设备完成将第一应用程序退后台后,第一应用程序的状态为退后台状态,电子设备共缓存有2个操作,分别为第三操作和第四操作,其中第四操作是最新的操作,则确定第四操作为用户的操作,且由于第四操作与第一应用程序的状态相对应,则电子设备可以丢弃该第四操作。
本申请实施例中,电子设备在将第一应用程序退后台的过程中若检测到用户启动第一应用程序的第三操作,可以先以动画形式显示第一应用程序的第一界面并缓存用户的第三操作,若又检测到用户将第一应用程序退后台的第四操作且电子设备仍处于将第一应用程序退后台的过程中,电子设备可以再显示第一退出界面并缓存第四操作,能够提高电子设备的跟手性,提升用户体验。此外,在执行完将第一应用程序退后台后,将第四操作确定为用户的操作,且由于第四操作与第一应用程序的状态相对应,则可以丢弃该第四操作,保证了第一应用程序的状态与用户最新的操作相对应。
可选的,在一些实施例中,第二操作为将第一应用程序退后台的操作,则退出第一应用程序的过程为将第一应用程序退后台的过程,若电子设备在执行上述实施例中的将第一应用程序退后台的过程中,检测到用户启动应用程序的第三操作,该方法500还包括:
显示第一应用程序的第一界面;
缓存该第三操作;
在电子设备仍处于将该第一应用程序退后台的过程中,检测到用户关闭该第一应用程序的第五操作,响应于第五操作,使用第二图层替换第三图层;
在第二图层绘制第一退出界面;
显示该第一退出界面;
缓存该第五操作;
在电子设备将该第一应用程序退后台后,根据该用户执行该第三操作和该第五操作的顺序,确定该用户的操作为该第五操作;
执行第五操作以关闭该第一应用程序。
电子设备在将第一应用程序退后台时,检测到用户启动应用程序的第三操作,电子设备可以显示第一应用程序的第一界面,由于电子设备此时处于将第一应用程序退后台的过程中,电子设备可以先缓存启动第一应用程序的第三操作,电子设备此时处于将第一应用程序退后台的过程中,电子设备又检测到用户关闭第一应用程序的第五操作,电子设备可以使用第二图层替换第三图层,并在第二图层绘制第一退出界面,从而电子设备可以显示该第一退出界面。在电子设备完成将第一应用程序退后台后,第一应用程序的状态为退后台状态,电子设备共缓存有2个操作,分别为第三操作和第五操作,其中第五操作是最新的操作,则确定第五操作为用户的操作,且由于第五操作与第一应用程序的状态不对应,则电子设备可以执行该第五操作以关闭第一应用程序。
本申请实施例中,电子设备在将第一应用程序退后台的过程中若检测到用户启动第一应用程序的第三操作,可以先以动画形式显示第一应用程序的第一界面并缓存用户的第三操作,若又检测到用户关闭第一应用程序的第五操作且电子设备仍处于将第一应用程序退后台的过程中,电子设备可以再显示第一退出界面并缓存第五操作,能够提高电子设备的跟手性,提升用户体验。此外,在执行完将第一应用程序退后台后,将第五操作确定为用户的操作,且由于第五操作与第一应用程序的状态不对应,则可以执行第五操作,保证了第一应用程序的状态与用户最新的操作相对应。
可选的,在一些实施例中,第二操作为将第一应用程序退后台的操作,则退出第一应用程序的过程为将第一应用程序退后台的过程,若电子设备在执行上述实施例中的将第一应用程序退后台的过程中,检测到用户启动第二应用程序的第六操作,该方法500还包括:
创建第三窗口,该第三窗口为第二应用程序的预览窗口,第三窗口包括第七图层和第八图层,第七图层用于动画操作,第七图层挂载在屏幕节点上,第八图层挂载在第七图层上;
在第八图层绘制第二启动界面;
显示第二启动界面;
缓存该第六操作;
在将第一应用程序退后台后,执行第六操作以创建第九图层和启动第二应用程序;
使用第九图层替换第八图层以显示第二应用程序的第一界面,其中在第九图层绘制有第二应用程序的第一界面。
电子设备在将第一应用程序退后台时,检测到用户启动第二应用程序的第六操作,电子设备可以创建第三窗口,并在第三窗口绘制第二启动界面以显示第二启动界面,第二启动界面时第二应用程序对应的启动界面,由于电子设备此时处于将第一应用程序退后台的过程中,电子设备可以先缓存启动第二应用程序的第六操作。在电子设备完成将第一应用程序退后台后,再执行第六操作以创建第九图层和启动第二应用程序,然后使用第九图层替换第八图层,第九图层绘制有第二应用程序的第一界面,从而电子设备可以显示该第二应用程序的第一界面。
本申请实施例中,电子设备在将第一应用程序退后台的过程中若检测到用户启动第二应用程序的第六操作,可以先以动画形式显示第二启动界面并缓存用户的第六操作,在电子设备执行完将第一应用程序退后台后,将执行第六操作,保证了第六操作被执行。
可选的,在一些实施例中,第二操作为关闭第一应用程序的操作,则退出第一应用程序的过程为关闭第一应用程序的过程,若电子设备在执行上述实施例中的关闭第一应用程序的过程中,检测到用户启动第一应用程序的第操作,该方法500还包括:
创建第二窗口,该第二窗口为第一应用程序的预览窗口,第三窗口包括第四图层和第五图层,第四图层用于动画操作,第四图层挂载在屏幕节点上,第五图层挂载在第四图层上;
在第五图层绘制第一启动界面;
显示第一启动界面;
缓存该第三操作;
在电子设备仍处于关闭第一应用程序的过程中,再次检测到用户关闭第一应用程序的第五操作,响应于第五操作,在第五图层绘制第一退出界面;
显示第一退出界面;
缓存第五操作;
在关闭第一应用程序后,根据用户执行第三操作和第五操作的顺序,确定用户的操作为第五操作;
丢弃所述第五操作。
电子设备在关闭第一应用程序时,检测到用户启动第一应用程序的第三操作,电子设备可以创建第二窗口,并在第二窗口绘制第一启动界面以显示第一启动界面,由于电子设备此时处于关闭第一应用程序的过程中,电子设备可以先缓存启动第一应用程序的第三操作,电子设备此时处于关闭第一应用程序的过程中,电子设备又检测到用户关闭第一应用程序的第五操作,电子设备可以在第五图层绘制第一退出界面,从而电子设备可以显示该第一退出界面。在电子设备关闭第一应用程序退后台后,第一应用程序的状态为关闭状态,电子设备共缓存有2个操作,分别为第三操作和第五操作,其中第五操作是最新的操作,则确定第五操作为用户的操作,且由于第四操作与第一应用程序的状态相对应,则电子设备可以丢弃该第五操作。
本申请实施例中,电子设备在关闭第一应用程序的过程中若检测到用户启动第一应用程序的第三操作,可以创建第二窗口以显示第一启动界面并缓存用户的第三操作,若又检测到用户关闭第一应用程序的第五操作且电子设备仍处于关闭第一应用程序的过程中,电子设备可以再显示第一退出界面并缓存第五操作,能够提高电子设备的跟手性,提升用户体验。此外,在关闭第一应用程序后,将第五操作确定为用户的操作,且由于第五操作与第一应用程序的状态相对应,则可以丢弃该第五操作,保证了第一应用程序的状态与用户最新的操作相对应。
可选的,在一些实施例中,若电子设备在执行S504的过程中,检测到用户退出应用程序的第二操作,该方法500还包括:
在第二图层绘制第一退出界面;
显示该第一退出界面;
缓存该第二操作;
在该电子设备仍处于加载该第一应用程序的应用进程的过程中,检测到该用户启动该第一应用程序的第三操作,响应于该第三操作,在该第二图层绘制该第一启动界面;
显示该第一启动界面;
缓存该第三操作;
在加载该第一应用程序的应用进程后,根据该用户执行该第二操作和该第三操作的顺序,确定该用户的操作为该第三操作;
丢弃该第三操作。
电子设备在加载应用进程时,检测到用户退出第一应用程序的第二操作,电子设备可以在第二图层绘制第一退出界面,并由第一图层上屏送显,从而电子设备可以显示该第一退出界面,由于电子设备此时处于加载应用进程的过程中,电子设备可以先缓存退出第一应用程序的第二操作,电子设备此时处于加载应用进程的过程中,电子设备又检测到用户启动第一应用程序的第三操作,电子设备可以在第二图层绘制第一启动界面,并由第一图层上屏送显,从而电子设备可以显示该第一启动界面。在电子设备完成加载应用进程后,应用程序的状态为启动状态,电子设备共缓存有2个操作,分别为第二操作和第三操作,其中第三操作是最新的操作,则确定第三操作为用户的操作,且由于第三操作与第一应用程序的状态相对应,则电子设备可以丢弃该第三操作。
本申请实施例中,电子设备在加载应用进程的过程中若检测到用户退出第一应用程序的第二操作,可以先显示第一退出界面并缓存用户的第三操作,若又检测到用户退出第一应用程序的第四操作且电子设备仍处于退出第一应用程序的过程中,电子设备可以再显示第一退出界面并缓存第四操作,能够提高电子设备的跟手性,提升用户体验。此外,在执行完退出第一应用程序后,将第四操作确定为用户的操作,且由于第四操作与第一应用程序的状态相对应,则可以丢弃该第四操作,保证了应用程序的状态与用户最新的操作相对应。
在上文描述中介绍了本申请实施例提供的窗口管理方法,下文中将介绍电子设备执行本申请实施例的窗口管理方法时的内部数据流向。
图7示出了本申请实施例提供的一种窗口管理方法的内部数据流向示意图。
如图7所示,电子设备包括应用管理模块、窗口管理模块。当用户执行启动第一应用程序的第一操作,应用管理模块响应于该第一操作,可以加载第一应用程序的应用进程并向窗口管理模块发送指示信息#1和指示信息#2,该指示信息#1用于指示窗口管理模块显示第一启动界面,该指示信息#2用于指示显示(show)窗口。窗口管理模块接收该指示信息#1和指示信息#2后可以创建第一窗口并显示第一启动界面,该第一窗口的状态为显示状态,该第一窗口包括第一图层和第二图层,其中第一图层挂载在屏幕节点,用于动画操作,第二图层挂载在第一图层,第一启动界面绘制在第二图层。
当应用管理模块加载完第一应用程序的应用进程后,窗口管理模块可以创建第三图层,并使用第三图层替换第二图层以显示第一应用程序的第一界面。
当应用管理模块加载完第一应用程序的应用进程后,用户执行退出第一应用程序的第二操作,若第二操作为关闭第一应用程序的操作,窗口管理模块可以响应该第二操作,创建第三图层以替换第二图层并向应用管理模块发送指示信息#3,其中第三图层绘制有第一应用程序的第一界面,该指示信息#3用于指示应用管理模块关闭该第一应用程序。应用管理模块接收指示信息#3后可以关闭该第一应用程序。
若第二操作为将第一应用程序退后台的操作,窗口管理模块可以响应该第二操作,在第二图层绘制第一退出界面并向应用管理模块发送指示信息#3,该指示信息#3用于指示应用管理模块将该第一应用程序退后台。应用管理模块接收指示信息#3后可以将该第一应用程序退后台。
图8示出了本申请实施例提供的另一种窗口管理方法的内部数据流向示意图。
如图8所示,电子设备包括应用管理模块、窗口管理模块。当用户执行启动应用程序的第一操作,应用管理模块响应于该第一操作,可以加载应用进程并向窗口管理模块发送指示信息#1和指示信息#2,该指示信息#1用于指示窗口管理模块显示启动界面,该指示信息#2用于指示显示窗口。窗口管理模块接 收该指示信息#1和指示信息#2后可以创建第一窗口并显示第一启动界面,该第一窗口的状态为显示状态,该第一窗口包括第一图层和第二图层,其中第一图层挂载在屏幕节点,用于动画操作,第二图层挂载在第一图层,第一启动界面绘制在第一图层。窗口管理模块还可以缓存该指示信息#2。
在应用管理模块加载第一应用程序的应用进程的过程中,用户执行退出应用程序的第二操作,窗口管理模块可以响应该第二操作,在第二图层绘制第一退出界面并向应用管理模块发送指示信息#3,该指示信息#3用于指示应用管理模块退出该第一应用程序。由于应用管理模块此时在加载应用进程,则应用管理模块可以缓存该指示信息#3。当应用管理模块加载完应用进程后,第一应用程序的状态为启动状态,而指示信息#3指示退出应用程序,则应用管理模块根据缓存的该指示信息#3退出该第一应用程序。应用管理模块在退出第一应用程序的过程中可以向窗口管理模块发送指示信息#4,该指示信息#4用于指示隐藏窗口#1。若窗口管理模块正在显示第一退出画面,则窗口管理模块可以缓存该指示信息#4。
当窗口管理模块显示第一退出画面后,即播放完第一退出动画,窗口管理模块缓存有指示信息#2和指示信息#4,由于窗口管理模块最后执行的是显示第一退出界面,窗口管理模块可以在显示完第一退出界面后,根据该指示信息#4将窗口#1设置为隐藏状态。
图9示出了本申请实施例提供的另一种窗口管理方法的内部数据流向示意图。
如图9所示,电子设备包括应用管理模块、窗口管理模块。当用户执行启动应用程序的第一操作,应用管理模块响应于该第一操作,可以加载应用进程并向窗口管理模块发送指示信息#1和指示信息#2。窗口管理模块接收该指示信息#1和指示信息#2后可以创建第一窗口并显示第一启动界面,该第一窗口的状态为显示状态,窗口管理模块还可以缓存该指示信息#2。
应理解,针对指示信息#1、指示信息#2、第一窗口的详细描述可以参见上文,为了简洁,在此不再赘述。
在应用管理模块加载第一应用程序的应用进程的过程中,用户执行关闭第一应用程序的第二操作,窗口管理模块可以响应该第二操作,在第二图层绘制第一退出界面并向应用管理模块发送指示信息#3,应用管理模块可以缓存该指示信息#3,该指示信息#3用于指示应用管理模块关闭该第一应用程序。当应用管理模块加载完第一应用进程后,应用程序的状态为启动状态,而指示信息#3指示关闭第一应用程序,则应用管理模块根据缓存的该指示信息#3关闭该第一应用程序。应用管理模块在关闭第一应用程序的过程中可以向窗口管理模块发送指示信息#4,该指示信息#4用于指示销毁第一窗口。若窗口管理模块正在显示第一退出界面,则窗口管理模块可以缓存该指示信息#4,并在窗口管理模块显示第一退出界面后,将第一窗口销毁,在销毁第一窗口后,窗口管理模块不再缓存指示信息#2和指示信息#4。
应用管理模块关闭应用程序的过程中,用户执行启动应用程序的第三操作,应用管理模块响应于该第三操作,向窗口管理模块发送指示信息#5和指示信息#6,该指示信息#5用于指示窗口管理模块显示第一启动界面,该指示信息#6用于指示显示(show)窗口。窗口管理模块接收该指示信息#5和指示信息#6后可以创建第二窗口并显示第一启动界面,该第二窗口的状态为显示状态,该第二窗口包括第四图层和第五图层,其中第四图层挂载在屏幕节点,用于动画操作,第五图层挂载在第四图层,第一启动界面绘制在第五图层。由于应用管理模块仍处于关闭应用第一应用程序的过程中,应用管理模块可以缓存第三操作。当应用管理模块关闭第一应用程序后,由于第三操作与第一应用程序的状态不对应,则应用管理模块可以根据该第三操作再次加载应用进程。
应用管理模块再次加载应用进程时,可以向窗口管理模块发送指示信息#7,该指示信息#7用于指示显示窗口。若窗口管理模块正在显示启动界面,则窗口管理模块可以缓存该指示信息#7。
当应用管理模块加载完第一应用程序的应用进程后,窗口管理模块可以创建第六图层,并使用第六图层替换第五图层以显示第一应用程序的第一界面。
当窗口管理模块显示第一启动界面后,窗口管理模块缓存有指示信息#6、指示信息#7,由于窗口管理模块最后执行的是在第二窗口显示第一启动界面,窗口管理模块可以在显示第一启动界面后,根据该指示信息#7将第二窗口设置为显示状态。
图10示出了本申请实施例提供的另一种窗口管理方法的内部数据流向示意图。
如图10所示,电子设备包括应用管理模块、窗口管理模块。当用户执行启动应用程序的第一操作,应用管理模块响应于该第一操作,可以加载应用进程并向窗口管理模块发送指示信息#1和指示信息#2。窗口管理模块接收该指示信息#1和指示信息#2后可以创建第一窗口并显示第一启动界面,该第一窗口的状态为显示状态,窗口管理模块还可以缓存该指示信息#2。
应理解,针对指示信息#1、指示信息#2、第一窗口的详细描述可以参见上文,为了简洁,在此不再赘述。
在应用管理模块加载第一应用程序的应用进程的过程中,用户执行将第一应用程序退后台的第二操作,窗口管理模块可以响应该第二操作,在第二图层绘制第一退出界面并向应用管理模块发送指示信息#3,该指示信息#3用于指示应用管理模块将第一应用程序退后台,应用管理模块可以缓存该指示信息#3。当应用管理模块加载完第一应用进程后,应用程序的状态为启动状态,而指示信息#3指示将第一应用程序退后台,则应用管理模块根据缓存的该指示信息#3将该第一应用程序退后台。应用管理模块在将第一应用程序的过程中可以向窗口管理模块发送指示信息#4,该指示信息#4用于指示隐藏第一窗口。若窗口管理模块正在显示第一退出画面,则窗口管理模块可以缓存该指示信息#4。
应用管理模块将第一应用进程退后台的过程中,用户执行启动应用程序的第三操作,应用管理模块响应于该第三操作,向窗口管理模块发送指示信息#8,该指示信息#5用于指示窗口管理模块显示第一应用程序的第一界面。由于应用管理模块仍处于关闭应用第一应用程序的过程中,应用管理模块可以缓存第三操作。当应用管理模块关闭第一应用程序后,由于第三操作与第一应用程序的状态不对应,则应用管理模块可以根据该第三操作再次启动应用程序。
应用管理模块再次启动应用程序时,可以向窗口管理模块发送指示信息#9,该指示信息#9用于指示显示窗口。若窗口管理模块正在显示第一启动界面,则窗口管理模块可以缓存该指示信息#6。
当窗口管理模块显示第一启动界面后,窗口管理模块缓存有指示信息#2、指示信息#4、指示信息#9,由于窗口管理模块最后执行的是在第一窗口显示第一启动界面,窗口管理模块可以在显示第一启动界面后,根据该指示信息#9将第一窗口设置为显示状态。
图11示出了本申请实施例提供的另一种窗口管理方法的内部数据流向示意图。
如图11所示,电子设备包括应用管理模块、窗口管理模块。当用户执行启动应用程序的第一操作,应用管理模块响应于该第一操作,可以加载应用进程并向窗口管理模块发送指示信息#1和指示信息#2。窗口管理模块接收该指示信息#1和指示信息#2后可以创建第一窗口并显示第一启动界面,该第一窗口的状态为显示状态,窗口管理模块还可以缓存该指示信息#2。
应理解,针对指示信息#1、指示信息#2、第一窗口的详细描述可以参见上文,为了简洁,在此不再赘述。
在应用管理模块加载第一应用程序的应用进程的过程中,用户执行将第一应用程序退后台的第二操作,窗口管理模块可以响应该第二操作,在第二图层绘制第一退出界面并向应用管理模块发送指示信息#3,该指示信息#3用于指示应用管理模块将第一应用程序退后台,应用管理模块可以缓存该指示信息#3。当应用管理模块加载完第一应用进程后,应用程序的状态为启动状态,而指示信息#3指示将第一应用程序退后台,则应用管理模块根据缓存的该指示信息#3将该第一应用程序退后台。应用管理模块在将第一应用程序的过程中可以向窗口管理模块发送指示信息#4,该指示信息#4用于指示隐藏第一窗口。若窗口管理模块正在显示第一退出画面,则窗口管理模块可以缓存该指示信息#4。
应用管理模块将第一应用进程退后台的过程中,用户执行启动第一应用程序的第三操作,应用管理模块响应于该第三操作,向窗口管理模块发送指示信息#10,该指示信息#10用于指示窗口管理模块显示第一启动界面。由于应用管理模块仍处于关闭应用第一应用程序的过程中,应用管理模块可以缓存第三操作。
当应用管理模块仍处于关闭应用第一应用程序的过程中,用户再次执行将第一应用程序退后台的第四操作,窗口管理模块可以响应该第四操作,显示第一退出界面,并向应用管理模块发送指示信息#11,该指示信息#11用于指示应用管理模块将第一应用程序退后台。
当应用管理模块完成第一次将第一应用程序退后台后,应用管理模块缓存有第三操作和第四操作,第四操作为用户最新的操作,且第四操作与第一应用程序的状态相对应,则应用管理模块可以丢弃该第四操作
当窗口管理模块显示第一退出界面后,窗口管理模块缓存有指示信息#2、指示信息#4,由于窗口管理模块最后执行的是在第一窗口显示第一推荐界面,窗口管理模块可以在显示第一退出界面后,根据该指示信息#4将第一窗口设置为隐藏状态。
图12示出了本申请实施例提供的另一种窗口管理方法的内部数据流向示意图。
如图12所示,电子设备包括应用管理模块、窗口管理模块。当用户执行启动应用程序的第一操作,应用管理模块响应于该第一操作,可以加载应用进程并向窗口管理模块发送指示信息#1和指示信息#2。窗口管理模块接收该指示信息#1和指示信息#2后可以创建第一窗口并显示第一启动界面,该第一窗口的状态为显示状态,窗口管理模块还可以缓存该指示信息#2。
应理解,针对指示信息#1、指示信息#2、第一窗口的详细描述可以参见上文,为了简洁,在此不再赘述。
在应用管理模块加载第一应用程序的应用进程的过程中,用户执行关闭第一应用程序的第二操作,窗口管理模块可以响应该第二操作,在第二图层绘制第一退出界面并向应用管理模块发送指示信息#3,应用管理模块可以缓存该指示信息#3,该指示信息#3用于指示应用管理模块关闭该第一应用程序。当应用管理模块加载完第一应用进程后,应用程序的状态为启动状态,而指示信息#3指示关闭第一应用程序,则应用管理模块根据缓存的该指示信息#3关闭该第一应用程序。应用管理模块在关闭第一应用程序的过程中可以向窗口管理模块发送指示信息#4,该指示信息#4用于指示销毁第一窗口。若窗口管理模块正在显示第一退出界面,则窗口管理模块可以缓存该指示信息#4,并在窗口管理模块显示第一退出界面后,将第一窗口销毁,在销毁第一窗口后,窗口管理模块不再缓存指示信息#2和指示信息#4。
应用管理模块关闭应用程序的过程中,用户执行启动应用程序的第三操作,应用管理模块响应于该第三操作,向窗口管理模块发送指示信息#12和指示信息#13,该指示信息#12用于指示窗口管理模块显示第一启动界面,该指示信息#13用于指示显示(show)窗口。窗口管理模块接收该指示信息#12和指示信息#13后可以创建第二窗口并显示第一启动界面,该第二窗口的状态为显示状态,该第二窗口包括第四图层和第五图层,其中第四图层挂载在屏幕节点,用于动画操作,第五图层挂载在第四图层,第一启动界面绘制在第五图层。由于应用管理模块仍处于关闭应用第一应用程序的过程中,应用管理模块可以缓存第三操作。
当应用管理模块仍处于关闭第一应用程序的过程中,用于再次执行关闭第一应用程序的第五操作,窗口管理模块可以响应该第五操作,显示第一退出界面,并向应用管理模块发送指示信息#14,该指示信息#14用于指示关闭第一应用程序。
当应用管理模块第一次关闭第一应用程序后,缓存有第三操作和第五操作,第五操作为用户最新的操作,且第五操作与第一应用程序的状态对应,则应用管理模块可以丢弃该第五操作。
当窗口管理模块显示第一退出界面后,由于应用管理模块已将第一应用程序关闭,则窗口管理模块可以销毁该第一窗口。
图13示出了本申请实施例提供的另一种窗口管理方法的内部数据流向示意图。
如图13所示,电子设备包括应用管理模块、窗口管理模块。当用户执行启动应用程序的第一操作,应用管理模块响应于该第一操作,可以加载应用进程并向窗口管理模块发送指示信息#1和指示信息#2。窗口管理模块接收该指示信息#1和指示信息#2后可以创建第一窗口并显示第一启动界面,该第一窗口的状态为显示状态,窗口管理模块还可以缓存该指示信息#2。
应理解,针对指示信息#1、指示信息#2、第一窗口的详细描述可以参见上文,为了简洁,在此不再赘述。
在应用管理模块加载第一应用程序的应用进程的过程中,用户执行关闭第一应用程序的第二操作,窗口管理模块可以响应该第二操作,在第二图层绘制第一退出界面并向应用管理模块发送指示信息#3,应用管理模块可以缓存该指示信息#3,该指示信息#3用于指示应用管理模块关闭该第一应用程序。当应用管理模块加载完第一应用进程后,应用程序的状态为启动状态,而指示信息#3指示关闭第一应用程序,则应用管理模块根据缓存的该指示信息#3关闭该第一应用程序。应用管理模块在关闭第一应用程序的过程中可以向窗口管理模块发送指示信息#4,该指示信息#4用于指示销毁第一窗口。若窗口管理模块正在显示第一退出界面,则窗口管理模块可以缓存该指示信息#4,并在窗口管理模块显示第一退出界面后,将第一窗口销毁,在销毁第一窗口后,窗口管理模块不再缓存指示信息#2和指示信息#4。
应用管理模块将第一应用程序退后台的过程中,用户执行启动第二应用程序的第六操作,应用管理模块响应于该第六操作,向窗口管理模块发送指示信息#15和指示信息#16,该指示信息#15用于指示窗口管理模块显示第二启动界面,该第二启动界面为第二应用程序的启动界面,该指示信息#16用于指示显示(show)窗口。窗口管理模块接收该指示信息#15和指示信息#17后可以创建第三窗口并显示第二启动界面,该第三窗口的状态为显示状态,该第三窗口包括第七图层和第八图层,其中第七图层挂载在屏幕 节点,用于动画操作,第八图层挂载在第七图层,第二启动界面绘制在第八图层。由于应用管理模块仍处于将第一应用程序退后台的过程中,应用管理模块可以缓存第六操作。
当应用管理模块加载完第一应用程序的应用进程后,窗口管理模块可以创建第九图层,并使用第九图层替换第八图层以显示第二应用程序的第一界面,第九图层绘制有第二应用程序的第一界面。
当应用管理模块将第一应用程序退后台后,可以执行第六操作,即加载第二应用程序的应用进程。
图14示出了本申请实施例提供的另一种窗口管理方法的内部数据流向示意图。
如图14所示,电子设备包括应用管理模块、窗口管理模块。当用户执行启动第一应用程序的第一操作,应用管理模块响应于该第一操作,可以加载应用进程并向窗口管理模块发送指示信息#1和指示信息#2。窗口管理模块接收该指示信息#1和指示信息#2后可以创建第一窗口并显示启动界面,该第一窗口的状态为显示状态,窗口管理模块还可以缓存该指示信息#2。
应理解,针对指示信息#1、指示信息#2、第一窗口的详细描述可以参见上文,为了简洁,在此不再赘述。
在应用管理模块加载应用进程的过程中,用户执行退出第一应用程序的第二操作,窗口管理模块可以响应该第二操作,在第二图层绘制退出界面并向应用管理模块发送指示信息#3,应用管理模块可以缓存该指示信息#3。当应用管理模块仍处于加载完应用进程的过程中,用户又执行启动第一应用程序的第三操作,窗口管理模块可以响应该第三操作,在第二图层绘制第一启动界面并向应用管理模块发送指示信息#5,由于应用管理模块此时处于加载应用进程的过程中,应用管理模块可以缓存该指示信息#5。当应用管理模块完成加载应用进程后,应用管理模块缓存有指示信息#3和指示信息#5,其中指示信息#5是用户最新的操作,且指示信息#5与第一应用程序的状态对应,则应用管理模块可以丢弃该第三操作。
当窗口管理模块显示第一启动界面后,窗口管理模块缓存有指示信息#2,由于窗口管理模块最后执行的是显示第一启动界面,窗口管理模块可以在显示第一启动界面后,根据该指示信息#2将第一窗口设置为显示状态。
当应用管理模块加载完第一应用程序的应用进程后,窗口管理模块可以创建第三图层,并使用第三图层替换第二图层以显示第一应用程序的第一界面。
上述主要从电子设备的角度对本申请实施例提供的一种窗口管理方法进行了介绍以及对本申请实施例提供的窗口管理方法的内部数据流向。可以理解的是,电子设备为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
本申请实施例可以根据上述方法示例对电子设备进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
在采用了对应各个功能的划分各个功能模块的情况下,图12示出了本申请实施例提供的电子设备1500的示意性结构图,如图12所示,电子设备1500包括应用管理模块1510,窗口管理模块1520,其中,
窗口管理模块1520,用于响应于用户启动应用程序的第一操作,创建第一窗口,该第一窗口为应用程序的预览窗口,该第一窗口包括第一图层和第二图层,该第一图层用于动画操作,该第一图层挂载在屏幕节点上,该第二图层挂载在该第一图层上。
窗口管理模块1520,还用于在第二图层绘制启动界面;
窗口管理模块1520,还用于显示启动界面;
应用管理模块1510,用于加载所述应用程序的应用进程以创建第三图层和启动所述应用程序;
窗口管理模块1520,还用于使用第三图层替换第二图层以显示应用程序的第一界面,其中,在第三图层上绘制有应用程序的第一界面。
需要说明的是,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。本申请实施例提供的电子设备,用于执行上述窗口管理的方法,因此可以达到与上述相同的效果。
本申请实施例还提供了一种电子设备,包括:处理器、存储器、应用程序以及计算机程序。上述各器件可以通过一个或多个通信总线连接。其中,该一个或多个计算机程序被存储在上述存储器中并被配置为被该一个或多个处理器执行,该一个或多个计算机程序包括指令,上述指令可以用于使电子设备执行上述各实施例中电子设备的各个步骤。
示例性地,上述处理器具体可以为图1所示的处理器110,上述存储器具体可以为图1所示的内部存储器120和/或与电子设备连接的外部存储器。
本申请实施例还提供一种芯片,所述芯片包括处理器和通信接口,所述通信接口用于接收信号,并将所述信号传输至所述处理器,所述处理器处理所述信号,使得如前文中任一种可能的实现方式中所述的生成歌单的方法被执行。
本实施例还提供一种计算机可读存储介质,该计算机可读存储介质中存储有计算机指令,当该计算机指令在电子设备上运行时,使得电子设备执行上述相关方法步骤实现上述实施例中的生成歌单的方法。
本实施例还提供了一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行上述相关步骤,以实现上述实施例中的生成歌单的方法。
以上实施例中所用,根据上下文,术语“当…时”或“当…后”可以被解释为意思是“如果…”或“在…后”或“响应于确定…”或“响应于检测到…”。类似地,根据上下文,短语“在确定…时”或“如果检测到(所陈述的条件或事件)”可以被解释为意思是“如果确定…”或“响应于确定…”或“在检测到(所陈述的条件或事件)时”或“响应于检测到(所陈述的条件或事件)”。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。

Claims (16)

  1. 一种窗口管理方法,其特征在于,所述方法应用于电子设备,所述方法包括:
    响应于用户启动第一应用程序的第一操作,创建第一窗口,所述第一窗口为所述第一应用程序的预览窗口,所述第一窗口包括第一图层和第二图层,所述第一图层用于动画操作,所述第一图层挂载在屏幕节点上,所述第二图层挂载在所述第一图层上;
    在所述第二图层绘制第一启动界面;
    显示所述第一启动界面;
    加载所述第一应用程序的应用进程以创建第三图层和启动所述第一应用程序;
    使用所述第三图层替换所述第二图层以显示所述第一应用程序的第一界面,其中,在所述第三图层上绘制有所述第一应用程序的第一界面。
  2. 根据权利要求1所述的方法,其特征在于,在加载所述第一应用程序的应用进程的过程中,检测到所述用户退出第一应用程序的第二操作,所述方法还包括:
    在所述第二图层绘制第一退出界面;
    显示所述第一退出界面;
    缓存所述第二操作;
    在加载所述第一应用程序的应用进程后,执行所述第二操作以退出所述第一应用程序和隐藏所述第一窗口。
  3. 根据权利要求2所述的方法,其特征在于,所述第二操作为关闭所述第一应用程序的操作,在关闭所述第一应用程序的过程中,检测到所述用户启动所述第一应用程序的第三操作,所述方法还包括:
    创建第二窗口,所述第二窗口为所述第一应用程序的预览窗口,所述第二窗口包括第四图层和第五图层,所述第四图层用于动画操作,所述第四图层挂载在所述屏幕节点上,所述第五图层挂载在所述第四图层上;
    在所述第五图层绘制所述第一启动界面;
    显示所述第一启动界面;
    缓存所述第三操作;
    在关闭所述第一应用程序后,执行所述第三操作以创建第六图层和启动所述第一应用程序;
    使用所述第六图层替换所述第五图层以显示所述第一应用程序的第一界面,其中,在所述第六图层上绘制有所述第一应用程序的第一界面。
  4. 根据权利要求2所述的方法,其特征在于,所述第二操作为将所述第一应用程序退后台的操作,在将所述第一应用程序退后台的过程中,检测到所述用户启动所述第一应用程序的第三操作,所述方法包括:
    显示所述第一应用程序的第一界面;
    缓存所述第三操作;
    在将所述第一应用程序退后台后,执行所述第三操作以启动所述第一应用程序。
  5. 根据权利要求2所述的方法,其特征在于,所述第二操作为将所述第一应用程序退后台的操作,在将所述第一应用程序退后台的过程中,检测到所述用户启动所述第一应用程序的第三操作,所述方法还包括:
    显示所述第一应用程序的第一界面;
    缓存所述第三操作;
    在所述电子设备仍处于将所述应用程序退后台的过程中,再次检测到所述用户将所述第一应用程序退后台的第四操作,响应于所述第四操作,在所述第三图层绘制所述第一退出界面;
    显示所述第一退出界面;
    缓存所述第四操作;
    在将所述第一应用程序退后台后,根据所述用户执行所述第三操作和所述第四操作的顺序,确定所述用户的操作为所述第四操作;
    丢弃所述第四操作。
  6. 根据权利要求2所述的方法,其特征在于,所述第二操作为将所述第一应用程序退后台的操作,在将所述第一应用程序退后台的过程中,检测到所述用户启动所述第一应用程序的第三操作,所述方法还包括:
    显示所述第一应用程序的第一界面;
    缓存所述第三操作;
    在所述电子设备仍处于将所述第一应用程序退后台的过程中,检测到所述用户关闭所述第一应用程序的第五操作,响应于所述第五操作,使用所述第二图层替换所述第三图层;
    在所述第二图层绘制所述第一退出界面;
    显示所述第一退出界面;
    缓存所述第五操作;
    在将所述第一应用程序退后台后,根据所述用户执行所述第三操作和所述第五操作的顺序,确定所述用户的操作为所述第五操作;
    执行所述第五操作以关闭所述第一应用程序。
  7. 根据权利要求2所述的方法,其特征在于,所述第二操作为关闭所述第一应用程序的操作,在关闭所述第一应用程序的过程中,检测到所述用户启动所述第一应用程序的第三操作,所述方法还包括:
    创建第二窗口,所述第二窗口为所述第一应用程序的预览窗口,所述第二窗口包括第四图层和第五图层,所述第四图层用于动画操作,所述第四图层挂载在所述屏幕节点上,所述第五图层挂载在所述第四图层上;
    在所述第五图层绘制所述第一启动界面;
    显示所述第一启动界面;
    缓存所述第三操作;
    在所述电子设备仍处于关闭所述第一应用程序的过程中,再次检测到所述用户关闭所述第一应用程序的第五操作,响应于所述第五操作,在所述第五图层绘制所述第一退出界面;
    显示所述第一退出界面;
    缓存所述第五操作;
    在关闭所述第一应用程序后,根据所述用户执行所述第三操作和所述第五操作的顺序,确定所述用户的操作为所述第五操作;
    丢弃所述第五操作。
  8. 根据权利要求2所述的方法,其特征在于,所述第二操作为将所述第一应用程序退后台的操作,在将所述第一应用程序退后台的过程中,检测到所述用户启动所述第二应用程序的第六操作,所述方法还包括:
    创建第三窗口,所述第三窗口为所述第二应用程序的预览窗口,所述第三窗口包括第七图层和第八图层,所述第七图层用于动画操作,所述第七图层挂载在所述屏幕节点上,所述第八图层挂载在所述第七图层上;
    在所述第八图层绘制所述第二启动界面;
    显示所述第二启动界面;
    缓存所述第六操作;
    在将所述第一应用程序退后台后,执行所述第六操作以创建第九图层和启动所述第二应用程序;
    使用所述第九图层替换所述第八图层以显示所述第二应用程序的第一界面,其中,在所述第九图层上绘制有所述第二应用程序的第一界面。
  9. 根据权利要求1所述的方法,其特征在于,在加载所述第一应用程序的应用进程的过程中,检测到所述用户退出所述第一应用程序的第二操作,所述方法还包括:
    在所述第二图层绘制第一退出界面;
    显示所述第一退出界面;
    缓存所述第二操作;
    在所述电子设备仍处于加载所述第一应用程序的应用进程的过程中,检测到所述用户启动所述第一应用程序的第三操作,响应于所述第三操作,在所述第二图层绘制所述第一启动界面;
    显示所述第一启动界面;
    缓存所述第三操作;
    在加载所述第一应用程序的应用进程后,根据所述用户执行所述第二操作和所述第三操作的顺序,确定所述用户的操作为所述第三操作;
    丢弃所述第三操作。
  10. 根据权利要求1至9中任一项所述的方法,其特征在于,在加载所述第一应用程序的应用进程后,检测到所述用户关闭所述第一应用程序的操作,所述方法还包括:
    使用所述第二图层替换所述第三图层;
    在所述第二图层绘制第一退出界面;
    显示所述第一退出界面并关闭所述应用程序。
  11. 根据权利要求1至9中任一项所述的方法,其特征在于,在加载所述第一应用程序的应用进程后,检测到所述用户将所述第一应用程序退后台的操作,所述方法还包括:
    在所述第三图层绘制第一退出界面;
    显示所述退出界面并将所述应用程序退后台。
  12. 根据权利要求1至11中任一项所述的方法,其特征在于,所述使用第三图层替换所述第二图层,包括:
    在所述第三图层绘制所述应用程序的所述第一界面后,使用所述第三图层替换所述第二图层。
  13. 根据权利要求1至12中任一项所述的方法,其特征在于,所述第一退出界面为所述应用程序的第二界面的截图或预设的界面。
  14. 一种电子设备,其特征在于,包括一个或多个处理器;一个或多个存储器;所述一个或多个存储器存储有一个或多个计算机程序,所述一个或多个计算机程序包括指令,当所述指令被所述一个或多个处理器执行时,使得如权利要求1至13中任一项所述的方法被执行。
  15. 一种芯片,其特征在于,所述芯片包括处理器和通信接口,所述通信接口用于接收信号,并将所述信号传输至所述处理器,所述处理器处理所述信号,使得如权利要求1至13中任一项所述的方法被执行。
  16. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机指令,当所述计算机指令在计算机上运行时,使得如权利要求1至13中任一项所述的方法被执行。
PCT/CN2023/129563 2023-01-17 2023-11-03 一种窗口管理方法以及电子设备 Ceased WO2024152676A1 (zh)

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)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118885234B (zh) * 2024-09-12 2025-02-18 荣耀终端有限公司 一种播放应用启动动画的方法、电子设备及相关介质

Citations (6)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109947506B (zh) * 2017-12-20 2022-08-12 阿里巴巴集团控股有限公司 界面切换方法、装置及电子设备
CN115390957A (zh) * 2021-05-25 2022-11-25 华为技术有限公司 一种应用程序动效衔接的方法及装置

Patent Citations (6)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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