Application starting method in screen locking state, electronic equipment and storage medium
By creating and displaying the application window in the lock screen state, the problem that users cannot preview the application content is solved, improving user experience and operation convenience.
Patent Information
- Application Number
- CN202411977453.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2025-04-18
AI Technical Summary
In the lock screen state, users cannot effectively preview the real content of the application, resulting in poor user experience.
In the lock screen state, the electronic device can create a window for the application and display the content of the application in the window, allowing the user to preview the content of the application without unlocking the device.
By displaying the application content in the lock screen state, the user's preview experience is improved and the user's operation convenience and efficiency are enhanced.
Smart Images

Figure CN119847381A_ABST
Abstract
Description
[0001] This application is a divisional application. The application number of the original application is 202410808333.0, and the original application date is June 20, 2024. The entire contents of the original application are incorporated into this application by reference. Technical Field
[0002] The present application relates to the field of terminal technology, and in particular to a method for starting an application in a locked screen state, an electronic device, and a storage medium. Background Art
[0003] With the development of terminal technology, more and more applications are installed on electronic devices, and users can experience different functions through the applications installed on the electronic devices.
[0004] In order to reduce the power consumption of electronic devices and reduce the occurrence of accidental touches, the electronic device can enter the lock screen state when it is not operated for a long time. After the electronic device enters the lock screen state, the user can unlock the electronic device through one or more methods such as fingerprint, facial image, voiceprint, password, etc. When the electronic device is in the lock screen state, the user can operate the quick start application on the lock screen without unlocking the electronic device.
[0005] Currently, when a user opens an application through a quick operation on the lock screen interface, the electronic device can play an animation based on a fixed image on the lock screen to enhance the user's visual experience. However, the fixed image cannot reflect the actual preview effect within the application, resulting in a poor user experience. Summary of the invention
[0006] The present application provides an application startup method, an electronic device, and a storage medium in a locked screen state. When a first application is started in a locked screen state, the electronic device can create a first window of the first application and display the content of the first application in the first window of the first application, so that the user can preview the application content of the first application in advance without unlocking the electronic device.
[0007] In a first aspect, the present application provides a method for starting an application in a lock screen state. The method includes: an electronic device displays a first lock screen, the first lock screen includes a first icon of a first application; the electronic device receives a first sliding operation, the first sliding operation acts on the first icon; in response to the first sliding operation, the electronic device displays a first window of the first application, and the first window displays the screen content of the first application.
[0008] For example, when the first application is a payment application, the user can quickly open the payment application in the lock screen state and display the payment application window. The payment code can be displayed in the payment application window. In this way, the user can quickly display the payment code in the payment application without unlocking the screen, which is used for quick payment and other operations, making it easier for user operations.
[0009] For example, when the first application is a scan application, the user can quickly open the scan application in the lock screen state and display the scan application window. A scan code page can be displayed in the scan application window. In this way, the user can quickly open the scan application without unlocking the phone and scan QR codes and other pictures through the scan application for quick payment and other operations, which is convenient for user operations.
[0010] For example, when the first application is a camera application, the user can quickly open the camera application in the lock screen state and display the camera application window. The camera application window can display the camera preview content. In this way, the user can open the camera application without unlocking the phone and use the camera application to take photos or videos, which is convenient for user operation.
[0011] Exemplarily, when the first application is a memo application, the user can quickly open the memo application in the lock screen state and display the memo application window. The memo application window can display the note content. In this way, the user can quickly display the note content of the memo application without unlocking the screen, which is convenient for user operation.
[0012] Through this method, when the first application is opened in the lock screen state, the electronic device can create a first window of the first application and display the content of the first application in the first window of the first application, so that the user can preview the application content of the first application in advance without unlocking the electronic device.
[0013] In combination with the first aspect, in a possible implementation method, the electronic device displays a first lock screen screen, specifically including: the electronic device displays the first lock screen screen in the lock screen window; the electronic device displays the first window of the first application, specifically including: the electronic device displays the first window of the first application above the lock screen window.
[0014] In this way, when the first application is quickly opened in the lock screen state, the electronic device can create a first window of the first application. In this way, the first window of the first application and the lock screen window are independent of each other and do not affect each other. When the lock screen application is closed, the first window of the first application still exists.
[0015] In combination with the first aspect, in a possible implementation, in response to a first sliding operation, the electronic device displays a first window of a first application, specifically including: the electronic device determines a first sliding distance based on the first sliding operation on the first icon; the electronic device determines whether the first sliding distance is greater than a preset distance; if the first sliding distance is greater than the preset distance, the electronic device displays the first window of the first application.
[0016] Optionally, the first sliding distance may be determined based on a distance in a vertical direction between a termination position and an initial position of the first sliding operation on the first icon. Optionally, the initial position may be a display position of the first icon.
[0017] Exemplarily, the display position of the first icon may refer to the position of the center point of the first icon. The display position of the first icon may also refer to the display position of other points of the first icon, such as the display position of any side of the first icon, or the display position of a certain point inside the first icon, or the display position of a certain point outside the first icon.
[0018] Through this method, when the sliding distance for the first icon is greater than a preset distance, the electronic device can create and display the first window of the first application.
[0019] In combination with the first aspect, in a possible implementation, the method also includes: if the first sliding distance is less than a preset distance, the electronic device displays a second lock screen, the second lock screen includes a second icon of the first application, the size of the second icon is larger than the size of the first icon, or the size of the second icon is the same as the size of the first icon.
[0020] By this method, when the sliding distance for the first icon is less than the preset distance, the electronic device may not create and open the first window of the first application. The icons of the first application, such as the second icon, are accumulated and displayed, and the size of the second icon and the size of the first icon may be the same or different, and the display position of the second icon and the display position of the first icon may be the same or different.
[0021] In combination with the first aspect, in a possible implementation manner, a display position of the second icon is different from a display position of the first icon, and the display position of the second icon is determined based on the first sliding operation.
[0022] Optionally, the display position of the second icon may be determined based on the termination position of the first sliding operation on the first icon.
[0023] In combination with the first aspect, in a possible implementation, the electronic device displays a first window of a first application, specifically including: the electronic device determines a first display position based on a first sliding operation; and the electronic device displays the first window of the first application based on the first display position.
[0024] Optionally, the display position of the first window may be determined based on a termination position of the first sliding operation on the first icon.
[0025] Optionally, the electronic device displays the first window at the first display position, which may refer to the first display position being the display position of a vertex of the first window, or the display position of a point on an edge of the first window, or the display position of a point inside the first window, or the display position of a point that is not located on the first window or inside the first window, but is located outside the first window. The present application does not limit how to display the first window based on the first display position.
[0026] In this way, it can be ensured that the display position of the first window changes along with the display position of the user's finger, so as to achieve hand-tracking.
[0027] In combination with the first aspect, in a possible implementation, after the electronic device displays the first window of the first application, the method also includes: the electronic device continues to receive the first sliding operation, the first sliding operation acts on the first window; the electronic device determines a second sliding distance based on the first sliding operation acting on the first window; the electronic device determines whether the second sliding distance is greater than a preset distance; if the second sliding distance is greater than the preset distance, the electronic device displays the first window of the first application, and the first window displays the screen content of the first application.
[0028] After the electronic device creates and displays the first window of the first application, the user may continue the first sliding operation on the first window.
[0029] Optionally, the first sliding operation on the first window may be in the same direction as the first sliding operation on the first icon, or may be in the opposite direction to the first sliding operation on the first icon.
[0030] Optionally, the second sliding distance may be based on a distance in the vertical direction between a termination position and an initial position of the first sliding operation on the first window.
[0031] Optionally, the sliding direction of the first sliding operation on the first window and the sliding direction of the first sliding operation on the first icon may be the same or different.
[0032] By this method, when the second sliding distance of the first sliding operation on the first window is greater than the preset distance, the electronic device can continue to display the first window of the first application. Before and after receiving the first sliding operation on the first window, the size of the first window can be the same or different, and the display position of the first window can be the same or different.
[0033] In combination with the first aspect, in a possible implementation, if the second sliding distance is greater than the first sliding distance, the size of the first window of the first application becomes larger; if the second sliding distance is less than the first sliding distance, the size of the first window of the first application becomes smaller.
[0034] In this way, the size of the first window can change with the change of the sliding distance to achieve chirality.
[0035] In combination with the first aspect, in a possible implementation, after the electronic device displays the first window of the first application, the method also includes: the electronic device receives an unlocking operation by the user; in response to the unlocking operation, the electronic device displays the first window of the first application in full screen, and the first window displays the screen content of the first application.
[0036] Optionally, the electronic device 100 may be a first window of the first application displayed in full screen, or the electronic device 100 may be a first window of the first application displayed in non-full screen. Afterwards, the electronic device may receive an unlocking operation from the user. Since the first window of the first application and the lock screen window are independent of each other, the display state of the first window of the first application will not be affected by the lock screen window. Therefore, after unlocking, when the lock screen window is destroyed, the electronic device 100 may still continue to display the first window of the first application.
[0037] In combination with the first aspect, in one possible implementation, the electronic device destroys the lock screen window.
[0038] In this way, after performing the unlock operation, the electronic device can destroy the lock screen window. That is, the electronic device has closed the lock screen application, and there is no lock screen window in the electronic device. When the electronic device enters the lock screen state again, the electronic device opens the lock screen application again, and creates and displays the lock screen window.
[0039] In combination with the first aspect, in a possible implementation, after the electronic device displays the first window of the first application, the method also includes: after detecting that the first sliding operation is completed, the electronic device displays the first window of the first application in full screen, and the first window displays the screen content of the first application.
[0040] In this way, after the user stops the operation on the first window, that is, stops the first sliding operation on the first window, for example, the user releases his finger, the electronic device can automatically display the first window of the first application in full screen.
[0041] In combination with the first aspect, in a possible implementation manner, the first window of the first application is located on an upper layer of the lock screen window.
[0042] In this way, after the user stops the operation on the first window, that is, stops the first sliding operation of the first window, for example, when the user releases his finger, the lock screen window still exists in the electronic device, and the first window is located on the upper layer of the lock screen window.
[0043] In combination with the first aspect, in a possible implementation, before the electronic device displays the first window of the first application in full screen, the method further includes: the first window of the first application of the electronic device gradually enlarges to display the first window of the first application in full screen.
[0044] In this way, after the user stops the operation on the first window, that is, stops the first sliding operation on the first window, or after the user performs an unlocking operation, the first window can be gradually enlarged to achieve a natural switch to full-screen display.
[0045] In combination with the first aspect, in a possible implementation method, after the electronic device displays the first window of the first application in full screen, the method also includes: the electronic device receives the user's operation on the first window of the first application; in response to receiving the user's operation on the first window of the first application, the electronic device displays a lock screen window, and the lock screen window displays the first lock screen screen.
[0046] In this way, when the electronic device is in a lock screen state, if the electronic device displays the first window in full screen, and then the electronic device can receive a user operation to stop displaying the first window, the electronic device can continue to display the lock screen window in full screen.
[0047] In combination with the first aspect, in a possible implementation, after the electronic device displays a lock screen window, the method further includes: the electronic device destroys the first window displaying the first application or displays the first window of the first application in a lower layer of the lock screen window.
[0048] Optionally, the first window may be destroyed in the electronic device, or the first window may continue to exist. When the first window continues to exist in the electronic device, the lock screen window is located on an upper layer of the first window.
[0049] In conjunction with the first aspect, in a possible implementation, when the electronic device is in an unlocked state, if the electronic device displays the first window in full screen, and then the electronic device can receive a user operation to stop displaying the first window, the electronic device can display the desktop, and the desktop window is located on an upper layer of the first window.
[0050] In a second aspect, the present application provides an electronic device, which includes one or more processors and one or more memories; the one or more memories are coupled to the one or more processors, and the one or more memories are used to store computer program codes, and the computer program codes include computer instructions. When the one or more processors execute the computer instructions, the electronic device executes any possible implementation method in the first aspect.
[0051] In a third aspect, the present application provides a computer-readable storage medium, comprising instructions, which, when executed on an electronic device, enable the electronic device to execute any possible implementation method in the first aspect.
[0052] In a fourth aspect, the present application provides a computer program product, which may include computer instructions. When the computer instructions are run on an electronic device, the electronic device executes any possible implementation method in the first aspect.
[0053] In a fifth aspect, the present application provides a chip, which is applied to an electronic device, and the chip includes one or more processors, and the processor is used to call computer instructions to enable the electronic device to execute any possible implementation method as in the first aspect.
[0054] For the beneficial effects of the second to fifth aspects, reference may be made to the description of the beneficial effects in the first aspect, which will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] Figure 1 A schematic diagram showing an electronic device 100 playing a camera application startup effect on a lock screen;
[0056] Figure 2 A schematic structural diagram of an electronic device 100 is shown;
[0057] Figure 3 is a software structure block diagram of the electronic device 100 according to an embodiment of the present application;
[0058] Figure 4A-4B A UI diagram showing an electronic device entering a locked screen state from a non-locked screen state;
[0059] Figure 4C A schematic diagram of a method flow of displaying a lock screen image by the electronic device 100 is shown;
[0060] Figure 4D and Figure 4E A schematic diagram showing the display hierarchy of each application window in the electronic device 100 before the electronic device 100 enters the lock screen state / after the electronic device 100 enters the lock screen state;
[0061] Figure 5A-Figure 5I A UI diagram showing a quick start of a camera application on the lock screen of the electronic device 100 is shown;
[0062] Figure 5J A schematic flow chart of a method for the electronic device 100 to receive a user operation to start a first application when the electronic device 100 is in a locked screen state is shown;
[0063] Figure 5K A schematic diagram of the display hierarchy of each application window in the electronic device 100 is shown when the camera application is turned on and the camera application window is displayed after the electronic device 100 enters the lock screen state;
[0064] Fig. 6AA UI diagram showing that a camera application window moves as a finger moves in a first direction;
[0065] Figure 6B 1. A schematic diagram of the display hierarchy of each application window in the electronic device 100 is shown after the electronic device 100 enters the lock screen state and the display position of the camera application window moves along with the movement of the user's finger position;
[0066] Figure 7A-7B The figure shows that when the user slides the camera application icon in the second direction on the lock screen interface, the electronic device 100 continues to display the lock screen content;
[0067] Figure 7C A schematic flow chart of a method for the electronic device 100 to continue to display lock screen content when the user slides the camera application icon in the second direction on the lock screen interface;
[0068] Figure 8A-8C The UI diagram shows that when the user slides the application window of the camera application in the second direction on the lock screen interface, the electronic device 100 continues to display the application window or stops displaying the application window;
[0069] Fig.8D A schematic flow chart of a method for the electronic device 100 to continue to display the application window or stop displaying the application window when the user slides the application window of the camera application in the second direction on the lock screen interface is shown;
[0070] Figure 8E-G A schematic diagram of the display hierarchy of application windows in a group of electronic devices 100 is shown;
[0071] Fig. 9A A schematic flow chart of a method for the electronic device 100 to display an application window of a first application in full screen after the user unlocks the electronic device 100 before the electronic device 100 displays a camera application window in full screen;
[0072] Fig. 9B A schematic diagram of the display hierarchy of each application window in the electronic device 100 is shown after the user unlocks the electronic device 100 and the electronic device 100 displays the application window of the first application in full screen;
[0073] Fig. 9C A schematic flow chart of a method for displaying an application window of a first application in full screen on the electronic device 100 after the electronic device 100 displays a camera application window in full screen and a user unlocks the electronic device 100 is shown;
[0074] Fig. 10A A schematic flow chart of a method for the electronic device 100 to display the application window of the first application in full screen after the user completes the first sliding operation when the electronic device 100 is in the locked screen state;
[0075] Fig. 10B A schematic diagram of the display hierarchy of each application window in the electronic device 100 is shown after the electronic device 100 recognizes that the user stops the first sliding operation on the camera application window and the electronic device 100 displays the application window of the first application in full screen;
[0076] Figure 11A-11B A UI schematic diagram showing a group of electronic devices 100 receiving a user operation to exit a camera application, and the electronic device 100 displays a lock screen window in full screen;
[0077] Fig. 11C A schematic flow chart of a method in which the electronic device 100 receives a user operation to exit a camera application and the electronic device 100 displays a lock screen window in full screen is shown;
[0078] Figure 11D-11E A schematic diagram of display levels of application windows in another group of electronic devices 100 is shown;
[0079] Figure 11F-11G Another group of electronic devices 100 receives a user operation to exit a camera application, and the electronic device 100 displays a desktop window in full screen.
[0080] Fig.11H Another method flow chart of a method in which the electronic device 100 receives a user operation to exit a camera application and the electronic device 100 displays a desktop window in full screen is shown;
[0081] Figure 11I-11J A schematic diagram of display levels of application windows in another group of electronic devices 100 is shown;
[0082] Fig.12 A flowchart of a method for launching an application in a locked screen state provided in this application. DETAILED DESCRIPTION
[0083] The technical solutions in the embodiments of the present application will be described clearly and in detail below in conjunction with the accompanying drawings. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in the text is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.
[0084] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.
[0085] The term "user interface (UI)" in the following embodiments of the present application refers to a medium interface for interaction and information exchange between an application or operating system and a user, which realizes the conversion between the internal form of information and the form acceptable to the user. The user interface is a source code written in a specific computer language such as Java and extensible markup language (XML). The interface source code is parsed and rendered on an electronic device, and finally presented as content that the user can recognize. The commonly used form of user interface is a graphical user interface (GUI), which refers to a user interface related to computer operation displayed in a graphical manner. It can be a visual interface element such as text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, etc. displayed on the display screen of an electronic device.
[0086] When a user operates a shortcut to open an application on the lock screen, in order to improve the user experience, the electronic device 100 can obtain the content in the application and display the content in the application on the lock screen so that the user can preview the content in the application in advance.
[0087] Exemplarily, the following is described by taking the example of a user quickly opening a camera application on the lock screen.
[0088] Figure 1 A schematic diagram showing an electronic device 100 playing a camera application startup effect on a lock screen.
[0089] like Figure 1 As shown in (a) of FIG. 1 , the electronic device 100 displays a lock screen, and the electronic device 100 can receive an operation performed by a user on the lock screen, such as a left sliding operation. In response to the user operation, when the left sliding distance is less than a preset distance, the electronic device 100 can play a camera application startup effect. For example, the electronic device 100 can display the following Figure 1 The user interface shown in (b) in FIG.
[0090] like Figure 1As shown in (b) of FIG. 1 , the electronic device 100 displays a user interface 1100, and the user interface 1100 includes a lock screen 1101 and a camera preview screen 1102 in a camera application. The electronic device 100 can receive a user operation on the user interface 1100, such as continuing to slide to the left. In response to the user operation, when the sliding distance to the left is less than a preset distance, the electronic device 100 can continue to play the camera application startup effect.
[0091] like Figure 1 As shown in (c) , the electronic device 100 displays a user interface 1200 , which includes a lock screen 1201 and a camera preview screen 1202 in a camera application. Figure 1 The contents of the camera preview screen 1202 shown in (c) are more than Figure 1 The contents of the camera preview screen 1102 shown in (b) .
[0092] As the user continues to swipe left, the content of the lock screen gradually decreases, and the content of the camera preview screen in the camera application gradually increases, until the swiping distance to the left is greater than the preset distance, the electronic device 100 stops displaying the lock screen and displays the camera preview screen of the camera application in full screen.
[0093] Figure 1 The user interface 1100 shown in (b) and Figure 1 The camera preview screen shown in (c) can also be called the camera application startup effect.
[0094] Since the lock screen image and the camera preview image are both displayed in one window, for example, they are both displayed in the lock screen window, the electronic device 100 does not create a window for the camera application. If the user performs an unlock operation before the distance of sliding to the left is greater than the preset distance, in response to the unlock operation, the electronic device 100 stops displaying the lock screen window and stops playing the camera application startup effect. Since the camera application window is not created, the electronic device 100 cannot display the camera preview image of the camera application. The electronic device 100 can display the desktop by default, for example, display Figure 1 The desktop shown in (d).
[0095] That is, if the user performs an unlock operation while the electronic device 100 is playing the application startup effect, the electronic device 100 will display the desktop instead of the screen in the application. The user needs to click the application icon of the camera application on the desktop. In response to the operation of clicking the application icon of the camera application, the electronic device 100 will create a window of the camera application and display the camera preview screen of the camera application in the window of the camera application.
[0096] The structure of the electronic device involved in this application is introduced below.
[0097] Please refer to Figure 2 , Figure 2 The schematic diagram of the hardware structure of the electronic device 100 is exemplarily shown.
[0098] like Figure 2 As shown, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.
[0099] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, 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.
[0100] 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 memory, 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. Among them, different processing units may be independent devices or integrated in one or more processors.
[0101] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0102] The processor 110 may also be provided with a memory for storing instructions and data. In some examples, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0103] The USB interface 130 is an interface that complies with the USB standard specification. 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.
[0104] The charging management module 140 is used to receive charging input from a charger. The charger can be a wireless charger or a wired charger. While the charging management module 140 charges the battery 142, it can also power the electronic device through the power management module 141.
[0105] 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 to power the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160.
[0106] 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.
[0107] 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. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network.
[0108] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, etc. the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1.
[0109] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and filters it, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0110] 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 is connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering.
[0111] The display screen 194 is used to display images, videos, etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194 , where N is a positive integer greater than 1.
[0112] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
[0113] The ISP is used to process data fed back by the camera 193. For example, when taking a photo, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, and the light signal is converted into an electrical signal. The camera photosensitive element transmits the electrical signal to the ISP for processing and converts it into an image visible to the naked eye.
[0114] The camera 193 is used to capture still images or videos. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0115] 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.
[0116] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.
[0117] The external memory interface 120 can be used to connect an external memory card, such as a MicroSD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 via the external memory interface 120 to implement a data storage function.
[0118] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc.
[0119] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0120] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some examples, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110. The speaker 170A, also known as the "speaker", is used to convert audio electrical signals into sound signals. The receiver 170B, also known as the "earpiece", is used to convert audio electrical signals into sound signals. The microphone 170C, also known as the "microphone" or "microphone", is used to convert sound signals into electrical signals. The headphone jack 170D is used to connect wired headphones.
[0121] The sensor module 180 may include a pressure sensor, a gyro sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a gravity sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.
[0122] The buttons 190 include a power button, a volume button, etc. The motor 191 can generate a vibration prompt. The indicator 192 can be an indicator light, which can be used to indicate the charging status, power change, messages, missed calls, notifications, etc.
[0123] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to or disconnected from the electronic device 100 by inserting the SIM card interface 195 or removing the SIM card interface 195. The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications.
[0124] The electronic device 100 may be a mobile phone, a tablet computer, a laptop computer, a smart watch, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), etc. The specific type of the electronic device 100 is not limited in the embodiment of the present application.
[0125] The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes the Android system of the layered architecture as an example to exemplify the software structure of the electronic device 100.
[0126] Figure 3 It is a software structure block diagram of the electronic device 100 according to an embodiment of the present application.
[0127] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime (Android runtime) and the system library, and the kernel layer.
[0128] The application layer can include a series of application packages.
[0129] like Figure 3 As shown, the application package may include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and other applications.
[0130] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.
[0131] like Figure 3 As shown, the application framework layer may include a lock screen module, a window management module, a running management module, a display module, and the like.
[0132] 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. The window manager is also used to manage application windows, such as creating, changing the size of application windows, and destroying application windows.
[0133] The lock screen module is used to obtain the lock screen content, draw the lock screen picture based on the lock screen content, and send the lock screen picture to the display module, so that the display module displays the lock screen picture in the window of the lock screen application.
[0134] The operation management module is used to manage the life cycle of the application.
[0135] The display module is used to display the application screen drawn by the application in the application window. For example, the display module can display the lock screen screen drawn by the lock screen module in the lock screen application window. The display module can also display the application screens drawn by other applications in the windows of other applications.
[0136] When the lock screen module and the window management module are both located in the application framework layer, the interaction between the lock screen module and the window management module is within the same process, does not involve IPC calls, and has a faster response speed.
[0137] Optionally, the lock screen module can also be located in the application layer. The lock screen module and the window management module communicate through IPC messages.
[0138] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.
[0139] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
[0140] The system library may include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
[0141] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
[0142] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0143] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0144] A 2D graphics engine is a drawing engine for 2D drawings.
[0145] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
[0146] Next, a method for launching an application in a locked screen state provided by this application is introduced in detail in combination with multiple scenarios.
[0147] Scenario 1: The electronic device 100 enters the lock screen state and displays the lock screen image.
[0148] In some embodiments, when the electronic device is not operated for a long time, in order to reduce the power consumption of the electronic device and reduce the occurrence of accidental touches, the electronic device can enter a lock screen state. After the electronic device enters the lock screen state, the user can unlock the electronic device by one or more methods such as fingerprint, facial image, voiceprint, password, etc.
[0149] After the electronic device 100 enters the lock screen state, the electronic device 100 can display the lock screen image.
[0150] Figure 4A-4B A UI diagram showing an electronic device entering a locked screen state from a non-locked screen state.
[0151] For example, Figure 4A As shown, before the electronic device 100 enters the lock screen state, the electronic device 100 displays a desktop, and the desktop displays application icons of multiple applications. Figure 4B As shown, the electronic device 100 also displays wallpaper, such as an image of a puppy.
[0152] After the electronic device 100 does not enter the lock screen state, the electronic device 100 may display Figure 4B The lock screen 4102 is shown. Figure 4B As shown, the lock screen 4102 displays application icons, such as a flashlight application icon and a camera application icon 4201, etc. The user can quickly open the corresponding application without unlocking the electronic device 100 through the application icon on the lock screen 4102. For example, the user can quickly open the camera application without unlocking the electronic device 100 through the camera application icon 4201.
[0153] In some embodiments, the electronic device 100 may not display wallpaper.
[0154] Figure 4C A schematic flow chart of a method for displaying a lock screen image on the electronic device 100 is shown.
[0155] like Figure 4C As shown, the software modules of the electronic device 100 that display the lock screen include but are not limited to a lock screen module, a window management module and a display module.
[0156] The method for the electronic device 100 to display a lock screen may include but is not limited to the following steps:
[0157] S401. The lock screen module recognizes that the electronic device 100 enters the lock screen state, and sends a message to the window management module to create a lock screen window.
[0158] When the electronic device 100 enters the lock screen state, the lock screen module can send a message to the window management module to create a lock screen window. The message is used to instruct the window management module to create a lock screen window so that the display module can display the lock screen image in the lock screen window.
[0159] Optionally, the electronic device 100 may automatically enter the lock screen state when the user has not operated the electronic device for a long time, or the user may actively trigger the electronic device 100 to enter the lock screen state.
[0160] S402: In response to a message for creating a lock screen window, the window management module creates a lock screen window.
[0161] After receiving the message for creating a lock screen window sent by the lock screen module, the window management module creates a lock screen window in response to the message for creating a lock screen window.
[0162] S403: The window management module sends the identifier of the lock screen window to the display module.
[0163] After creating the lock screen window, the window management module can send the identifier of the lock screen window to the display module, so that the display module can obtain the lock screen window based on the identifier of the lock screen window and display the lock screen image on the lock screen window.
[0164] Optionally, the window management module may also send the identifier of the lock screen window to the lock screen module.
[0165] S404, identifying that the electronic device 100 enters the lock screen state, and the lock screen module obtains the lock screen content A, and the lock screen image A includes the camera application icon A.
[0166] S405. The lock screen module draws the lock screen image A based on the lock screen content A.
[0167] When recognizing that the electronic device 100 enters the lock screen state, the lock screen module can obtain the lock screen content A. The types of the lock screen content A may include but are not limited to pictures, texts, icons, etc. The lock screen content A may also include but are not limited to the location, shape, size, transparency, and other attributes of the lock screen content A.
[0168] Optionally, S404 and S405 may also be executed before S401 or simultaneously with S401.
[0169] S406. The lock screen module sends the lock screen image A to the display module.
[0170] After obtaining the identification of the lock screen picture A and the lock screen window, the lock screen module can send the identification of the lock screen picture A and the lock screen window to the display module.
[0171] Optionally, the lock screen module may also send it to the display module.
[0172] S407. The display module obtains the lock screen window based on the identifier of the lock screen window, and displays the lock screen image A in the lock screen window.
[0173] After obtaining the lock screen window identifier and the lock screen picture A, the display module can obtain the lock screen window based on the lock screen window identifier and display the lock screen picture A in the lock screen window.
[0174] Optionally, S403 may also be executed after S402, before or after any step before S407, or simultaneously.
[0175] For example, the lock screen A can be Figure 4B Lock screen 4102 is shown.
[0176] Figure 4D A schematic diagram of the display hierarchy of each application window in the electronic device 100 is shown before the electronic device 100 enters the lock screen state.
[0177] refer to Figure 4A As described in , the electronic device 100 displays a desktop and wallpaper. There are a desktop window of a desktop application and a wallpaper window of a wallpaper application in the electronic device 100. The desktop window displays the desktop, such as icons of multiple applications, and the wallpaper window displays wallpaper, such as an image of a puppy.
[0178] like Figure 4D As shown, the desktop window is located on the upper layer of the wallpaper window. Optionally, the transparency of the desktop window can be 100%, so that the electronic device 100 displays the wallpaper in the wallpaper window.
[0179] Figure 4EA schematic diagram showing the display hierarchy of various application windows in the electronic device 100 after the electronic device 100 enters the lock screen state.
[0180] refer to Figure 4B As described in , after the electronic device 100 enters the lock screen state, the electronic device 100 displays a lock screen image 4102. The electronic device 100 has a lock screen window of a lock screen module, a desktop window of a desktop application, and a wallpaper window of a wallpaper application.
[0181] like Figure 4E As shown, since the electronic device 100 only displays the lock screen image 4102, the lock screen window is located on the upper layer of the desktop window, so that the electronic device 100 can display the lock screen image in the lock screen window, and the desktop window is still located on the upper layer of the wallpaper window.
[0182] Scenario 2: The electronic device 100 is in the locked screen state and the first application is opened.
[0183] When the electronic device is in the lock screen state, the user can quickly open the application on the lock screen without unlocking the electronic device. In order to improve the user experience, the electronic device 100 can obtain the content in the application and display the content in the application on the lock screen, so that the user can preview the content in the application in advance, such as displaying certain functional pages in the application or real-time preview screens in the application.
[0184] In some embodiments, the first application may be a payment application. The user may quickly open the payment application in the lock screen state, and display the payment application window above the lock screen window. The payment application window may display a payment code, so that the user may quickly display the payment code in the payment application without unlocking the device, for operations such as quick payment, which is convenient for the user to operate.
[0185] In some embodiments, the first application may be a scan application. The user may quickly open the scan application in the lock screen state, and display the scan application window above the lock screen window. The scan application window may display a scan code page, so that the user may quickly open the scan application without unlocking the device and scan QR codes and other images through the scan application for quick payment and other operations, which is convenient for the user.
[0186] In some embodiments, the first application may be a camera application. The user may quickly open the camera application in the lock screen state, and display the camera application window above the lock screen window. The camera application window may display the camera preview content, so that the user may open the camera application without unlocking the device and use the camera application to take photos or videos, etc., which is convenient for the user to operate.
[0187] In some embodiments, the first application may be a memo application. The user may quickly open the memo application in the lock screen state, and display the memo application window above the lock screen window, and the memo application window may display the note content, so that the user may quickly display the note content of the memo application without unlocking the device, which is convenient for user operation.
[0188] Not limited to the above applications, the first application may also be other applications, which is not limited in this application.
[0189] For example, the embodiment of the present application takes the example of a user quickly opening a camera application when the electronic device 100 is in a locked screen state. It is not limited to quickly opening a camera application when the electronic device 100 is in a locked screen state. The user can also quickly open other applications when the electronic device 100 is in a locked screen state, and the present application does not limit this.
[0190] Figure 5A-Figure 5I A UI diagram showing a quick way to open a camera application on the lock screen of the electronic device 100 is shown.
[0191] For example, Figure 5A As shown, after the electronic device is in the lock screen state, the electronic device 100 displays a lock screen window 5100 , a lock screen image 4102 is displayed in the lock screen window 5100 , and a camera application icon 4201 is displayed on the lock screen image 4102 . Figure 5A The position of the icon 4201 of the camera application shown may be display position 2 .
[0192] Optionally, a plane rectangular coordinate system can be established with the horizontal rightward direction of the lower screen edge of the electronic device 100 as the positive direction of the X-axis, the vertical upward direction of the left screen edge of the electronic device 100 as the positive direction of the Y-axis, and the intersection of the positive direction of the X-axis and the positive direction of the Y-axis as the 0 point, and the display position 2 of the camera application icon 4201 in the plane rectangular coordinate system can be obtained.
[0193] It should be noted that the display position 2 of the camera application icon 4201 may also be determined based on other methods, and this application does not limit this.
[0194] like Figure 5A As shown, the user's operation on the camera application icon 4201, such as long pressing and sliding operation in the positive direction of the Y axis, can be received. In response to the user operation, the electronic device 100 can determine whether the sliding distance exceeds the preset distance. If the sliding distance does not exceed the preset distance, the electronic device 100 does not display the camera application window. If the sliding distance exceeds the preset distance, the electronic device 100 can create a camera application window, display the camera application window above the lock screen window, and display the camera preview screen in the camera application window.
[0195] Optionally, the sliding distance may include the sliding distance in the positive direction of the Y axis. The sliding distance may also be determined by other means, such as the straight line distance between two points or the sliding distance between two points in the positive direction of the X axis, etc., which is not limited in the present application.
[0196] Figure 5A Shown and Figure 5B As shown, if the user long presses the camera application icon 4201 and slides to Figure 5B Position B shown, position B can be Figure 5B If the distance between position B and display position 2 is less than the preset distance, the electronic device 100 can continue to display the lock screen, and display position 2 can be Figure 5B The dotted finger is shown where it is.
[0197] like Figure 5B As shown, the electronic device 100 displays a lock screen window 5100, a lock screen image 5101 is displayed in the lock screen window 5100, and a camera application icon 5102 is displayed on the lock screen image 5101. The position of the camera application icon 5102 is position B, and the size of the camera application icon 5102 is larger than the size of the camera application icon 4201.
[0198] Optionally, the size of the camera application icon 5102 may be determined based on the distance between position B and display position 2. The distance between position B and display position 2 may refer to the distance between position B and display position 2 in the positive direction of the Y axis.
[0199] like Figure 5B and Figure 5C As shown, if the user long presses the camera application icon 5102 and slides to Figure 5C Position C shown, position C can be Figure 5C At the location of the solid finger shown, if the distance between position C and display position 2 is less than the preset distance, the electronic device 100 can continue to display the lock screen.
[0200] like Figure 5C As shown, the electronic device 100 displays a lock screen window 5100, a lock screen image 5103 is displayed in the lock screen window 5100, and a camera application icon 5104 is displayed on the lock screen image 5103. The position of the camera application icon 5104 is position C, and the size of the camera application icon 5104 is larger than the size of the camera application icon 5102.
[0201] Optionally, the size of the camera application icon 5104 may be determined based on the distance between position C and display position 2. The distance between position C and display position 2 may refer to the distance between position C and display position 2 in the positive direction of the Y axis.
[0202] like Figure 5C and Figure 5D As shown, if the user long presses the camera application icon 5104 and slides to Figure 5D The position D shown, position D can be Figure 5D At the location of the solid finger shown, if the distance between position D and display position 2 is greater than the preset distance, the electronic device 100 can continue to display the lock screen and create a camera application window. The camera application window is displayed on the upper layer of the lock screen window and the camera preview screen is displayed in the camera application window.
[0203] like Figure 5D As shown, the electronic device 100 displays a lock screen window 5100 , and a lock screen image 5105 is displayed in the lock screen window 5100 . The lock screen image 5105 does not display an icon for a camera application.
[0204] A camera application window 5200 is displayed above the lock screen window 5100, and a camera preview screen 5201 is displayed in the camera application window 5200. The camera preview screen 5201 may be obtained by the camera application through the camera. The position of the camera application window 5200 is position D.
[0205] Optional, Figure 5D The size of the camera application window 5200 shown may be determined based on the distance between position D and display position 2. The distance between position D and display position 2 may refer to the distance between position D and display position 2 in the positive direction of the Y axis.
[0206] like Figure 5D and Figure 5E As shown, if the user long presses the camera application window 5200 and slides to Figure 5E Position E shown, position E can be Figure 5E At the location of the solid finger shown, if the distance between position E and display position 2 is greater than the preset distance, the electronic device 100 can continue to display the lock screen image, display the camera application window on the upper layer of the lock screen window, and display the camera preview image in the camera application window.
[0207] like Figure 5E As shown, the electronic device 100 displays a lock screen window 5100 , and a lock screen image 5105 is displayed in the lock screen window 5100 . The lock screen image 5105 does not display an icon for a camera application.
[0208] A camera application window 5200 is displayed above the lock screen window 5100, and a camera preview screen 5301 is displayed in the camera application window 5200. The camera preview screen 5301 may be obtained by the camera application through the camera. The position of the camera application window 5200 is position E.
[0209] Optional, Figure 5EThe camera application window 5200 is shown to be larger than Figure 5D The size of the camera application window 5200 is shown. Figure 5E The size of the camera application window 5200 shown may be determined based on the distance between position E and display position 2. The distance between position E and display position 2 may refer to the distance between position E and display position 2 in the positive direction of the Y axis.
[0210] like Figure 5E and Fig. 5F As shown, if the user long presses the camera application window 5200 and slides to Fig. 5F Position F shown, position F can be Fig. 5F At the location of the solid finger shown, if the distance between position F and display position 2 is greater than the preset distance, the electronic device 100 can continue to display the lock screen image, display the camera application window on the upper layer of the lock screen window, and display the camera preview image in the camera application window.
[0211] like Fig. 5F As shown, the electronic device 100 displays a lock screen window 5100 , and a lock screen image 5105 is displayed in the lock screen window 5100 . The lock screen image 5105 does not display an icon for a camera application.
[0212] A camera application window 5200 is displayed above the lock screen window 5100, and a camera preview screen 5401 is displayed in the camera application window 5200. The camera preview screen 5401 may be obtained by the camera application through the camera. The position of the camera application window 5200 is position F.
[0213] Optional, Fig. 5F The camera application window 5200 is shown to be larger than Figure 5E The size of the camera application window 5200 is shown. Fig. 5F The size of the camera application window 5200 shown may be determined based on the distance between position F and display position 2. The distance between position F and display position 2 may refer to the distance between position F and display position 2 in the positive direction of the Y axis.
[0214] like Fig. 5F and Figure 5G As shown, if the user long presses the camera application window 5200 and slides to Figure 5G The position G shown, position G can be Figure 5G At the location of the solid finger shown, if the distance between position G and display position 2 is greater than the preset distance, the electronic device 100 can continue to display the lock screen image, display the camera application window on the upper layer of the lock screen window, and display the camera preview image in the camera application window.
[0215] like Figure 5GAs shown, the electronic device 100 displays a lock screen window 5100 , and a lock screen image 5105 is displayed in the lock screen window 5100 . The lock screen image 5105 does not display an icon for a camera application.
[0216] A camera application window 5200 is displayed above the lock screen window 5100, and a camera preview screen 5501 is displayed in the camera application window 5200. The camera preview screen 5501 may be obtained by the camera application through the camera. The position of the camera application window 5200 is position G.
[0217] Optional, Figure 5G The camera application window 5200 is shown to be larger than Fig. 5F The size of the camera application window 5200 is shown. Figure 5G The size of the camera application window 5200 shown may be determined based on the distance between the position G and the display position 2. The distance between the position G and the display position 2 may refer to the distance between the position G and the display position 2 in the positive direction of the Y axis.
[0218] like Figure 5G and Figure 5H As shown, the electronic device 100 displays Figure 5H In the user interface shown in FIG. 5 , the user stops sliding the camera application window 5200, for example, the user releases his finger. In response to the operation of stopping the sliding of the camera application window 5200, the electronic device 100 may display Figure 5H The user interface shown.
[0219] like Figure 5H As shown, the electronic device 100 displays a lock screen window 5100 , and a lock screen image 5105 is displayed in the lock screen window 5100 . The lock screen image 5105 does not display an icon for a camera application.
[0220] A camera application window 5200 is displayed above the lock screen window 5100 , and a camera preview screen 5601 is displayed in the camera application window 5200 . The camera preview screen 5601 may be obtained by the camera application through the camera.
[0221] Optional, Figure 5H The camera application window 5200 is shown to be larger than Figure 5G The size of the camera application window 5200 is shown.
[0222] Afterwards, the electronic device 100 may display Fig.5I The user interface shown is Fig.5I As shown, the electronic device 100 displays a camera application window 5200 in full screen, and the lock screen window 5100 is hidden and invisible. A camera preview screen 5701 is displayed in the camera application window 5200, and the camera preview screen 5701 can be obtained by the camera application through the camera.
[0223] Optional, Figure 5H The user interface shown may be referred to as a transition screen frame.
[0224] Optional, Figure 5H The size of the camera application window 5200 shown may be based on the size of the electronic device 100. Figure 5G The size of the camera application window 5200 is shown as Fig.5I The difference between the sizes of the camera application window 5200 shown.
[0225] Optionally, after the user stops sliding the camera application window 5200, the electronic device 100 displays Fig.5I The user interface shown previously is not limited to displaying Figure 5H The electronic device 100 may also display other more transitional screen frames, so that the electronic device 100 may gradually enlarge the camera application window to naturally switch to full-screen display of the camera application window.
[0226] Optionally, the number of transition frames can be based on Figure 5G The size of the camera application window 5200 is shown as Fig.5I The difference between the sizes of the camera application window 5200 shown is determined. Figure 5G The size of the camera application window 5200 is shown as Fig.5I The larger the difference between the sizes of the camera application windows 5200 shown, the greater the number of transition picture frames. Figure 5G The size of the camera application window 5200 is shown as Fig.5I The smaller the difference between the sizes of the camera application windows 5200 shown, the smaller the number of transition screen frames.
[0227] Optionally, after the user stops sliding the camera application window 5200, the electronic device 100 displays Fig.5I Before the user interface shown, the electronic device 100 may not display Figure 5H As shown in the transition frame, after the user stops sliding the camera application window 5200, the electronic device 100 can directly switch to full-screen display of the camera application window.
[0228] Optionally, the electronic device 100 is not limited to automatically switching to full screen display of the camera application window after the sliding of the camera application window 5200 is stopped. Figure 5D-5G In any of the user interfaces shown, when the user stops sliding the camera application window, for example, releases his hand, the electronic device 100 can automatically switch to displaying the camera application window in full screen. Figure 5EWhen the user stops sliding the camera application window 5200, for example, by releasing the finger, the electronic device 100 may also automatically switch to displaying the camera application window in full screen. Optionally, before switching to displaying the camera application window in full screen, the electronic device 100 may display Figure 5F-5H The user interface shown in the figure switches to full screen display of the camera application window.
[0229] Optional, Figure 5A-Figure 5I The electronic device 100 shows a sliding operation on the icon of the camera application in the lock screen window. After the sliding distance of the icon of the camera application in the positive direction of the Y axis exceeds the preset distance, the electronic device 100 displays the camera application window above the lock screen window. In other embodiments, the lock screen window may not include the icon of the camera application. The electronic device 100 can receive the user's sliding operation on the lock screen window. After the distance between the sliding end position and the initial sliding position exceeds the preset distance, the electronic device 100 displays the camera application window above the lock screen window. The embodiment of the present application is only described by taking the sliding operation on the application icon as an example, and does not constitute a limitation.
[0230] Figure 5J The flowchart shows a method in which the electronic device 100 receives a user operation to start a first application when the electronic device 100 is in a locked screen state.
[0231] in, Figure 5J An embodiment may be directed to Figure 5A-5D In the illustrated embodiment, a method flow of the electronic device 100 displaying a camera application window for the first time.
[0232] like Figure 5J As shown, when the electronic device 100 is in the lock screen state, the software modules of the electronic device 100 receiving the user operation to start the first application include but are not limited to the lock screen module, the window management module, the display module, the operation management module and the camera application.
[0233] When the electronic device 100 is in a locked screen state, the method for the electronic device 100 to receive a user operation to start a first application may include but is not limited to the following steps:
[0234] S501. The display module displays a lock screen window. A lock screen image A is displayed on the lock screen window. The lock screen image A includes a camera application icon A. The position of the camera application icon A is position 1.
[0235] After the electronic device 100 enters the lock screen state, the window management module can create a lock screen window, the display module can obtain the drawn lock screen image A sent by the lock screen module, and display the lock screen image A on the lock screen window.
[0236] Exemplarily, the lock screen window can be Figure 5AThe lock screen window 5100 shown in FIG. 5100 may include a lock screen image A. Figure 5A In the lock screen 4102 shown, the camera application icon A can be Figure 5A Icon 4201 of the camera application is shown.
[0237] S502: The lock screen module identifies a first sliding operation of the user on the lock screen window with respect to the camera application icon A in a first direction.
[0238] For example, the camera application icon A may be Figure 5A Icon 4201 of the camera application is shown.
[0239] Exemplarily, the direction of the lower screen edge of the electronic device 100 pointing horizontally to the right can be taken as the positive direction of the X-axis, the direction of the left screen edge of the electronic device 100 pointing vertically upward can be taken as the positive direction of the Y-axis, and the intersection of the positive direction of the X-axis and the positive direction of the Y-axis can be taken as the 0 point to establish a plane rectangular coordinate system, and the first direction can be in the direction of the positive direction of the Y-axis.
[0240] It should be noted that the first direction may be a direction pointing to the positive direction of the Y-axis and forming a certain angle with the positive direction of the Y-axis. The certain angle may be greater than 0 degrees and less than 90 degrees. For example, the first direction may refer to a direction forming an angle of 45 degrees with the positive direction of the Y-axis.
[0241] Exemplarily, the first sliding operation on the camera application icon A toward the first direction may be a sliding operation on the camera application icon 4201 toward the positive direction of the Y axis.
[0242] S503. The lock screen module determines display position 2 based on the termination position of the first sliding operation.
[0243] Exemplarily, display position 2 may be Figure 5B Position B shown, showing position 2 can also be Figure 5C Position C shown, showing position 2 can also be Figure 5D Position D shown.
[0244] S504, the lock screen module needs to confirm whether the distance between display position 2 and position 1 is greater than a preset distance.
[0245] For example, position 1 of the camera application icon A may be Figure 5A The camera application icon 4201 is shown at display position 2.
[0246] Optionally, the distance between display position 2 and position 1 may refer to the distance between display position 2 and position 1 in the positive direction of the Y axis. In other embodiments, the distance between display position 2 and position 1 may also refer to the straight-line distance between two points of display position 2 and position 1, etc., which is not limited in this application.
[0247] When the distance between display position 2 and position 1 is less than the preset distance, the electronic device 100 can continue to display the lock screen window until the distance between the end position of the sliding operation and position 1 is greater than the preset distance, and the electronic device 100 creates a camera application window, that is, executes S505-S508.
[0248] When the distance between display position 2 and position 1 is greater than the preset distance, the electronic device 100 may create a camera application window and display the camera application window above the lock screen application window, ie, execute S509-S522.
[0249] S505. The lock screen module obtains lock screen content B, where the lock screen image B includes a camera application icon B.
[0250] When the distance between display position 2 and position 1 is less than the preset distance, the electronic device 100 can continue to display the lock screen window and continue to display the lock screen image in the lock screen window.
[0251] Exemplarily, display position 2 may be Figure 5B Position B shown, showing position 2 can also be Figure 5C Position C shown.
[0252] Optionally, after the electronic device 100 receives the user's first sliding operation, if the distance between display position 2 and position 1 is less than a preset distance, the lock screen module can obtain lock screen content B, and lock screen content B is the same as or different from lock screen content A.
[0253] Optionally, the lock screen content B includes a camera application icon B, and the position of the camera application icon B in the lock screen content B may be the same as or different from the position of the camera application icon A in the lock screen content A.
[0254] Optionally, the size of the camera application icon B may be larger than the size of the camera application icon A, and the size of the camera application icon B may be determined based on the distance between the display position 2 and the position 1.
[0255] Optionally, the size of the camera application icon B may also be the same as the size of the camera application icon A.
[0256] S506. The lock screen module draws the lock screen image B based on the lock screen content B.
[0257] After acquiring the lock screen content B, the lock screen module can draw the lock screen image B based on the lock screen content B.
[0258] For example, the lock screen B can be Figure 5B The lock screen 5101 shown, the lock screen B can also be Figure 5C Lock screen 5103 is shown.
[0259] S507: The lock screen module sends the lock screen image B to the display module.
[0260] S508. The display module obtains the lock screen window based on the identifier of the lock screen window, and displays the lock screen image B in the lock screen window.
[0261] After the lock screen image B is drawn, the lock screen module can send the lock screen image B and the identification of the lock screen window to the display module.
[0262] After receiving the lock screen image B sent by the lock screen module, the display module can obtain the lock screen window based on the identifier of the lock screen window, and display the lock screen image B in the lock screen window.
[0263] Optionally, the lock screen module may also send the identifier of the lock screen window to the display module.
[0264] S509. The lock screen module determines the size 1 of the camera application window.
[0265] When the distance between display position 2 and position 1 is greater than a preset distance, the electronic device 100 may create a camera application window and display the camera application window above the lock screen application window.
[0266] Before creating the camera application window, the lock screen module can determine the size of the camera application window.
[0267] Optionally, the lock screen module may determine the size 1 of the camera application window based on the distance between the termination position of the first sliding operation (eg, display position 2) and the initial position (the display position of the camera application icon A, eg, position 1).
[0268] Optionally, the distance between the termination position and the initial position of the first sliding operation may refer to a vertical distance between the termination position and the initial position of the first sliding operation.
[0269] Exemplarily, display position 2 may be Figure 5D The initial position may be position 1. The lock screen module may determine the size 1 of the camera application window based on position D and position 1. The size 1 of the camera application window may be Figure 5D The size of the camera application window 5200 is shown.
[0270] S510. The lock screen module sends a message for creating a camera application window to the window management module, which carries the size 1 and the display position 2 of the camera application window.
[0271] S511 . In response to a message for creating a camera application window, the window management module creates a camera application window, and the size of the camera application window is size 1.
[0272] After determining the size 1 of the camera application window, the lock screen module may send a message for creating the camera application window to the window management module, carrying the size 1 and the display position 2 of the camera application window.
[0273] After receiving the message for creating a camera application window sent by the lock screen module, in response to the message for creating the camera application window, the window management module may create a camera application window, and the size of the camera application window is size 1.
[0274] For example, if display position 2 is Figure 5D The camera application window can be at position D as shown. Figure 5D Camera application window 5200 is shown.
[0275] S512: The window management module sends the identifier of the camera application window to the lock screen module.
[0276] After creating the camera application window, the window management module can obtain the identification of the camera application window and send the identification of the camera application window to the lock screen module. When the user continues to slide the camera application window in the first direction, the lock screen module can send the display position of the current camera application window and the identification of the camera application window to the window management module, and the window management module can change the position and size of the camera application window based on the identification of the camera application window, so that the camera application window can change with the sliding position of the user's finger to achieve hand tracking.
[0277] Optionally, before the camera application process is closed, the identification of the camera application window may be prescribed to remain unchanged.
[0278] S513: The window management module sends the identifier of the camera application window and the display position 2 of the camera application window to the display module.
[0279] After creating the camera application window, the window management module may also send the identifier of the camera application window and the display position 2 of the camera application window to the display module.
[0280] The display module may obtain the camera application window based on the identifier of the camera application window, and display the camera preview image sent by the camera application in the camera application window.
[0281] The display position 2 of the camera application window is used by the display module to confirm the display position of the camera application window.
[0282] Optionally, S513 may be executed before S512, and S513 and S512 may be performed simultaneously. The identification and display position 2 of the camera application window may be sent to the camera application simultaneously or separately.
[0283] S514: The window management module sends a message to start the camera application to the operation management module.
[0284] S515: The operation management module sends a message to the camera application to start the camera application.
[0285] After receiving the message for creating a camera application window, in response to the message for creating the camera application window, the window management module may send a message for starting the camera application to the operation management module, and the operation management module may then send a message for starting the camera application to the camera application. The message for starting the camera application is used to indicate starting the camera application.
[0286] Optionally, S514 and S515 may be one piece of information. That is, the window management module directly sends the camera application a message to start the camera application without passing through the operation management module.
[0287] S516: In response to the message for starting the camera application, the camera application creates a process of the camera application.
[0288] After receiving the message to start the camera application, in response to the message to start the camera application, the camera application can create a process of the camera application. After creating the process of the camera application, the camera application starts, and the camera application can call the camera of the electronic device 100 to collect image content.
[0289] Optionally, S514-S516 may also be executed after S510, and the execution order between S514-S516 and S511-S513 is not limited.
[0290] S517: The camera application sends a message to the operation management module indicating that the camera application has been started.
[0291] S518: The operation management module sends a message to the window management module indicating that the camera application has been started.
[0292] After the process of the camera application is created, the camera application may send a message that the camera application has been started to the operation management module, and the operation management module then sends a message that the camera application has been started to the window management module.
[0293] Optionally, the camera application may also directly send a message to the window management module indicating that the camera application has been started.
[0294] Optionally, S517 and S518 may not be executed.
[0295] S519: The camera application draws a camera preview screen A based on the image content captured by the camera.
[0296] S520: The camera application sends the camera preview image A to the display module.
[0297] After the camera application is started, the camera application can call the image content collected by the camera of the electronic device 100 to draw a camera preview screen, and send the camera preview screen A to the display module.
[0298] S521. The display module obtains the camera application window based on the identifier of the camera application window, and displays the camera application window above the lock screen window based on display position 2.
[0299] After receiving the camera application window identifier and the camera application window display position 2 sent by the window management module, the display module can obtain the camera application window based on the camera application window identifier, and display the camera application window above the lock screen window based on the camera application window display position 2.
[0300] Optionally, the display module displays the camera application window above the lock screen window based on display position 2, which may refer to display position 2 being a display position of a vertex of the camera application window, or a display position of a point on an edge of the camera application window, or a display position of a point inside the camera application window, or a display position of a point that is not located on the camera application window or inside the camera application window, but is located at a display position of a point outside the camera application window. The present application does not limit how the display module displays the camera application window based on display position 2.
[0301] Hereinafter, for an explanation of how the display module displays the camera application window at the display position, reference may be made to the description of displaying the camera application window based on the display position 2 in S521, which will not be repeated hereinbelow.
[0302] S522: The display module displays the camera preview image A in a camera application window of size 1.
[0303] After receiving the camera preview picture A, the display module may display the camera preview picture A in a camera application window of size 1.
[0304] Optionally, S522 may also be executed before or simultaneously with S521.
[0305] Figure 5K It shows a schematic diagram of the display hierarchy of each application window in the electronic device 100 when the camera application is turned on and the camera application window is displayed after the electronic device 100 enters the lock screen state.
[0306] For example, the camera application window can be Fig. 5F Camera application window 5200 is shown.
[0307] After the electronic device 100 enters the lock screen state, if the user slides on the lock screen window in the first direction for a distance exceeding a preset distance, the electronic device 100 creates a camera application window and displays the camera application window above the lock screen window. Then, the electronic device 100 has a camera application window of the camera application, a lock screen window of the lock screen module, a desktop window of the desktop application, and a wallpaper window of the wallpaper application.
[0308] like Figure 5K As shown, before the user unlocks the electronic device 100 or releases his finger, the electronic device 100 continues to display the camera application window above the lock screen window, then the camera application window is located on the upper layer of the lock screen window, the lock screen window is located on the upper layer of the desktop window, and the desktop window is still located on the upper layer of the wallpaper window.
[0309] Scenario three: the electronic device 100 is in the lock screen state. After the first application is opened and the application window of the first application is displayed, the display position of the application window of the first application moves as the position of the user's finger moves.
[0310] When the electronic device is in the lock screen state, the electronic device 100 opens the application window of the first application and displays the application window of the first application on the upper layer of the lock screen window. The user can long press and continue to move the application window of the first application in the first direction, and the display position of the application window of the first application moves with the movement of the user's finger position.
[0311] Optionally, when the user's finger moves in the first direction, not only the position of the application window of the first application will change, but also the size of the application window of the first application will increase.
[0312] Optionally, the application window of the first application may also remain unchanged, and only the display position of the application window of the first application changes.
[0313] Exemplarily, the first application may be a camera application.
[0314] Fig. 6A The UI diagram shows that a camera application window moves as a finger moves toward a first direction.
[0315] Optional, Fig. 6A Can be for Figure 5D-5G The method flow of the embodiment shown.
[0316] like Fig. 6A As shown, when the electronic device 100 is in a locked screen state, the software modules whose camera application window moves as the finger moves in a first direction include but are not limited to a locked screen module, a window management module, a display module and a camera application.
[0317] When the electronic device 100 is in a locked screen state, the method for moving the camera application window as the finger moves in the first direction may include but is not limited to the following steps:
[0318] S601. The display module displays a camera application window, and a camera preview image A is displayed on the camera application window.
[0319] For example, the camera application window can be Figure 5D The camera application window 5200 shown in FIG. 50 may include a camera preview screen A. Figure 5D The electronic device 100 is shown to display a camera preview screen 5201 in a camera application window 5200. The camera preview screen 5201 may be a screen captured by the electronic device 100 through a camera.
[0320] For example, the camera application window can be Figure 5E The camera application window 5200 shown in FIG. 50 may include a camera preview screen A. Figure 5E The electronic device 100 is shown to display a camera preview screen 5301 in the camera application window 5200. The camera preview screen 5301 may be a screen captured by the electronic device 100 through a camera.
[0321] For example, the camera application window can be Fig. 5F The camera application window 5200 shown in FIG. 50 may include a camera preview screen A. Fig. 5F The electronic device 100 is shown to display a camera preview screen 5401 in the camera application window 5200. The camera preview screen 5401 may be a screen captured by the electronic device 100 through a camera.
[0322] For example, the camera application window can be Figure 5G The camera application window 5200 shown in FIG. 50 may include a camera preview screen A. Figure 5G The electronic device 100 is shown to display a camera preview screen 5501 in the camera application window 5200. The camera preview screen 5501 may be a screen captured by the electronic device 100 through a camera.
[0323] S602: The lock screen module recognizes that the user continues to perform a first sliding operation on the camera application window in a first direction.
[0324] After the display module displays the camera application window, the user can continue to drag the camera application window on the lock screen window toward the first direction, so that the display position of the camera application window also moves toward the first direction.
[0325] For example, when the camera application window can be Figure 5D When the camera application window 5200 is shown, the first sliding operation toward the first direction of the camera application window may be Figure 5DThe shown sliding operation is for the camera application window 5200 in the positive direction of the Y axis.
[0326] For example, when the camera application window can be Figure 5E When the camera application window 5200 is shown, the first sliding operation toward the first direction of the camera application window may be Figure 5E The shown sliding operation is for the camera application window 5200 in the positive direction of the Y axis.
[0327] For example, when the camera application window can be Fig. 5F When the camera application window 5200 is shown, the first sliding operation toward the first direction of the camera application window may be Fig. 5F The shown sliding operation is for the camera application window 5200 in the positive direction of the Y axis.
[0328] For example, when the camera application window can be Figure 5G When the camera application window 5200 is shown, the first sliding operation toward the first direction of the camera application window may be Figure 5G The shown sliding operation is for the camera application window 5200 in the positive direction of the Y axis.
[0329] S603. The lock screen module determines display position 3 based on the termination position of the first sliding operation.
[0330] Exemplarily, when the first sliding operation is Figure 5D When the camera application window 5200 is slid in the positive direction of the Y axis, the display position 3 may be Figure 5E Position E shown.
[0331] Exemplarily, when the first sliding operation is Figure 5E When the camera application window 5200 is slid in the positive direction of the Y axis, the display position 3 may be Fig. 5F Position F shown.
[0332] Exemplarily, when the first sliding operation is Fig. 5F When the camera application window 5200 is slid in the positive direction of the Y axis, the display position 3 may also be Figure 5G Position G shown.
[0333] S604. The lock screen module determines the size 2 of the camera application window.
[0334] The distance between position 3 and position 1 is greater than the preset distance.
[0335] Optionally, the lock screen module may determine the size 2 of the camera application window based on the display position 3 and the position 1 .
[0336] For example, if display position 3 is Figure 5E The position E shown, the size 2 of the camera application window can be Figure 5E The size of the camera application window 5200 is shown.
[0337] For example, if display position 3 is Fig. 5F The position F shown, the size 2 of the camera application window can be Fig. 5F The size of the camera application window 5200 is shown.
[0338] For example, if display position 3 is Figure 5G The position G shown, the size 2 of the camera application window can be Figure 5G The size of the camera application window 5200 is shown.
[0339] For example, if display position 3 is Figure 5H The position H shown, the size 2 of the camera application window can be Figure 5H The size of the camera application window 5200 is shown.
[0340] S605. The lock screen module sends the size 2 and display position 3 of the camera application window to the window management module.
[0341] Optionally, the size 2 and display position 3 of the camera application window may also be sent to the window management module separately.
[0342] The size 2 of the camera application window is used for scaling the camera application window to obtain a camera application window of size 2. The display position 3 is used to confirm the display position of the camera application window of size 2.
[0343] S606: The window management module changes the size of the camera application window to size 2.
[0344] After receiving the size 2 of the camera application window sent by the lock screen module, the window management module can change the size of the camera application window to size 2.
[0345] S607: The window management module sends the display position 3 of the camera application window to the display module.
[0346] After acquiring the display position 3, the window management module may send the display position 3 to the display module. The display position 3 is used by the display module to confirm the display position of the camera application window of size 2.
[0347] Optionally, S607 may also be executed by a window management module.
[0348] S608: The camera application draws a camera preview screen B based on the image frames collected by the camera.
[0349] For example, if display position 3 is Figure 5E The camera preview screen B can be Figure 5E Camera preview screen 5301 is shown.
[0350] For example, if display position 3 is Fig. 5F The camera preview screen B can be Fig. 5F Camera preview screen 5401 is shown.
[0351] For example, if display position 3 is Figure 5G The camera preview screen B can be Figure 5G Camera preview screen 5501 is shown.
[0352] S609: The camera application sends the camera preview image B to the display module.
[0353] After the camera application is started, the camera application can call the image content collected by the camera of the electronic device 100 to draw a camera preview screen, such as a camera preview screen B, and send the camera preview screen B to the display module.
[0354] S610. The display module obtains the camera application window based on the identifier of the camera application window, and displays the camera application window above the lock screen window based on display position 3.
[0355] The display module can obtain the camera application window based on the identifier of the camera application window, and display the camera application window of size 2 above the lock screen window based on the display position 3.
[0356] S611. The display module displays the camera preview image B in a camera application window of size 2.
[0357] After receiving the camera preview picture B, the display module may display the camera preview picture B in a camera application window of size 2.
[0358] Optionally, S611 may also be executed before or simultaneously with S610.
[0359] Figure 6B It shows a schematic diagram of the display hierarchy of various application windows in the electronic device 100 after the electronic device 100 enters the lock screen state and the display position of the camera application window moves with the movement of the user's finger position.
[0360] For example, the camera application window can be Figure 5G Camera application window 5200 is shown.
[0361] After the electronic device 100 enters the lock screen state, the display position of the camera application window moves as the user's finger position moves, and there are a camera application window of the camera application, a lock screen window of the lock screen module, a desktop window of the desktop application, and a wallpaper window of the wallpaper application in the electronic device 100.
[0362] like Figure 6B As shown, before the user unlocks the electronic device 100 or releases his finger, the electronic device 100 continues to display the camera application window above the lock screen window, then the camera application window is located on the upper layer of the lock screen window, the lock screen window is located on the upper layer of the desktop window, and the desktop window is still located on the upper layer of the wallpaper window.
[0363] Scenario 4: The electronic device 100 is in the lock screen state. When the sliding distance in the first direction is less than the preset distance, that is, the electronic device 100 does not display the application window of the first application, if the user continues to slide in the second direction, the electronic device 100 continues to display the lock screen content.
[0364] Optionally, when the user continues to slide the camera application icon in the second direction, the display position of the camera application icon will change, and the size of the camera application icon will also decrease.
[0365] Optionally, when the user continues to slide the camera application icon in the second direction, the display position of the camera application icon may change, and the size of the camera application icon may also remain unchanged.
[0366] It should be noted that the second direction may refer to a direction pointing to the negative direction of the Y-axis and forming a certain angle with the negative direction of the Y-axis. The certain angle may be greater than or equal to 0 and less than 90 degrees. For example, the first direction may refer to a direction forming an angle of 45 degrees with the negative direction of the Y-axis.
[0367] Figure 7A-7B The UI diagram shows that when the user slides the camera application icon in the second direction on the lock screen interface, the electronic device 100 continues to display the lock screen content.
[0368] For example, Fig. 7A As shown, the electronic device 100 displays a lock screen window 5100 , and a lock screen image 5103 is displayed in the lock screen window 5100 . The lock screen image 5103 includes an icon 5104 of a camera application.
[0369] like Fig. 7A and Figure 7B As shown, if the user long presses the camera application icon 5104 and slides to Figure 7B Position I shown, position I can be Figure 7B At the position where the solid finger is shown, if the distance between position D and position 1 is less than the preset distance, the electronic device 100 can continue to display the lock screen.
[0370] like Figure 7B As shown, the electronic device 100 displays a lock screen window 5100 , a lock screen image 7101 is displayed in the lock screen window 5100 , and a camera application icon 7102 is displayed on the lock screen image 7101 .
[0371] Optionally, the size of icon 7102 may be smaller than the size of icon 5104 , or the size of icon 7102 may be the same as the size of icon 5104 .
[0372] Figure 7C A flowchart of a method in which the electronic device 100 continues to display lock screen content when the user slides the camera application icon in the second direction on the lock screen interface is shown.
[0373] like Figure 7C As shown, when the electronic device 100 is in the lock screen state, when the electronic device 100 receives the user sliding the camera application icon in the second direction on the lock screen interface, the software modules of the electronic device 100 that continue to display the lock screen content include but are not limited to the lock screen module and the display module.
[0374] When the electronic device 100 is in a locked screen state, and the electronic device 100 receives a user sliding a camera application icon in a second direction on the lock screen interface, the method for the electronic device 100 to continue to display the lock screen content may include but is not limited to the following steps:
[0375] S701. The display module displays a lock screen window, on which a lock screen image B is displayed. The lock screen image B includes a camera application icon B.
[0376] Exemplarily, the lock screen window can be Fig. 7A The lock screen window 5100 shown. The lock screen B can be Fig. 7A The lock screen 5103 shown. The camera application icon B can be Fig. 7A Icon 5104 for the camera application is shown.
[0377] S702: The lock screen module identifies a first sliding operation of the user on the lock screen window with respect to the camera application icon B in a second direction.
[0378] For example, for the first sliding operation of the camera application icon B toward the second direction, it can be Fig. 7A The icon 5104 for the camera application is shown sliding in the negative direction of the Y axis.
[0379] S703. The lock screen module obtains lock screen content C, where the lock screen content C includes a camera application icon C.
[0380] Optionally, the lock screen content C can be Figure 7BThe lock screen content in the lock screen image 7101 shown. The camera application icon C can be Figure 7B Icon 7102 of the camera application is shown.
[0381] Optionally, the size of the camera application icon C may be determined based on a distance between a termination position and an initial position of a first sliding operation on the camera application icon B in the second direction.
[0382] Optionally, the display position of the camera application icon C may be determined based on a termination position of the first sliding operation on the camera application icon B toward the second direction.
[0383] The lock screen content C may be different from the lock screen content B. For example, the display position and / or size of the camera application icon C may be different from the lock screen content B. Figure 4B The icon 4201 for the camera application is shown to be displayed at a different position and / or size.
[0384] Lock screen content C can be the same as lock screen content B. For example, the display position and size of the camera application icon C can be the same as Figure 4B The display position and size of the icon 4201 of the camera application shown are the same.
[0385] S704. The lock screen module draws the lock screen image C based on the lock screen content C.
[0386] After acquiring the lock screen content C, the lock screen module can draw the lock screen image C based on the lock screen content C.
[0387] For example, the lock screen image C can be Figure 7B Lock screen 7101 is shown.
[0388] S705. The lock screen module sends the lock screen image C to the display module.
[0389] After acquiring the lock screen image C, the lock screen module may send the lock screen image C and the identification of the lock screen window to the display module.
[0390] Optionally, the lock screen image C and the lock screen window may be sent to the display module simultaneously or in different time periods.
[0391] Optionally, the lock screen module may also send an identifier of the lock screen window to the display module.
[0392] S706. The display module obtains the lock screen window based on the identifier of the lock screen window, and displays the lock screen image C in the lock screen window.
[0393] After obtaining the identification of the lock screen window and the lock screen picture C, the display module can obtain the lock screen window based on the identification of the lock screen window, and display the lock screen picture C in the lock screen window.
[0394] When the electronic device 100 receives a user sliding the camera application icon on the lock screen interface toward the second direction, and the electronic device 100 continues to display the lock screen content,
[0395] The electronic device 100 includes a lock screen window of a lock screen module, a desktop window of a desktop application, and a wallpaper window of a wallpaper application. The positional relationship of the display levels of these three application windows can be similar to Figure 4E The positional relationship shown in the figure will not be described in detail in this application.
[0396] Scenario five: The electronic device 100 is in the lock screen state. When the sliding distance in the first direction is greater than the preset distance, that is, the electronic device 100 has created and displayed the application window of the first application above the lock screen window. If the user continues to slide in the second direction, the electronic device 100 can continue to display the application window or stop displaying the application window.
[0397] When the application window of the first application is displayed above the lock screen window, when the user continues to slide the application window of the first application in the second direction, the electronic device 100 can confirm whether to continue displaying the lock screen content or continue displaying the application content in the application window based on the termination position of the user's sliding operation.
[0398] If the distance between the end position of the user's sliding operation and the initial position is greater than the preset distance, the electronic device 100 can continue to display the application content in the application window.
[0399] If the distance between the end position of the user's sliding operation and the initial position is less than the preset distance, the electronic device 100 stops displaying the application window of the first application and continues to display the lock screen content.
[0400] For example, the first application may be a camera application, and the initial position may be Figure 4B The display position of icon 4201 of the camera application is shown.
[0401] Optionally, if the distance between the end position of the user's sliding operation and the camera application icon 4201 is greater than a preset distance, the display position of the application window of the camera application may change, and the size of the application window of the camera application may remain unchanged or become smaller.
[0402] Figure 8A-8C The UI diagram shows that when the user slides the application window of the camera application toward the second direction on the lock screen interface, the electronic device 100 continues to display the application window or stops displaying the application window.
[0403] For example, Fig. 8A As shown, the electronic device 100 displays a camera application window 5200 on the lock screen window 5100 , and a camera preview screen 5401 is displayed in the camera application window 5200 .
[0404] like Fig. 8A and Figure 8B As shown, if the user long presses the camera application window 5200 and slides to Figure 8B Position J shown, position J can be Figure 8B The position of the solid finger shown is Figure 8B The distance between the shown position J and position 1 is greater than the preset distance, and the electronic device 100 can continue to display the application window of the camera application. For example, the electronic device 100 can continue to display the camera application window 5200 of the camera application, and display the camera application window 5200 on the upper layer of the lock screen window, and display the camera preview screen 8101 in the camera application window 5200.
[0405] like Fig. 8A and Figure 8C As shown, if the user long presses the camera application window 5200 and slides to Figure 8C The position K shown, position K can be Figure 8C The position of the solid finger shown is Figure 8C If the distance between the position K shown and the position 1 is less than the preset distance, the electronic device 100 may stop displaying the application window of the camera application. For example, the electronic device 100 may stop displaying the camera application window 5200 and display a camera preview screen 8102 in the lock screen window 5100. The camera preview screen 8102 includes an icon 8103 of the camera application.
[0406] Fig.8D A flowchart of a method in which the electronic device 100 continues to display the application window or stops displaying the application window when the user slides the application window of the camera application toward the second direction on the lock screen interface is shown.
[0407] like Fig.8D As shown, when the electronic device 100 is in the lock screen state, the software modules of the electronic device 100 when receiving the user sliding the application window of the camera application in the second direction on the lock screen interface include but are not limited to the lock screen module, the window management module, and the display module camera application.
[0408] When the electronic device 100 is in a locked screen state, the method for the electronic device 100 to receive a user sliding an application window of a camera application in a second direction on the locked screen interface may include but is not limited to the following steps:
[0409] S801. The display module displays a camera application window, and a camera preview image A is displayed on the camera application window.
[0410] For example, the camera application window can be Fig. 8A The camera application window 5200 shown in FIG. 5 , the camera preview screen A may be Fig. 8ACamera preview screen 5401 is shown.
[0411] Exemplarily, the camera application window may also be Figure 5D The camera application window 5200 shown in FIG. 5 , the camera preview screen A may be Figure 5D Camera preview screen 5201 is shown.
[0412] Exemplarily, the camera application window may also be Figure 5E The camera application window 5200 shown in FIG. 5 , the camera preview screen A may be Figure 5E Camera preview screen 5301 is shown.
[0413] Exemplarily, the camera application window may also be Figure 5G The camera application window 5200 shown in FIG. 5 , the camera preview screen A may be Figure 5G Camera preview screen 5501 is shown.
[0414] Exemplarily, the camera application window may also be Figure 5H The camera application window 5200 shown in FIG. 5 , the camera preview screen A may be Figure 5H Camera preview screen 5601 is shown.
[0415] S802: The lock screen module identifies a first sliding operation of the user on the camera application window in a second direction.
[0416] Exemplarily, for the first sliding operation of the camera application window toward the second direction, it can be Fig. 8A As shown, long press the camera application window 5200 and slide it in the positive direction of the Y axis.
[0417] S803. The lock screen module determines a display position 5 based on the termination position of the first sliding operation.
[0418] S804. The lock screen module needs to confirm whether the distance between display position 5 and position 1 is greater than a preset distance.
[0419] If the distance between display position 5 and position 1 is greater than the preset distance, the electronic device 100 may continue to display the camera application window and change the size and display position of the camera application window. Optionally, the electronic device 100 may not change the size of the camera application window. Exemplarily, display position 5 may be Figure 8B The solid finger shown is located at the position, e.g. Figure 8B Position J shown.
[0420] If the distance between display position 5 and position 1 is less than the preset distance, the electronic device 100 needs to stop displaying the camera application window. Figure 8C The solid finger shown is located at the position, e.g. Figure 8C Position K shown.
[0421] S805. The lock screen module obtains lock screen content D, where the lock screen content D includes a camera application icon D.
[0422] S806. The lock screen module draws the lock screen image D based on the lock screen content D.
[0423] Exemplarily, the lock screen content D may be Figure 8C The lock screen content shown. The camera application icon D can be Figure 8C Icon 8103 of the camera application is shown.
[0424] S807. The lock screen module sends the lock screen image D to the display module.
[0425] After acquiring the lock screen image D, the lock screen module may send the lock screen image D and the identification of the lock screen window to the display module.
[0426] Optionally, the lock screen image D and the lock screen window may be sent to the display module simultaneously or in different time periods.
[0427] Optionally, the lock screen module may also send an identifier of the lock screen window to the display module.
[0428] S808. The display module obtains the lock screen window based on the identifier of the lock screen window, and displays the lock screen image D in the lock screen window.
[0429] After obtaining the identification of the lock screen window and the lock screen picture D, the display module can obtain the lock screen window based on the identification of the lock screen window, and display the lock screen picture D in the lock screen window.
[0430] S809. The lock screen module determines the size 3 of the camera application window.
[0431] Optionally, the lock screen module may determine the size 3 of the camera application window based on the distance between the display position 5 and the position 1 .
[0432] S810. The lock screen module sends the size 3 and display position 5 of the camera application window to the window management module.
[0433] Optionally, the size 3 and display position 5 of the camera application window may also be sent to the window management module respectively.
[0434] The size 3 of the camera application window is used for scaling the camera application window to obtain a camera application window of size 3. The display position 5 is used to confirm the display position of the camera application window of size 2.
[0435] S811. The window management module changes the size of the camera application window to size 3.
[0436] After receiving the size 3 of the camera application window sent by the lock screen module, the window management module can scale the camera application window based on the size 3 to obtain a camera application window of size 3.
[0437] S812. The window management module sends the display position 5 of the camera application window to the display module.
[0438] After acquiring the display position 5, the window management module may send the display position 5 to the display module. The display position 5 is used by the display module to confirm the display position of the camera application window of size 3.
[0439] Optionally, S812 may also be executed by a window management module.
[0440] S813: The camera application draws a camera preview screen C based on the image frames collected by the camera.
[0441] For example, if display position 5 is Figure 8B At the position J shown, the camera preview screen C can be Figure 8B The camera preview screen 8101 is shown.
[0442] S814: The camera application sends the camera preview image C to the display module.
[0443] After acquiring the camera preview image C, the camera application may send the camera preview image C to the display module.
[0444] S815. The display module obtains the camera application window based on the identifier of the camera application window, and displays the camera application window above the lock screen window based on display position 5.
[0445] The display module can obtain the camera application window based on the identifier of the camera application window, and display the camera application window above the lock screen window based on the display position 5.
[0446] S816. The display module displays the camera preview image C in a camera application window of size 3.
[0447] After receiving the camera preview image C, the display module may display the camera preview image C in a camera application window of size 3.
[0448] Optionally, S816 may also be executed before or simultaneously with S815.
[0449] Exemplarily, with respect to the description in S809-S816, after the electronic device 100 enters the lock screen state, when the electronic device 100 receives the user's operation of sliding the application window of the camera application in the second direction on the lock screen interface and continues to display the application window, the display position of the camera application window moves as the user's finger position moves, and the electronic device 100 contains a camera application window of the camera application, a lock screen window of the lock screen module, a desktop window of the desktop application, and a wallpaper window of the wallpaper application.
[0450] like Fig. 8E As shown, before the user unlocks the electronic device 100 or releases his finger, the electronic device 100 continues to display the camera application window above the lock screen window, then the camera application window is located on the upper layer of the lock screen window, the lock screen window is located on the upper layer of the desktop window, and the desktop window is still located on the upper layer of the wallpaper window.
[0451] Exemplarily, with respect to the description in S805-S808, after the electronic device 100 enters the lock screen state, when the electronic device 100 receives the user's operation of sliding the application window of the camera application in the second direction on the lock screen interface and stops displaying the camera application window, the camera application window is invisible, and the lock screen window of the lock screen module, the desktop window of the desktop application, and the wallpaper window of the wallpaper application exist in the electronic device 100. Optionally, the electronic device 100 may also have a camera application window or may not have a camera application window.
[0452] like Fig.8F As shown, the electronic device 100 may also have a camera application window. Before the user unlocks the electronic device 100 or releases his finger, the lock screen window is displayed above the camera application window. The camera application window is located on the upper layer of the desktop window, and the desktop window is still located on the upper layer of the wallpaper window. Optionally, the camera application window may also be located on the lower layer of the wallpaper window.
[0453] like Figure 8G As shown, if the camera application window does not exist in the electronic device 100, before the user unlocks the electronic device 100 or releases his finger, the lock screen window is displayed on the upper layer of the desktop window, and the desktop window is still located on the upper layer of the wallpaper window.
[0454] Scenario 6: The user unlocks the electronic device 100, and the electronic device 100 displays the application window of the first application in full screen.
[0455] Exemplarily, the first application may be a camera application.
[0456] In some embodiments, after the electronic device 100 displays the camera application window, if the user performs an unlocking operation, the electronic device 100 may display the camera application window of the camera application in full screen.
[0457] Optionally, after the electronic device 100 displays the camera application window in full screen, the user performs an unlocking operation, and the electronic device 100 can continue to display the camera application window of the camera application in full screen.
[0458] Optionally, when the electronic device 100 does not display the camera application window in full screen, the user performs an unlocking operation, and the electronic device 100 can switch to displaying the camera application window of the camera application in full screen.
[0459] Fig. 9A The flowchart shows a method for the electronic device 100 to display the application window of the first application in full screen after the user unlocks the electronic device 100 before the electronic device 100 displays the camera application window in full screen.
[0460] like Fig. 9A As shown, the electronic device 100 includes but is not limited to a lock screen module, a window management module, a display module and a camera application.
[0461] Fig. 9A The method shown may include but is not limited to the following steps:
[0462] S901. The display module displays a camera application window, and a camera preview image A is displayed on the camera application window.
[0463] Optionally, the camera application window in S901 may be a camera application window that is not displayed in full screen.
[0464] Exemplarily, the camera application window may also be Figure 5D The camera application window 5200 shown in FIG. 5 , the camera preview screen A may be Figure 5D Camera preview screen 5201 is shown.
[0465] Exemplarily, the camera application window may also be Figure 5E The camera application window 5200 shown in FIG. 5 , the camera preview screen A may be Figure 5E Camera preview screen 5301 is shown.
[0466] For example, the camera application window can be Fig. 5F The camera application window 5200 shown in FIG. 5 , the camera preview screen A may be Fig. 5F Camera preview screen 5401 is shown.
[0467] Exemplarily, the camera application window may also be Figure 5G The camera application window 5200 shown in FIG. 5 , the camera preview screen A may be Figure 5G Camera preview screen 5501 is shown.
[0468] Exemplarily, the camera application window may also be Figure 5HThe camera application window 5200 shown in FIG. 5 , the camera preview screen A may be Figure 5H Camera preview screen 5601 is shown.
[0469] S902: During a first sliding operation on the camera application window, the lock screen module identifies an unlocking operation by the user.
[0470] In some embodiments, before the camera application window is displayed in full screen, that is, during the first sliding operation on the camera application window, the lock screen module can identify the user's unlocking operation.
[0471] Optionally, the user can unlock the electronic device by one or more methods such as fingerprint (such as side button fingerprint), facial image, voiceprint, password, etc.
[0472] After the user performs an unlocking operation, the lock screen module can identify the user's unlocking operation.
[0473] S903: The screen lock module sends an unlock operation message to the window management module.
[0474] S904: The window management module sends an unlocking operation message to the display module.
[0475] S905: The display module stops displaying the lock screen window.
[0476] After identifying the user's unlocking operation, the lock screen module may send a message of the unlocking operation to the window management module, and the window management module then sends the message of the unlocking operation to the display module.
[0477] Optionally, the lock screen module may also directly send an unlock operation message to the window management module.
[0478] In response to the message of the unlocking operation, the display module stops displaying the lock screen window.
[0479] Optionally, after identifying the user's unlocking operation, the lock screen module can send a message of the unlocking operation to the window management module. In response to the message of the unlocking operation, the window management module can destroy the lock screen window so that after the electronic device 100 is unlocked, the lock screen window does not exist in the electronic device 100.
[0480] S906. In response to the unlocking operation, the lock screen module determines a size 4 of the camera application window, where size 4 is a full-screen size.
[0481] S907. The lock screen module sends the size 4 of the camera application window to the window management module.
[0482] In response to the unlocking operation, the lock screen module may determine a size 4 of the camera application window, where size 4 is a full screen size.
[0483] After acquiring the size 4 of the camera application window, the lock screen module sends the size 4 of the camera application window to the window management module.
[0484] Optionally, S903-S905 are not limited to be executed after S902, but may also be executed before, after or simultaneously with any step before S912.
[0485] S908: The window management module changes the size of the camera application window to size 4.
[0486] After receiving the size 4 of the camera application window sent by the lock screen module, the window management module can change the size of the camera application window to size 4.
[0487] For example, a camera application window of size 4 may be Fig.5I Camera application window 5200 is shown.
[0488] S909: The camera application draws a camera preview screen D based on the image frames collected by the camera.
[0489] Exemplarily, the camera preview screen D may be Fig.5I Camera preview screen 5701 is shown.
[0490] S910: The camera application sends the camera preview image D to the display module.
[0491] When the camera application is started, the image content collected by the camera of the electronic device 100 can be called to draw a camera preview screen, such as a camera preview screen D, and the camera preview screen D can be sent to the display module.
[0492] S911. The display module obtains a camera application window based on the identifier of the camera application window, and displays the camera application window in full screen.
[0493] After receiving the identifier of the camera application window sent by the camera application, the display module may obtain the camera application window based on the identifier of the camera application window, and display the camera application window in full screen.
[0494] S912: The display module displays the camera preview image D in a camera application window of size 4.
[0495] After receiving the camera preview picture D, the display module may display the camera preview picture D in a camera application window of size 4, that is, display the camera preview picture D in a camera application window displayed in full screen.
[0496] Optionally, S912 may also be executed before or simultaneously with S911.
[0497] After the electronic device 100 displays the camera application window and before the camera application window is displayed in full screen, that is, during the first sliding operation on the camera application window, if the user performs an unlocking operation, the electronic device 100 can switch to displaying the camera application window in full screen.
[0498] Optionally, before the electronic device 100 switches to displaying the camera application window in full screen, the electronic device 100 may control the size of the camera application window to gradually increase to the full screen, so as to achieve a natural transition to displaying the camera application window in full screen.
[0499] The image content displayed in one or more transition image frames may be the image content captured in real time by the camera. For example, one or more transition image frames may be respectively Fig. 5F The camera preview screen 5401 shown, Figure 5G The camera preview screen 5501 shown, Figure 5H Camera preview screen 5601 is shown.
[0500] Fig. 9B A schematic diagram of the display hierarchy of various application windows in the electronic device 100 is shown after the user unlocks the electronic device 100 and the electronic device 100 displays the application window of the first application in full screen.
[0501] For example, the camera application window can be Fig.5I Camera application window 5200 is shown.
[0502] After the user unlocks the electronic device 100 , the electronic device 100 may destroy the lock screen window. There are a camera application window of the camera application, a desktop window of the lock desktop application, and a wallpaper window of the wallpaper application in the electronic device 100 .
[0503] like Fig. 9B As shown, the electronic device 100 displays a camera application window in the foreground, and the camera application window is located on an upper layer of the desktop window, and the desktop window is also located on an upper layer of the wallpaper window.
[0504] Optionally, a lock screen window may also exist in the electronic device 100, and the lock screen window may be located in a lower layer of the wallpaper window.
[0505] Fig. 9C The flowchart shows a method in which the electronic device 100 displays the application window of the first application in full screen after the electronic device 100 displays the camera application window in full screen and the user unlocks the electronic device 100.
[0506] like Fig. 9C As shown, the electronic device 100 includes but is not limited to a lock screen module, a window management module, a display module and a camera application.
[0507] Fig. 9CThe method shown may include but is not limited to the following steps:
[0508] S901C, the display module displays the camera application window in full screen, and the camera application window displays a camera preview screen.
[0509] Optionally, the camera application window in S901C may be a camera application window displayed in full screen.
[0510] Exemplarily, the camera application window may also be Fig.5I The camera application window 5200 shown in FIG. 50 shows a camera preview screen. Fig.5I Camera preview screen 5701 is shown.
[0511] S902C. The lock screen module identifies the user's unlocking operation.
[0512] In some embodiments, after the camera application window is displayed in full screen, that is, after the first sliding operation on the camera application window is completed, the lock screen module can identify the user's unlocking operation.
[0513] Optionally, the user can unlock the electronic device by one or more methods such as fingerprint (such as side button fingerprint), facial image, voiceprint, password, etc.
[0514] After the user performs an unlocking operation, the lock screen module can identify the user's unlocking operation.
[0515] S903C: The screen lock module sends an unlock operation message to the window management module.
[0516] S904C: The window management module sends an unlocking operation message to the display module.
[0517] S905C. The display module stops displaying the lock screen window.
[0518] After identifying the user's unlocking operation, the lock screen module may send a message of the unlocking operation to the window management module, and the window management module then sends the message of the unlocking operation to the display module.
[0519] Optionally, the lock screen module may also directly send an unlock operation message to the window management module.
[0520] In response to the message of the unlocking operation, the display module stops displaying the lock screen window.
[0521] Optionally, after identifying the user's unlocking operation, the lock screen module can send a message of the unlocking operation to the window management module. In response to the message of the unlocking operation, the window management module can destroy the lock screen window so that after the electronic device 100 is unlocked, the lock screen window does not exist in the electronic device 100.
[0522] Among them, the window management module destroys the lock screen window, which may mean that the lock screen window does not exist in the electronic device 100.
[0523] S906C: The display module continues to display the camera application window in full screen, and the camera application window displays a camera preview image.
[0524] After the camera application window is displayed in full screen, if the user performs an unlock operation, the electronic device 100 can destroy the lock screen window and stop displaying the lock screen window. Since the camera application window and the lock screen window are two independent windows, after the lock screen window is destroyed, the camera application window still exists in the electronic device 100, and the electronic device 100 can continue to display the camera application window in full screen and display the camera preview screen in the camera application window.
[0525] Optionally, the camera preview image may change in real time.
[0526] The display hierarchy relationship of each application window in the electronic device 100 can be referred to Fig. 9B Description in the Examples.
[0527] Scenario seven: when the electronic device 100 is in the lock screen state, when the electronic device 100 displays the camera application window above the lock screen window, if the first sliding operation is ended, the electronic device 100 can display the application window of the first application in full screen.
[0528] Exemplarily, the first application may be a camera application.
[0529] When the electronic device 100 is in the lock screen state, when the electronic device 100 displays the camera application window above the lock screen window, if the user ends the first sliding operation, for example, the user releases the finger, the electronic device 100 will display the application window of the first application in full screen.
[0530] Fig. 10A The flowchart shows a method for the electronic device 100 to display the application window of the first application in full screen after the user completes the first sliding operation when the electronic device 100 is in the locked screen state.
[0531] like Fig. 10A As shown, the electronic device 100 includes but is not limited to a lock screen module, a window management module, a display module and a camera application.
[0532] Fig. 10A The method shown may include but is not limited to the following steps:
[0533] S1001. The display module displays a camera application window, and a camera preview screen A is displayed on the camera application window.
[0534] Before the camera application window is displayed in full screen, the electronic device 100 may receive a first sliding operation of the user on the camera application window, change the display position of the camera application window on the display screen, and may also change the size of the camera application window to achieve hand tracking.
[0535] Optionally, the camera application window in S901 may be a camera application window that is not displayed in full screen.
[0536] Exemplarily, the camera application window may also be Figure 5D The camera application window 5200 shown in FIG. 5 , the camera preview screen A may be Figure 5D Camera preview screen 5201 is shown.
[0537] Exemplarily, the camera application window may also be Figure 5E The camera application window 5200 shown in FIG. 5 , the camera preview screen A may be Figure 5E Camera preview screen 5301 is shown.
[0538] For example, the camera application window can be Fig. 5F The camera application window 5200 shown in FIG. 5 , the camera preview screen A may be Fig. 5F Camera preview screen 5401 is shown.
[0539] Exemplarily, the camera application window may also be Figure 5G The camera application window 5200 shown in FIG. 5 , the camera preview screen A may be Figure 5G Camera preview screen 5501 is shown.
[0540] Exemplarily, the camera application window may also be Figure 5H The camera application window 5200 shown in FIG. 5 , the camera preview screen A may be Figure 5H Camera preview screen 5601 is shown.
[0541] S1002: The lock screen module recognizes that the user stops the first sliding operation on the camera application window.
[0542] If the user stops the first sliding operation on the camera application window, for example, releases the finger, the lock screen module can identify that the user stops the first sliding operation on the camera application window.
[0543] S1003: In response to stopping the first sliding operation on the camera application window, the lock screen module determines a size 4 of the camera application window, where size 4 is a full-screen size.
[0544] After recognizing that the user stops the first sliding operation on the camera application window, the electronic device 100 can confirm that the camera application window will be switched to full screen display. The lock screen module can determine the size of the camera application window to be 4, which is the full screen size.
[0545] S1004. The lock screen module sends the size 4 of the camera application window to the window management module.
[0546] In response to stopping the first sliding operation on the camera application window, the lock screen module can determine a size 4 of the camera application window, where size 4 is a full-screen size.
[0547] After acquiring the size 4 of the camera application window, the lock screen module sends the size 4 of the camera application window to the window management module.
[0548] S1005. The window management module changes the size of the camera application window to size 4.
[0549] After receiving the size 4 of the camera application window sent by the lock screen module, the window management module can scale the camera application window based on the size 4 to obtain a camera application window of size 4.
[0550] For example, the camera application window can be Fig.5I Camera application window 5200 is shown.
[0551] S1006: The camera application draws a camera preview screen E based on the image frames collected by the camera.
[0552] Exemplarily, the camera preview screen E may be Fig.5I Camera preview screen 5701 is shown.
[0553] S1007: The camera application sends the camera preview image E to the display module.
[0554] When the camera application is started, the image content collected by the camera of the electronic device 100 can be called to draw a camera preview screen, such as a camera preview screen E, and the camera preview screen E can be sent to the display module.
[0555] S1008: The display module obtains the camera application window based on the identifier of the camera application window, and displays the camera application window in full screen.
[0556] The display module may obtain the camera application window based on the identifier of the camera application window, and display the camera application window in full screen.
[0557] S1009: The display module displays the camera preview image E in a camera application window of size 4.
[0558] After receiving the camera preview picture E, the display module may display the camera preview picture E in a camera application window of size 4.
[0559] Optionally, S1009 may also be executed before or simultaneously with S1008.
[0560] Optionally, before the electronic device 100 switches to displaying the camera application window in full screen, the electronic device 100 may control the size of the camera application window to gradually increase to the full screen, so as to achieve a natural transition to displaying the camera application window in full screen.
[0561] The image content displayed in one or more transition image frames may be the image content captured in real time by the camera. For example, one or more transition image frames may be respectively Fig. 5F The camera preview screen 5401 shown, Figure 5G The camera preview screen 5501 shown, Figure 5H Camera preview screen 5601 is shown.
[0562] Fig. 10B The diagram shows a display hierarchy diagram of each application window in the electronic device 100 after the electronic device 100 recognizes that the user stops the first sliding operation on the camera application window and the electronic device 100 displays the application window of the first application in full screen.
[0563] For example, the camera application window can be Fig.5I Camera application window 5200 is shown.
[0564] The electronic device 100 includes a camera application window of a camera application, a lock screen window, a desktop window of a lock desktop application, and a wallpaper window of a wallpaper application.
[0565] like Fig. 10B As shown, the camera application window of the camera application is displayed on the upper layer of the lock screen window, the lock screen window is displayed on the upper layer of the desktop window, and the desktop window is still located on the upper layer of the wallpaper window.
[0566] Scenario eight: when the electronic device 100 is in the lock screen state, after the electronic device 100 displays the application window of the first application in full screen, if the electronic device 100 receives a user operation to exit the first application, the electronic device 100 may display the lock screen window in full screen.
[0567] Exemplarily, the first application may be a camera application.
[0568] After the electronic device 100 displays the application window of the camera application in full screen, if the electronic device 100 receives a user operation to exit the camera application, the electronic device 100 may display the lock screen window in full screen.
[0569] Figure 11A-11B A UI schematic diagram is shown in which a group of electronic devices 100 receive a user operation to exit a camera application, and the electronic device 100 displays a lock screen window in full screen.
[0570] For example, Fig.11AAs shown, the electronic device 100 displays a camera application window 5200 in full screen, and a camera preview screen 5701 is displayed in the camera application window 5200 .
[0571] Fig.11A The camera application window 5200 shown may be displayed when the electronic device 100 is in a locked screen state.
[0572] The electronic device 100 may receive a user operation to stop displaying the camera application window 5200 .
[0573] For example, Fig.11A and Fig. 11B As shown, the electronic device 100 can receive an operation of the user on the camera application window 5200, such as an upward sliding operation on the bottom of the display screen. In response to the user's operation, the electronic device 100 can stop displaying the camera application window 5200 and display Fig. 11B The lock screen window shown, Fig. 11B The lock screen window shown displays a lock screen image 4102.
[0574] Optionally, the user is not limited to the upward sliding operation at the bottom of the display screen. The user can also perform other operations to make the electronic device 100 stop displaying the camera application window 5200. The present application does not limit the specific implementation of the operation of stopping displaying the camera application window 5200.
[0575] Fig. 11C A flowchart of a method in which the electronic device 100 receives a user operation to exit a camera application and the electronic device 100 displays a lock screen window in full screen is shown.
[0576] Optional, Fig. 11C Can be for Fig. 10A The method shown in , when the electronic device 100 is in the locked screen state, the electronic device 100 displays the camera application window in full screen and then stops displaying the camera application window.
[0577] S1101A. The display module displays a camera application window in full screen, and a camera preview screen E is displayed in the camera application window.
[0578] For example, the camera application window can be Fig.11A The camera application window 5200 is shown. The camera preview screen E can be Fig.11A Camera preview screen 5701 is shown.
[0579] S1102A: The lock screen module identifies an operation of stopping displaying the camera application window.
[0580] The electronic device 100 may receive a user operation to stop displaying the camera application window 5200. After receiving the operation to stop displaying the camera application window, the lock screen module may identify the operation to stop displaying the camera application window.
[0581] Exemplarily, the operation of stopping displaying the camera application window 5200 may be an upward sliding operation on the bottom of the display screen.
[0582] S1103A: In response to the operation of stopping displaying the camera application window, the lock screen module obtains lock screen content A.
[0583] In response to the operation of stopping displaying the camera application window, the lock screen module can obtain the lock screen content A.
[0584] For example, the lock screen content A can be Fig. 11B Lock screen 4102 is shown.
[0585] S1104A. Based on the lock screen content A, the lock screen module draws the lock screen image A.
[0586] After obtaining the lock screen content A, the lock screen module draws the lock screen image A.
[0587] S1105A, the lock screen module sends the lock screen image A to the display module.
[0588] S1106A. The display module obtains the lock screen window based on the identifier of the lock screen window, and displays the lock screen image A in the lock screen window.
[0589] After acquiring the lock screen image A, the lock screen module may send the lock screen image A and the identification of the lock screen window to the display module.
[0590] After acquiring the lock screen image A, the display module may acquire the lock screen window based on the identifier of the lock screen window, and display the lock screen image A in the lock screen window.
[0591] Optionally, the lock screen module may also send the identifier of the lock screen window to the display module.
[0592] Fig.11D A schematic diagram of the display hierarchy of various application windows in the electronic device 100 is shown when the electronic device 100 is in a locked screen state, the electronic device 100 receives a user operation to exit a camera application, and displays the lock screen window in full screen.
[0593] When the electronic device 100 is in the lock screen state, the electronic device 100 receives a user operation to exit the camera application and displays the lock screen window in full screen. The lock screen window, the desktop window of the desktop application, and the wallpaper window of the wallpaper application exist in the electronic device 100. Fig.11D As shown, the lock screen window is located above the desktop window, and the desktop window is located on the upper layer of the wallpaper window.
[0594] Fig.11E Another schematic diagram of the display hierarchy of various application windows in the electronic device 100 is shown when the electronic device 100 is in the lock screen state, the electronic device 100 receives a user operation to exit the camera application, and displays the lock screen window in full screen.
[0595] When the electronic device 100 is in the lock screen state, the electronic device 100 receives a user operation to exit the camera application and displays the lock screen window in full screen. The lock screen window, the camera application window, the desktop window of the desktop application, and the wallpaper window of the wallpaper application exist in the electronic device 100. Fig.11E As shown, the lock screen window is located above the camera application window, the camera application window is located above the desktop window, and the desktop window is located on the upper layer of the wallpaper window.
[0596] Optionally, the camera application window may also be located below the wallpaper window.
[0597] Scenario nine: when the electronic device 100 is in unlocked state, after the electronic device 100 displays the application window of the first application in full screen, if the electronic device 100 receives a user operation to exit the first application, the electronic device 100 may display the desktop.
[0598] Figure 11F-11G A UI schematic diagram is shown in which another group of electronic devices 100 receives a user operation to exit a camera application, and the electronic device 100 displays a desktop window in full screen.
[0599] For example, Fig.11F As shown, the electronic device 100 displays a camera application window 5200 in full screen, and a camera preview screen 5701 is displayed in the camera application window 5200 .
[0600] Fig.11F The camera application window 5200 shown may be displayed when the electronic device 100 is in an unlocked state.
[0601] The electronic device 100 may receive a user operation to stop displaying the camera application window 5200 .
[0602] For example, Fig.11F and Fig.11G As shown, the electronic device 100 can receive an operation of the user on the camera application window 5200, such as an upward sliding operation on the bottom of the display screen. In response to the user's operation, the electronic device 100 can stop displaying the camera application window 5200 and display Fig.11G The desktop window shown has the desktop displayed therein.
[0603] Optionally, the user is not limited to the upward sliding operation at the bottom of the display screen. The user can also perform other operations to make the electronic device 100 stop displaying the camera application window 5200. The present application does not limit the specific implementation of the operation of stopping displaying the camera application window 5200.
[0604] Fig.11H A flowchart of another method is shown in which the electronic device 100 receives a user operation to exit a camera application, and the electronic device 100 displays a desktop window in full screen.
[0605] Optional, Fig.11H Can be for Fig. 9A or Fig. 9C The method shown in , when the electronic device 100 is in an unlocked state, the electronic device 100 displays the camera application window in full screen and then stops displaying the camera application window.
[0606] S1101B. The display module displays the camera application window in full screen, and a camera preview screen E is displayed in the camera application window.
[0607] For example, the camera application window can be Fig.11F The camera application window 5200 is shown. The camera preview screen E can be Fig.11F Camera preview screen 5701 is shown.
[0608] S1102B: The lock screen module identifies an operation of stopping displaying the camera application window.
[0609] The electronic device 100 may receive a user operation to stop displaying the camera application window 5200. After receiving the operation to stop displaying the camera application window, the lock screen module may identify the operation to stop displaying the camera application window.
[0610] Exemplarily, the operation of stopping displaying the camera application window 5200 may be an upward sliding operation on the bottom of the display screen.
[0611] S1103B: In response to the operation of stopping displaying the camera application window, the lock screen module obtains desktop content.
[0612] In response to the operation of stopping displaying the camera application window, the lock screen module can obtain desktop content.
[0613] For example, the desktop content can be Fig.11G The desktop contents are shown.
[0614] S1104B. Based on the desktop content, the lock screen module draws the desktop.
[0615] After obtaining the desktop content, the lock screen module draws the desktop.
[0616] S1105B, the lock screen module sends the desktop to the display module.
[0617] Optionally, the lock screen module may also send the identification of the desktop window to the display module.
[0618] S1106B: The display module obtains the desktop window based on the identifier of the desktop window, and displays the desktop in the desktop window.
[0619] After obtaining the desktop, the lock screen module can send the identification of the desktop and the desktop window to the display module.
[0620] After obtaining the identifiers of the desktop and the desktop window, the display module can obtain the desktop window based on the identifier of the desktop window and display the desktop in the desktop window.
[0621] Fig.11I A schematic diagram of the display hierarchy of various application windows in the electronic device 100 is shown when the electronic device 100 is in an unlocked state, the electronic device 100 receives a user operation to exit the camera application, and displays the desktop window in full screen.
[0622] When the electronic device 100 is in an unlocked state, the electronic device 100 receives a user operation to exit the camera application and displays the desktop window in full screen. The desktop window of the desktop application and the wallpaper window of the wallpaper application exist in the electronic device 100. Fig.11I As shown, the desktop window is located on the upper layer of the wallpaper window.
[0623] Fig.11J Another schematic diagram of the display hierarchy of various application windows in the electronic device 100 is shown when the electronic device 100 is in the locked screen state, the electronic device 100 receives a user operation to exit the camera application, and displays the desktop window in full screen.
[0624] When the electronic device 100 is in the locked screen state, the electronic device 100 receives a user operation to exit the camera application and displays the desktop window in full screen. Then, the electronic device 100 has a camera application window, a desktop window of the desktop application, and a wallpaper window of the wallpaper application. Fig.11J As shown, the desktop window is located on the upper layer of the wallpaper window, and the wallpaper window is located above the camera application window.
[0625] Fig.12 A flowchart of a method for launching an application in a locked screen state provided in this application.
[0626] S1201. An electronic device displays a first lock screen, where the first lock screen includes a first icon of a first application.
[0627] S1202: The electronic device receives a first sliding operation, where the first sliding operation acts on a first icon.
[0628] For example, the first application may be a camera application, and the first lock screen may be Figure 5A In the lock screen 4102 shown, the first icon can be Figure 5A Icon 4201 of the camera application is shown.
[0629] For example, the first application may be a camera application, and the first lock screen may be Figure 5B The lock screen 5101 shown, the first icon can be Figure 5B Icon 5102 of the camera application is shown.
[0630] For example, the first application may be a camera application, and the first lock screen may be Figure 5C The lock screen 5103 shown, the first icon can be Figure 5C Icon 5104 of the camera application is shown.
[0631] S1203. In response to the first sliding operation, the electronic device displays a first window of the first application, where the first window displays screen content of the first application.
[0632] Exemplarily, the first window is Figure 5D , Figure 5E , Fig. 5F , Figure 5G , Figure 5H Camera application window 5200 is shown.
[0633] In this embodiment of the present application, when the first application is a camera application, the camera application window 5200 may also be referred to as a first window.
[0634] Not limited to the camera application, the first application may also be other applications.
[0635] For example, when the first application is a payment application, the user can quickly open the payment application in the lock screen state and display the payment application window. The payment code can be displayed in the payment application window. In this way, the user can quickly display the payment code in the payment application without unlocking the screen, which is used for quick payment and other operations, making it easier for user operations.
[0636] For example, when the first application is a scan application, the user can quickly open the scan application in the lock screen state and display the scan application window. A scan code page can be displayed in the scan application window. In this way, the user can quickly open the scan application without unlocking the phone and scan QR codes and other pictures through the scan application for quick payment and other operations, which is convenient for user operations.
[0637] Exemplarily, when the first application is a memo application, the user can quickly open the memo application in the lock screen state and display the memo application window. The memo application window can display the note content. In this way, the user can quickly display the note content of the memo application without unlocking the screen, which is convenient for user operation.
[0638] Through this method, when the first application is opened in the lock screen state, the electronic device can create a first window of the first application and display the content of the first application in the first window of the first application, so that the user can preview the application content of the first application in advance without unlocking the electronic device.
[0639] In one possible implementation, the electronic device displays a first lock screen image, specifically including: the electronic device displays the first lock screen image in a lock screen window; the electronic device displays a first window of a first application, specifically including: the electronic device displays the first window of the first application above the lock screen window.
[0640] In this way, when the first application is quickly opened in the lock screen state, the electronic device can create a first window of the first application. In this way, the first window of the first application and the lock screen window are independent of each other and do not affect each other. When the lock screen application is closed, the first window of the first application still exists.
[0641] Exemplarily, the lock screen window can be Figure 5A ,or Figure 5B ,or Figure 5C Lock screen window 5100 is shown.
[0642] In one possible implementation, in response to a first sliding operation, the electronic device displays a first window of a first application, specifically including: the electronic device determines a first sliding distance based on the first sliding operation on the first icon; the electronic device determines whether the first sliding distance is greater than a preset distance; if the first sliding distance is greater than the preset distance, the electronic device displays the first window of the first application.
[0643] Optionally, the first sliding distance may be determined based on a distance in a vertical direction between a termination position and an initial position of the first sliding operation on the first icon. Optionally, the initial position may be a display position of the first icon.
[0644] Exemplarily, the display position of the first icon may refer to the position of the center point of the first icon. The display position of the first icon may also refer to the display position of other points of the first icon, such as the display position of any side of the first icon, or the display position of a certain point inside the first icon, or the display position of a certain point outside the first icon.
[0645] Through this method, when the sliding distance for the first icon is greater than a preset distance, the electronic device can create and display the first window of the first application.
[0646] The method also includes: if the first sliding distance is less than the preset distance, the electronic device displays a second lock screen, the second lock screen includes a second icon of the first application, the size of the second icon is larger than the size of the first icon, or the size of the second icon is the same as the size of the first icon.
[0647] By this method, when the sliding distance for the first icon is less than the preset distance, the electronic device may not create and open the first window of the first application. The icons of the first application, such as the second icon, are accumulated and displayed, and the size of the second icon and the size of the first icon may be the same or different, and the display position of the second icon and the display position of the first icon may be the same or different.
[0648] In a possible implementation, the display position of the second icon is different from the display position of the first icon, and the display position of the second icon is determined based on the first sliding operation.
[0649] Optionally, the display position of the second icon may be determined based on the termination position of the first sliding operation on the first icon.
[0650] In a possible implementation, the electronic device displays a first window of a first application, specifically including: the electronic device determines a first display position based on a first sliding operation; and the electronic device displays the first window of the first application based on the first display position.
[0651] Optionally, the display position of the first window may be determined based on a termination position of the first sliding operation on the first icon.
[0652] Optionally, the electronic device displays the first window at the first display position, which may refer to the first display position being the display position of a vertex of the first window, or the display position of a point on an edge of the first window, or the display position of a point inside the first window, or the display position of a point that is not located on the first window or inside the first window, but is located outside the first window. The present application does not limit how to display the first window based on the first display position.
[0653] In this way, it can be ensured that the display position of the first window changes along with the display position of the user's finger, so as to achieve hand-tracking.
[0654] For example, please refer to Figure 5J Description in the examples.
[0655] In one possible implementation, after the electronic device displays the first window of the first application, the method also includes: the electronic device continues to receive the first sliding operation, the first sliding operation acts on the first window; the electronic device determines a second sliding distance based on the first sliding operation acting on the first window; the electronic device determines whether the second sliding distance is greater than a preset distance; if the second sliding distance is greater than the preset distance, the electronic device displays the first window of the first application, and the first window displays the screen content of the first application.
[0656] After the electronic device creates and displays the first window of the first application, the user may continue the first sliding operation on the first window.
[0657] Optionally, the first sliding operation on the first window may be in the same direction as the first sliding operation on the first icon, or may be in the opposite direction to the first sliding operation on the first icon.
[0658] Optionally, the second sliding distance may be based on a distance in the vertical direction between a termination position and an initial position of the first sliding operation on the first window.
[0659] Optionally, the sliding direction of the first sliding operation on the first window and the sliding direction of the first sliding operation on the first icon may be the same or different.
[0660] By this method, when the second sliding distance of the first sliding operation on the first window is greater than the preset distance, the electronic device can continue to display the first window of the first application. Before and after receiving the first sliding operation on the first window, the size of the first window can be the same or different, and the display position of the first window can be the same or different.
[0661] Exemplarily, when the sliding direction of the first sliding operation on the first window is the same as the sliding direction of the first sliding operation on the first icon, for example, both are the first direction, reference may be made to Figure 6A-6B Description in the examples.
[0662] Exemplarily, in the case where the sliding direction of the first sliding operation on the first window is different from the sliding direction of the first sliding operation on the first icon, for example, the sliding direction of the first sliding operation on the first window is the first direction, and the sliding direction of the first sliding operation on the first icon is the second direction, and the first direction and the second direction are opposite, reference can be made to Figure 8D-8G Description in the examples.
[0663] In a possible implementation, if the second sliding distance is greater than the first sliding distance, the size of the first window of the first application becomes larger; if the second sliding distance is less than the first sliding distance, the size of the first window of the first application becomes smaller.
[0664] In this way, the size of the first window can change with the change of the sliding distance to achieve chirality.
[0665] In one possible implementation, after the electronic device displays the first window of the first application, the method further includes: the electronic device receives an unlocking operation by the user; in response to the unlocking operation, the electronic device displays the first window of the first application in full screen, and the first window displays screen content in the first application.
[0666] Optionally, the electronic device 100 may be a first window of the first application displayed in full screen, or the electronic device 100 may be a first window of the first application displayed in non-full screen. Afterwards, the electronic device may receive an unlocking operation from the user. Since the first window of the first application and the lock screen window are independent of each other, the display state of the first window of the first application will not be affected by the lock screen window. After unlocking, when the lock screen window is destroyed, the electronic device 100 may still continue to display the first window of the first application.
[0667] For example, if the electronic device 100 is the first window of the first application displayed in full screen, the unlocking operation performed can refer to Fig. 9C Description in the Examples.
[0668] For example, if the electronic device 100 is in the first window of the first application displayed in full screen, the unlocking operation performed can refer to Figure 9A-9B Description in the Examples.
[0669] In one possible implementation, the electronic device destroys the lock screen window.
[0670] In this way, after performing the unlock operation, the electronic device can destroy the lock screen window. That is, the electronic device has closed the lock screen application, and there is no lock screen window in the electronic device. When the electronic device enters the lock screen state again, the electronic device opens the lock screen application again, and creates and displays the lock screen window.
[0671] In a possible implementation, after the electronic device displays the first window of the first application, the method further includes: after detecting that the first sliding operation is completed, the electronic device displays the first window of the first application in full screen, and the first window displays the screen content of the first application.
[0672] In this way, after the user stops the operation on the first window, that is, stops the first sliding operation on the first window, for example, the user releases his finger, the electronic device can automatically display the first window of the first application in full screen.
[0673] In a possible implementation, the first window of the first application is located on an upper layer of the lock screen window.
[0674] In this way, after the user stops the operation on the first window, that is, stops the first sliding operation of the first window, for example, when the user releases his finger, the lock screen window still exists in the electronic device, and the first window is located on the upper layer of the lock screen window.
[0675] For example, please refer to Figure 10A-10B Description in the Examples.
[0676] In a possible implementation, before the electronic device displays the first window of the first application in full screen, the method further includes: the electronic device gradually enlarges the first window of the first application until the first window of the first application is displayed in full screen.
[0677] In this way, after the user stops the operation on the first window, that is, stops the first sliding operation on the first window, or after the user performs an unlocking operation, the first window can be gradually enlarged to achieve a natural switch to full-screen display.
[0678] In one possible implementation, after the electronic device displays the first window of the first application in full screen, the method also includes: the electronic device receives an operation by a user on the first window of the first application; in response to receiving the operation by the user on the first window of the first application, the electronic device displays a lock screen window, in which a first lock screen image is displayed.
[0679] In this way, when the electronic device is in a lock screen state, if the electronic device displays the first window in full screen, and then the electronic device can receive a user operation to stop displaying the first window, the electronic device can continue to display the lock screen window in full screen.
[0680] In a possible implementation, after the electronic device displays the lock screen window, the method further includes: the electronic device destroying the first window displaying the first application or displaying the first window of the first application in a lower layer of the lock screen window.
[0681] Optionally, the first window may be destroyed in the electronic device, or the first window may continue to exist. When the first window continues to exist in the electronic device, the lock screen window is located on an upper layer of the first window.
[0682] For example, please refer to Figures 11A-11E Description in the Examples.
[0683] In a possible implementation, when the electronic device is in an unlocked state, if the electronic device displays the first window in full screen, and then the electronic device receives a user operation to stop displaying the first window, the electronic device may display the desktop, and the desktop window is located above the first window.
[0684] For example, please refer to Figure 11F-11J Description in the Examples.
[0685] The present application provides an electronic device, the electronic device includes one or more processors and one or more memories; the one or more memories are coupled to the one or more processors, the one or more memories are used to store computer program codes, the computer program codes include computer instructions, when the one or more processors execute the computer instructions, the electronic device executes Fig.12 A method for launching an application in a locked screen state is shown.
[0686] The present application provides a computer-readable storage medium, including instructions, which, when executed on an electronic device, enable the electronic device to execute Fig.12 A method for launching an application in a locked screen state is shown.
[0687] The present application provides a computer program product, which may include computer instructions. When the computer instructions are run on an electronic device, the electronic device executes Fig.12 A method for launching an application in a locked screen state is shown.
[0688] The present application provides a chip, which is applied to an electronic device, and the chip includes one or more processors, which are used to call computer instructions to enable the electronic device to execute Fig.12 A method for launching an application in a locked screen state is shown.
[0689] Some steps in the above embodiments may be replaced by other methods in the art that can achieve the same effect, or, on the premise that the long screenshot function can be achieved, some steps in the above embodiments may be omitted.
[0690] The various implementation modes of the present application can be combined arbitrarily to achieve different technical effects.
[0691] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state drive (SSD)), etc.
[0692] Those skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by computer programs to instruct related hardware, and the programs can be stored in computer-readable storage media. When the programs are executed, they can include the processes of the above-mentioned method embodiments. The aforementioned storage media include: ROM or random access memory RAM, magnetic disk or optical disk and other media that can store program codes.
[0693] In short, the above description is only an embodiment of the technical solution of this application, and is not intended to limit the protection scope of this application. Any modification, equivalent replacement, improvement, etc. made according to the disclosure of this application shall be included in the protection scope of this application.
Claims
1. A method for starting an application in a locked screen state, characterized in that: The method comprises: The electronic device displays a first lock screen, wherein the first lock screen includes a first icon of a first application; The electronic device receives a first sliding operation, where the first sliding operation acts on the first icon; In response to the first sliding operation, the electronic device displays a first window of the first application above the first lock screen, and the first window displays screen content in the first application.
2. The method according to claim 1, characterized in that The electronic device displays a first lock screen, which specifically includes: The electronic device displays the first lock screen image in the lock screen window; The electronic device displays the first window of the first application, specifically comprising: The electronic device displays the first window of the first application above the lock screen window.
3. The method according to claim 1 or 2, characterized in that: In response to the first sliding operation, the electronic device displays a first window of the first application, specifically including: The electronic device determines a first sliding distance based on the first sliding operation on the first icon; The electronic device determines whether the first sliding distance is greater than a preset distance; If the first sliding distance is greater than the preset distance, the electronic device displays the first window of the first application.
4. The method according to claim 3, characterized in that The method further comprises: If the first sliding distance is less than the preset distance, the electronic device displays a second lock screen, and the second lock screen includes a second icon of the first application, the size of the second icon is larger than the size of the first icon, or the size of the second icon is the same as the size of the first icon.
5. The method according to claim 4, characterized in that The display position of the second icon is different from the display position of the first icon, and the display position of the second icon is determined based on the first sliding operation.
6. The method according to any one of claims 1 to 5, characterized in that: The electronic device displays the first window of the first application, specifically comprising: The electronic device determines a first display position based on the first sliding operation; The electronic device displays the first window of the first application based on the first display position.
7. The method according to any one of claims 1 to 6, characterized in that: After the electronic device displays the first window of the first application, the method further includes: The electronic device continues to receive the first sliding operation, where the first sliding operation acts on the first window; According to a first sliding operation performed on the first window, a size of the first window of the first application is adjusted.
8. The method according to claim 7, characterized in that The electronic device determines a second sliding distance based on the first sliding operation on the first window; The electronic device determines whether the second sliding distance is greater than the preset distance; If the second sliding distance is greater than the preset distance, the electronic device displays the first window of the first application in full screen, and the first window displays the screen content of the first application.
9. The method according to any one of claims 7-8, characterized in that: If the second sliding distance is greater than the first sliding distance, the size of the first window of the first application becomes larger; If the second sliding distance is smaller than the first sliding distance, the size of the first window of the first application becomes smaller.
10. The method according to any one of claims 1 to 9, characterized in that: After the electronic device displays the first window of the first application, the method further includes: The electronic device receives an unlocking operation by a user; In response to the unlocking operation, the electronic device displays the first window of the first application in full screen, and the first window displays screen content in the first application.
11. The method according to claim 9, characterized in that The electronic device destroys the lock screen window.
12. The method according to any one of claims 7 to 10, characterized in that: After the electronic device displays the first window of the first application, the method further includes: After detecting that the first sliding operation is completed, the electronic device displays the first window of the first application in full screen, where the first window displays screen content in the first application.
13. The method according to claim 12, characterized in that The first window of the first application is located on an upper layer of the lock screen window.
14. The method according to any one of claims 9 to 13, characterized in that: Before the electronic device displays the first window of the first application in full screen, the method further includes: The first window of the first application on the electronic device gradually enlarges until the first window of the first application is displayed in full screen.
15. The method according to any one of claims 11 to 14, characterized in that: After the electronic device displays the first window of the first application in full screen, the method further includes: The electronic device receives an operation of a user on the first window of the first application; In response to receiving a user operation on the first window of the first application, the electronic device displays the lock screen window, and the first lock screen image is displayed in the lock screen window.
16. The method according to claim 15, characterized in that After the electronic device displays the lock screen window, the method further includes: The electronic device destroys the first window displaying the first application or displays the first window of the first application in a lower layer of the lock screen window.
17. An electronic device, characterized in that: The electronic device includes one or more processors and one or more memories; the one or more memories are coupled to the one or more processors, and the one or more memories are used to store computer program code, and the computer program code includes computer instructions. When the one or more processors execute the computer instructions, the electronic device executes the method described in any one of claims 1 to 16.
18. A computer-readable storage medium comprising computer instructions, characterized in that: When the computer instructions are executed on an electronic device, the electronic device is caused to execute the method according to any one of claims 1 to 16.
Citation Information
Patent Citations
Coordinate transformation method and device based on mobile terminal and mobile terminal
CN103500065A
Method and device for taking photos quickly without unlocking screen
CN103577070A
Control method and electronic device
CN103744606A
Zoom touch control method and device of mobile terminal
CN103761045A
Application window display method and electronic equipment
CN117008772A
Cited By
Application startup method in locked screen state, electronic device, and storage medium
WO2025261354A1