Method for switching applications, and electronic device
By displaying a split-screen combination of dock and applications on electronic devices, the difficulty of users in switching applications is solved, efficient application switching and one-click start of split screen are achieved, and the development workload is reduced.
Patent Information
- Application Number
- CN202310248384.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-07
- Publication Date
- 2025-10-10
- Estimated Expiration
- 2043-03-07
AI Technical Summary
Users encounter difficulties when switching applications on electronic devices, especially when faced with a large number of applications, making it difficult to switch efficiently.
Display a split-screen combination including applications and a dock (DOCK) on the screen, ensure that the dock is always visible, and realize one-click startup of split screen by reusing the existing startup entrance, supporting multiple methods such as desktop icons, floating ball or message notification center for switching.
It improves the efficiency of users switching applications, reduces development workload, and the dock bar is not blocked when the application is displayed in full screen, making it easier for users to select other applications.
Smart Images

Figure CN118626182B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of electronic technology, and in particular to a method for switching applications and an electronic device. Background Art
[0002] With the rapid development of electronic software technology, more and more applications are available on electronic devices such as smartphones. These diverse applications provide users with a wide variety of functions and services. However, this large number of applications also makes it difficult for users to find and switch between applications. Summary of the Invention
[0003] The embodiments of the present application provide a method for launching an application and an electronic device, which can enable a dock bar to be permanently displayed on the screen, thereby improving the efficiency of user switching applications.
[0004] In a first aspect, an embodiment of the present application provides a method, which may include: an electronic device detects a user operation to open a third application, and in response thereto, the electronic device displays a first split-screen combination on the screen, the first split-screen combination consisting of a first application and a dock DOCK, the first application is displayed in a first split-screen window, the DOCK is displayed in a second split-screen window, the first split-screen window and the second split-screen window do not obstruct each other, and the DOCK includes multiple applications. The electronic device detects a user operation to open the first application, and in response thereto, the electronic device displays the first application in full screen on the screen. Afterwards, the electronic device detects a user operation to open a third application, and in response thereto, the electronic device displays the first split-screen combination on the screen again.
[0005] Among them, the third application can be the application for starting the split-screen combination mentioned in subsequent embodiments, such as "Smart Driving".
[0006] With the method of the first aspect, after starting the first split-screen combination (e.g., a split-screen combination consisting of "Maps" and DOCK), the split-screen combination will not be disassembled due to the fact that the first application (e.g., "Maps") in it has been opened in full screen. The user can still continue to use the previous split-screen combination, which is more convenient.
[0007] Moreover, through the method of the first aspect, the DOCK in the split-screen combination will not be blocked by the first application displayed in the first split-screen window, and thus it will always be visible to the user, making it convenient for the user to select an application from the DOCK to switch applications. Moreover, by reusing the existing entry for launching applications, the method for switching applications provided by the embodiment of the present application can realize one-click startup of split screen, such as triggering split screen with one click through the desktop icon, floating ball, or message notification center, without the user having to Figure 3As shown, you first need to open a split-screen app, then open DOCK, select another split-screen app from it, and drag it to the screen. In addition, by reusing the existing entry point for launching applications, there is no need to customize the entry point at the framework level, reducing the development work in this area.
[0008] In conjunction with the first aspect, in some embodiments, when the electronic device displays the first split-screen combination on the screen, the method may further include: the electronic device saving the first split-screen combination as the most recent split-screen combination. Saving the most recent split-screen combination may further include saving the split-screen ratio used by the most recent split-screen combination. In a specific implementation, saving may include saving the information to a process variable of a third application.
[0009] Among them, the implementation method of saving may include: the electronic device can save the split-screen configuration of the most recent split-screen combination (such as the split-screen combination and split-screen ratio) to the process variable of the third application. For example, save it to the process variable of the main interface of "Smart Driving". In this way, various entry processes that start the split screen (such as the desktop application, message notification center, and floating ball of "Smart Driving") will open the main interface of "Smart Driving", that is, the main interface process will be started, and the split-screen configuration saved in the process variable of the main interface process will be read. No matter which entry method the user uses to start the split screen again, the most recently used split screen can be opened.
[0010] In conjunction with the first aspect, in some embodiments, the method may further include: the electronic device detecting a user operation to open a second application in the dock, and in response, the electronic device displaying the user interface of the second application in the first split-screen window. At this time, the electronic device may further save the second split-screen combination as a recent split-screen combination, where the second split-screen combination consists of the second application and the dock.
[0011] Among them, the second application is also displayed without blocking the DOCK. Like the first application, the user interface of the second application displayed in the first split-screen window can also adapt to the application desktop, that is, it supports split screen, and the layout resources it uses are updated according to the current split-screen ratio, which is different from the layout resources used when it is displayed in full screen. In this way, the user interface of the second application displayed in the first split-screen window will not block the DOCK, making it convenient for users to choose to switch to other applications in the DOCK while using the second application.
[0012] In conjunction with the first aspect, in some embodiments, when the electronic device detects a user operation to open a third application, the first application is a recently used application and the electronic device does not have a recently saved split-screen combination. In other words, if no recently saved split-screen combination exists, the recently used application and the dock can be used to form a split-screen combination.
[0013] In combination with the first aspect, in some embodiments, when the electronic device detects a user operation of opening a third application, the first application is not a most recently used application.
[0014] Among them, the first application is not the most recently used application, which may specifically include: after the electronic device displays the first application in full screen on the screen, before the electronic device detects the user operation of opening the third application, the electronic device also displays the fourth application in full screen on the screen.
[0015] That is, when the most recent split-screen combination is saved and a user operation of opening a third application is detected, the electronic device will not use the most recently used application (i.e., the fourth application) and DOCK to form a split-screen combination, but will return to the first allocated combination (i.e., the most recent split-screen combination) that was previously opened.
[0016] In combination with the first aspect, in some embodiments, the first application has a first layout resource and a second layout resource, wherein the first layout resource is configured for the size of the first split-screen window, and the second layout resource is configured for the size of the screen.
[0017] Among them, when the first application is displayed in the first split-screen window, the layout resource used by the first application is the first layout resource; when the first application is displayed in full screen on the screen, the layout resource used by the first application is the second layout resource.
[0018] That is, the first application can support split-screen display based on the first layout resource, and can also support full-screen display based on the second layout resource.
[0019] In conjunction with the first aspect, in some embodiments, the second application also has layout resources configured for the first split-screen window, that is, the second application can support split-screen display.
[0020] In conjunction with the first aspect, in some embodiments, the user operation of opening the third application may include: clicking the desktop icon of the third application, clicking the floating ball of the third application displayed on the screen, or clicking the notification in the message notification center that the third application is running. In this way, the user can open the assigned combination through multiple entrances.
[0021] In some embodiments, the electronic device displays the first split-screen combination on the screen, which can include: the third application program passing the first split-screen combination and the split-screen ratio adopted by the first split-screen combination to the application framework layer. The application framework layer forms a split screen according to the split-screen ratio adopted by the first split-screen combination, and sends a first screen configuration update notification to the first application program in the first split-screen combination, the first screen configuration update notification carrying the size of the first split-screen window. The first application program feeds back a first layout resource to the application framework layer according to the first screen configuration update notification, the first layout resource being a layout resource obtained according to the size of the first split-screen window, different from a second layout resource adopted when the first application program is displayed in full screen. The application framework layer displays the user interface of the first application program in the first split-screen window based on the first layout resource.
[0022] The first screen configuration update notification can be a subsequent Figure 16 The screen configuration update notification mentioned in step S36 in the embodiments.
[0023] In some embodiments, the electronic device includes an application framework layer. The electronic device displays the first split-screen combination on the screen again, which can include: the third application program reading out the saved recent split-screen combination and the split-screen ratio adopted by the recent split-screen combination from the process variable. The third application program passes the recent split-screen combination and the split-screen ratio to the application framework layer. The application framework layer forms a split screen according to the split-screen ratio, and sends a second screen configuration update notification to the first application program in the recent split-screen combination, the second screen configuration update notification carrying the size of the first split-screen window. The first application program feeds back a first layout resource to the application framework layer according to the second screen configuration update notification, the first layout resource being a layout resource obtained according to the size of the first split-screen window, different from a second layout resource adopted when the first application program is displayed in full screen. The application framework layer displays the user interface of the first application program in the first split-screen window based on the first layout resource
[0024] The first screen configuration update notification can be a subsequent Figure 17 The screen configuration update notification mentioned in step S62 in the embodiments.
[0025] In some embodiments of the first aspect, the DOCK includes a fifth application program that does not support split screen, which means that the fifth application program does not have a layout resource configured for the first split-screen window. The method of the first aspect can further include: the electronic device detecting a user operation of opening the fifth application program in the DOCK, in response to which the electronic device displays the user interface of the fifth application program in full screen on the screen, and also displays the floating ball of the third application program on the screen. The electronic device detects a user operation of clicking the floating ball, in response to which the electronic device displays the recent split-screen combination on the screen.
[0026] Among them, the fifth application can be the "scan code payment" exemplified in subsequent embodiments.
[0027] In this way, when the electronic device detects a user operation of launching an application that does not support split screen, such as a user operation of clicking the "Scan to Pay" icon, it can display a floating ball above the "Scan to Pay" user interface so that the user can return to the most recent split screen combination through the floating ball.
[0028] In a second aspect, the present application provides an electronic device comprising one or more processors and one or more memories; wherein 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 comprises computer instructions. When the one or more processors execute the computer instructions, the electronic device executes the method described in the first aspect and any possible implementation thereof.
[0029] In a third aspect, an embodiment of the present application provides a chip system, which is applied to an electronic device. The chip system includes one or more processors, which are used to call computer instructions to enable the electronic device to execute the method described in the first aspect method and any possible implementation thereof.
[0030] In a fourth aspect, the present application provides a computer-readable storage medium comprising instructions, which, when executed on an electronic device, enables the electronic device to execute the method described in the first aspect and any possible implementation thereof.
[0031] In a fifth aspect, the present application provides a computer program product comprising instructions, which, when executed on an electronic device, enables the electronic device to execute the method described in the first aspect and any possible implementation thereof. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the background technology, the drawings required for use in the embodiments of the present application or the background technology will be described below.
[0033] Figure 1 The electronic device provided by the embodiment of the present application is exemplarily shown;
[0034] Figure 2A The following example shows a sidebar DOCK on the electronic device 100;
[0035] Figure 2B A desktop DOCK on the electronic device 100 is exemplarily shown;
[0036] Figure 3 An exemplary process of entering a split screen is shown;
[0037] Figure 4 An exemplary embodiment of the present invention provides a split-screen combination user interface.
[0038] Figure 5 The following example shows a home screen interface displayed on the electronic device 100;
[0039] Figure 6 The user interaction process of starting the split-screen combination through the desktop icon is exemplified;
[0040] Figure 7A A split-screen combination is exemplarily shown;
[0041] Figure 7B Another split-screen combination is shown as an example;
[0042] Figure 8 Another split-screen combination user interface provided by an embodiment of the present application is exemplarily shown;
[0043] Figure 9 The present invention exemplifies a process of switching applications provided by an embodiment of the present application;
[0044] Figure 10 This example illustrates another process of switching applications provided by an embodiment of the present application;
[0045] Figure 11 A user interface provided by an embodiment of the present application is exemplarily shown;
[0046] Figure 12 The process of starting the most recent split-screen combination by means of a floating ball is exemplified;
[0047] Figure 13 The following example shows the process of starting the most recent split-screen combination through the message notification portal;
[0048] Figure 14 An example of returning to the most recent split-screen combination is shown;
[0049] Figure 15 The overall process of the method for switching applications provided by the embodiment of the present application is exemplified;
[0050] Figure 16 The internal implementation process of switching from a first application to a second application is shown;
[0051] Figure 17 Shows the internal implementation process of starting the most recent split-screen combination. DETAILED DESCRIPTION
[0052] The terms used in the following examples of the present application are for the purpose of describing specific embodiments only and are not intended to limit the present application. As used in the specification and appended claims of the present application, the singular expressions "a," "an," "said," "above," "the," and "this" are intended to include plural expressions as well, unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used in the present application refers to and encompasses any or all possible combinations of one or more of the listed items.
[0053] The following describes an electronic device, a user interface for such an electronic device, and an embodiment for using such an electronic device. In some embodiments, the electronic device may be a portable electronic device that also includes other functions such as a personal digital assistant and / or a music player function, such as a mobile phone, a tablet computer, a wearable electronic device with wireless communication capabilities (such as a smart watch), etc. Exemplary embodiments of portable electronic devices include but are not limited to portable electronic devices equipped with iOS, Android, Microsoft or other operating systems. The above-mentioned portable electronic device may also be other portable electronic devices, such as a laptop computer (Laptop) with a touch-sensitive surface or touch panel. It should also be understood that in some other embodiments, the above-mentioned electronic device may not be a portable electronic device, but a desktop computer with a touch-sensitive surface or touch panel.
[0054] The term "user interface (UI)" in the specification, claims and drawings of this application refers to the media 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 of an application 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, such as pictures, text, buttons and other controls. Controls, also known as widgets, are the basic elements of the user interface. Typical controls include toolbars, menu bars, text boxes, buttons, scroll bars, pictures and text. The properties and contents of controls in the interface are defined by tags or nodes, such as XML through <textview> 、 <imgview> 、 <videoview>Nodes such as <head> and <body> are used to specify the controls contained in the interface. A node corresponds to a control or attribute in the interface, and the node is presented as user-visible content after parsing and rendering. In addition, many applications, such as hybrid applications, usually also contain web pages in their interfaces. A web page, also known as a page, can be understood as a special control embedded in the application interface. A web page is a source code written in a specific computer language, such as hypertext markup language (GTML), cascading style sheets (CSS), JavaScript (JS), etc. The web page source code can be loaded and displayed as user-recognizable content by a browser or a web page display component with similar functions to a browser. The specific content contained in a web page is also defined by tags or nodes in the web page source code, such as GTML through 、 、 <video> 、 <canvas>To define the elements and attributes of a web page.
[0055] A common form of user interface is the graphical user interface (GUI), which refers to a user interface related to computer operations that uses graphics. A user interface can include interface elements such as windows and controls displayed on an electronic device's display. Controls can include visual interface elements such as icons, buttons, menus, lists, tabs, text boxes, dialog boxes, status bars, navigation bars, and widgets. The UI attributes such as size, style, and color designed by GUI designers for these interface elements can be defined in the application's interface source code and resource files. Layout resources are used to define the interface architecture.
[0056] First, an exemplary electronic device 100 provided in the following embodiments of the present application is introduced.
[0057] Figure 1 A schematic structural diagram of the electronic device 100 is shown.
[0058] 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. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180G, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0059] It should be understood that the structure illustrated in the embodiments of the present invention 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, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0060] The processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (AP), a central processing unit (CPU), a graphics processing unit (GPU), a neural-network processing unit (NPU), a modem processor, an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, etc. Among them, different processing units can be independent devices or integrated into one or more processors. In some embodiments, the electronic device 100 may also include one or more processors 110.
[0061] 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.
[0062] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the instruction or data again, it can directly access the memory. This avoids repeated accesses, reduces the waiting time of processor 110, and thus improves the efficiency of electronic device 100.
[0063] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface.
[0064] The I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple I2C bus lines. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, and the like via different I2C bus interfaces. For example, the processor 110 may be coupled to the touch sensor 180K via the I2C interface, enabling communication between the processor 110 and the touch sensor 180K via the I2C bus interface, thereby implementing the touch function of the electronic device 100.
[0065] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the I2S interface, enabling the function of answering calls through a Bluetooth headset.
[0066] The PCM interface can also be used for audio communication, sampling, quantizing, and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface, enabling the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
[0067] The UART interface is a universal serial bus for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is usually used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to realize the Bluetooth function. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface to realize the function of playing music through the Bluetooth headset.
[0068] The MIPI interface can be used to connect the processor 110 and peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate through the CSI interface to realize the camera function of the electronic device 100. The processor 110 and the display screen 194 communicate through the DSI interface to realize the display function of the electronic device 100.
[0069] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 and the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.
[0070] The USB interface 130 is an interface that meets the USB standard specification, which can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, or to transmit data between the electronic device 100 and a peripheral device. It can also be used to connect a headset to play audio through the headset. The interface can also be used to connect other electronic devices, such as AR devices, etc.
[0071] It can be understood that the interface connection relationship between the modules shown in the embodiments of the present application is only illustrative and does not constitute a structural limitation of the electronic device 100. In other embodiments, the electronic device 100 can also use different interface connection methods or combinations of multiple interface connection methods in the above embodiments.
[0072] The charging management module 140 is configured to receive charging input from a charger. The charger can be either a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 can receive wireless charging input via the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also provide power to the electronic device via the power management module 141.
[0073] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and provides power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage, impedance). In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
[0074] 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.
[0075] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.
[0076] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0077] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After being processed by the baseband processor, the low-frequency baseband signal is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
[0078] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (IR), etc. 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, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2. Exemplarily, the wireless communication module 160 may include a Bluetooth module, a Wi-Fi module, etc.
[0079] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).
[0080] Electronic device 100 implements display functionality through a GPU, display screen 194, and an application processor. A GPU is a microprocessor for image processing that connects display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute instructions to generate or modify display information.
[0081] The display screen 194 is configured to display images, videos, and the like. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flex light-emitting diode (FLED), a Miniled, a MicroLed, a Micro-oLed, a quantum dot light emitting diodes (QLED), or the like. In some embodiments, the electronic device 100 can include one or N display screens 194, where N is a positive integer greater than 1.
[0082] In some embodiments, after generating the drawing command for creating the interface element in the UI thread of the application, the CPU can transmit (or share) the drawing command to the GPU and notify the GPU to render according to the drawing command. Here, the drawing command can be used to indicate how to draw a specific interface element in the user interface by using drawing elements such as graphics, text, and pictures.
[0083] The electronic device 100 can implement the photographing function through the ISP, the camera 193, the video codec, the GPU, the display screen 194, and the application processor.
[0084] The ISP is configured 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, the light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing to convert it into an image visible to the naked eye. The ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. The ISP can also optimize the exposure, color temperature, and other parameters of the shooting scene. In some embodiments, the ISP can be disposed in the camera 193.
[0085] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then passes the electrical signal to the ISP for conversion into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0086] The digital signal processor is used to process digital signals. In addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
[0087] Video codecs are used to compress or decompress digital video. Electronic device 100 may support one or more video codecs. This allows electronic device 100 to play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG)-1, MPEG-2, MPEG-3, and MPEG-4.
[0088] The NPU is a neural network (NN) computing processor. Drawing on the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it rapidly processes input information and can continuously self-learn. The NPU can enable intelligent cognitive applications in electronic device 100, such as image recognition, face recognition, speech recognition, and text comprehension.
[0089] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 via the external memory interface 120 to implement data storage functions. For example, data such as music, photos, and videos can be stored on the external memory card.
[0090] The internal memory 121 can be used to store one or more computer programs, which include instructions. The processor 110 can run the above instructions stored in the internal memory 121, so that the electronic device 100 executes the photo preview method of the electronic device provided in some embodiments of the present application, as well as various functional applications and data processing. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system; the program storage area can also store one or more applications (such as a gallery, contacts, etc.). The data storage area can store data created during the use of the electronic device 100 (such as photos, contacts, etc.). In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0091] The electronic device 100 can implement audio functions such as music playback and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0092] 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 embodiments, the audio module 170 can be provided in the processor 110, or some functional modules of the audio module 170 can be provided in the processor 110.
[0093] The speaker 170A, also called a "speaker," is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music or make hands-free calls through the speaker 170A.
[0094] The receiver 170B, also called a "handset", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or voice message, the voice can be heard by placing the receiver 170B close to the human ear.
[0095] Microphone 170C, also known as "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to the microphone 170C to input the sound signal into the microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to realize sound signal collection, noise reduction, and identification of sound sources, and realize directional recording function, etc.
[0096] The headphone jack 170D is used to connect a wired headphone and can be the USB interface 130 or a 3.5mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.
[0097] Pressure sensor 180A is used to sense pressure signals and convert them into electrical signals. In some embodiments, pressure sensor 180A can be located on display screen 194. There are many types of pressure sensors 180A, such as resistive, inductive, and capacitive. A capacitive pressure sensor can include at least two parallel plates made of conductive material. When force acts on pressure sensor 180A, the capacitance between the electrodes changes. Electronic device 100 determines the intensity of the pressure based on this change in capacitance. When a touch operation is applied to display screen 194, electronic device 100 detects the touch intensity based on pressure sensor 180A. Electronic device 100 can also calculate the touch location based on the detection signal from pressure sensor 180A. In some embodiments, touch operations applied to the same touch location but with different touch intensities can correspond to different operation instructions. For example, when a touch operation with an intensity less than a first pressure threshold is applied to a short message application icon, a command to view short messages is executed. When a touch operation with an intensity greater than or equal to the first pressure threshold is applied to a short message application icon, a command to create a new short message is executed.
[0098] The gyroscope sensor 180B can be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., x, y, and z axes) can be determined by the gyroscope sensor 180B. The gyroscope sensor 180B can be used for anti-shake photography. For example, when the shutter is pressed, the gyroscope sensor 180B detects the angle of shaking of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and lets the lens offset the shaking of the electronic device 100 by reverse movement to achieve anti-shake. The gyroscope sensor 180B can also be used for navigation and motion sensing game scenarios.
[0099] The barometer sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude, assists positioning and navigation by the air pressure value measured by the barometer sensor 180C.
[0100] The magnetic sensor 180D includes a Hall sensor. The electronic device 100 can detect the opening and closing of a flip cover with the magnetic sensor 180D. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 can detect the opening and closing of the flip cover according to the magnetic sensor 180D. In turn, according to the detected opening and closing state of the cover or the opening and closing state of the flip cover, the electronic device 100 can set features such as automatic unlocking of the flip cover.
[0101] The acceleration sensor 180E can detect the magnitude of acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device, applied to landscape / portrait screen switching, pedometer, etc.
[0102] The distance sensor 180F is used to measure distance. The electronic device 100 can measure distance by infrared or laser. In some embodiments, in a shooting scenario, the electronic device 100 can use the distance sensor 180F to measure distance to achieve fast focusing.
[0103] The proximity light sensor 180G can include, for example, a light-emitting diode (LED) and a light detector, such as a photodiode. The light-emitting diode can be an infrared light-emitting diode. The electronic device 100 emits infrared light outwardly through the light-emitting diode. The electronic device 100 detects infrared reflected light from nearby objects using the photodiode. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100. The electronic device 100 can use the proximity light sensor 180G to detect that the user is holding the electronic device 100 close to the ear for a call, so as to automatically turn off the screen to achieve the purpose of power saving. The proximity light sensor 180G can also be used for automatic unlocking and locking of the cover mode and pocket mode.
[0104] Ambient light sensor 180L is used to sense ambient light brightness. Electronic device 100 can adaptively adjust the brightness of display screen 194 based on the perceived ambient light. Ambient light sensor 180L can also be used to automatically adjust white balance when taking photos. Ambient light sensor 180L can also work with proximity light sensor 180G to detect whether electronic device 100 is in a pocket to prevent accidental touches.
[0105] The fingerprint sensor 180G is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photography, fingerprint answering calls, etc.
[0106] The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 reduces the performance of the processor located near the temperature sensor 180J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to prevent the electronic device 100 from shutting down abnormally due to low temperature. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 boosts the output voltage of the battery 142 to prevent abnormal shutdown due to low temperature.
[0107] The touch sensor 180K may also be referred to as a touch panel or touch-sensitive surface. The touch sensor 180K may be disposed on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also referred to as a "touch screen." The touch sensor 180K is configured to detect touch operations applied thereto or in the vicinity thereof. The touch sensor may transmit the detected touch operations to an application processor to determine the type of touch event. Visual output related to the touch operations may be provided via the display screen 194. In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100, at a location different from that of the display screen 194.
[0108] The bone conduction sensor 180M can obtain vibration signals. In some embodiments, the bone conduction sensor 180M can obtain vibration signals from the vibrating bones of the human body. The bone conduction sensor 180M can also contact the human pulse to receive blood pressure pulse signals. In some embodiments, the bone conduction sensor 180M can also be set in headphones to form bone conduction headphones. The audio module 170 can parse out voice signals based on the vibration signals of the vibrating bones of the human body obtained by the bone conduction sensor 180M to implement voice functions. The application processor can parse heart rate information based on the blood pressure pulse signals obtained by the bone conduction sensor 180M to implement heart rate detection functions.
[0109] The buttons 190 include a power button, a volume button, and the like. The buttons 190 may be mechanical buttons or touch buttons. The electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100.
[0110] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
[0111] The indicator 192 may be an indicator light, which may be used to indicate the charging status, power level changes, messages, missed calls, notifications, etc.
[0112] 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 it into or removing it from 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 SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
[0113] Figure 1 The exemplarily shown electronic device 100 can display the various user interfaces described in the following embodiments through the display screen 194. The electronic device 100 can detect touch operations in various user interfaces through the touch sensor 180K, such as click operations in various user interfaces (such as touch operations on icons, double-click operations), and for example, upward or downward sliding operations in various user interfaces, or operations of performing circle gestures, etc. In some embodiments, the electronic device 100 can detect motion gestures performed by the user holding the electronic device 100, such as shaking the electronic device, through the gyroscope sensor 180B, the acceleration sensor 180E, etc. In some embodiments, the electronic device 100 can detect non-touch gesture operations through the camera 193 (such as a 3D camera, a depth camera).
[0114] To implement application switching, the electronic device 100 may provide the following functions:
[0115] (1) DOCK
[0116] DOCK is a graphical user interface used to launch and switch between running applications. Users can add applications to DOCK, especially frequently used applications, to quickly switch between them.
[0117] For example, Figure 2A A sidebar dock on electronic device 100 is shown. Sidebar dock 2-1 can be located on side 2-2 of the screen and contains applications such as Maps, WeChat, Music, and Gallery. Applications can be displayed as icons within the dock. The sidebar dock can be hidden and reappeared when a mouse or finger approaches side 2-2 of the system desktop, or when an application is swiped from side 2-2 toward the inside of the screen or dragged near side 2-2.
[0118] For example, Figure 2B FIG. 1 shows a desktop DOCK on the electronic device 100. Figure 2A Unlike the sidebar dock, the desktop docks 2-3 are not hidden.
[0119] When users switch applications through the sidebar DOCK, they must first move close to the side 2-2 to make the DOCK appear before they can choose to start a certain application.
[0120] To switch applications using the desktop dock, users must first press the Home button to exit the currently open application and return to the system desktop. Then, they must click the target application in the dock to launch it. "Exiting" means that the currently open application no longer displays full screen, but instead moves to the background. At this point, the desktop dock is no longer obscured and becomes visible. To subsequently switch from the target application to another, the aforementioned process must be repeated.
[0121] As can be seen, the launched application will block the desktop DOCK, causing the desktop DOCK to not be always visible to the user. When the user switches applications, he needs to return to the system desktop first. Here, the system desktop may include multiple pages, one of which is the home screen interface.
[0122] (2) Multi-window capability
[0123] Multi-window capability allows multiple applications to be displayed simultaneously within a single screen, allowing multiple applications to share the same screen. This capability can be implemented by displaying two applications side by side (split-screen mode) or by overlaying an application in a small window on top of another application (floating window mode).
[0124] The process of entering split screen is as follows: Figure 3 As shown, in the currently opened application interface, swipe inward from the left and right edges of the screen and pause to open the sidebar DOCK, long press the application icon in the DOCK and drag it to the screen to form a split screen. In split-screen mode, the user can switch back and forth between the original application and the target application in the upper and lower split screens; in floating window mode, the user can operate the target application in the floating window. Of course, the split screen is not limited to the upper and lower split screens. In split-screen mode, the user can drag the dividing line between the split-screen windows to the edge of the screen to exit the split screen; or, the user can open one of the split-screen applications separately to exit the split screen. After exiting the split screen, to enter the split screen again, the user needs to execute it again Figure 3 Split-screen operation shown.
[0125] However, application switching based on multi-window capabilities has the following problems: the display and operation area of the target application is greatly compressed; moreover, if the target application is not adapted to the multi-window capability, its content will be truncated and cannot be displayed; DOCK is not resident, and the sidebar DOCK needs to be pulled out each time the application is switched.
[0126] In order to improve the above problems, an embodiment of the present application provides a method for switching applications, which can realize the permanent display of DOCK on the screen of the electronic device 100, making it convenient for users to open applications from DOCK at any time, thereby improving the efficiency of switching applications.
[0127] In this method, the electronic device 100 can start the split screen combination, such as Figure 4 As shown, the display area of the screen can be divided into two parts, which can be used as an application desktop 4-1 and a DOCK 4-2, respectively. Among them, the DOCK 4-2 can be used to display commonly used applications, and the application desktop 4-1 can be used to display the user interface of the application in the DOCK. This split-screen combination consists of the applications displayed in the application desktop 4-1 and the DOCK. The applications in the application desktop 4-1 will not be displayed in full screen, and their interface layout will adapt to the application desktop 4-1 without causing the displayed content to exceed the application desktop 4-1, and thus will not block the DOCK 4-2. In this way, the user can browse the user interface of the open application normally, and can always see the DOCK, and can easily switch between applications while using the application.
[0128] The technical solutions provided by the embodiments of this application will be expanded below.
[0129] First, the human-computer interaction method provided by the embodiment of the present application is introduced with the help of a graphical user interface (GUI) generated by the electronic device 100.
[0130] Figure 5 The following example shows a home screen interface displayed on the electronic device 100. The home screen interface may be a page on the system desktop, and the user may switch pages by sliding left or right on the screen.
[0131] like Figure 5 As shown, the home screen interface may include a status bar 5-1, smart cards 5-2, page dividers 5-3, a desktop dock 5-4, and other application icons. Status bar 5-1 may include: a mobile communication signal (also known as a cellular signal) signal strength indicator 5-1A, a wireless fidelity (Wi-Fi) signal strength indicator 5-1B, a time indicator 5-1C, a battery status indicator 5-1D, etc. Smart cards 5-2 may be used to display commonly used applications and application shortcuts in the form of cards, such as camera, video editing for video production, and one-click movie creation. Page dividers 5-3 may indicate which page of the system desktop is currently displayed. The desktop dock 5-4 may display icons for commonly used applications, such as a phone icon, a short message icon, a contact icon, and a camera icon. Other application icons may include chat icons, music icons, map icons, smart driving icons, weather icons, store icons, and so on.
[0132] "Smart Driving" is an application introduced in the embodiments of this application for launching a split-screen combination. It can be exemplified as an application or function that provides users with a smart driving experience. "Smart Driving" is only an example, and other applications that can launch a split-screen combination can also be used, depending on actual application needs.
[0133] Start split screen combination
[0134] Figure 6 The user interaction process of starting the split-screen combination through the desktop icon is exemplified.
[0135] In the main screen interface, the electronic device 100 can detect the user operation of clicking the "Smart Driving" application icon.
[0136] In response to this, the electronic device 100 can start "Smart Driving", specifically start the main interface (main activity) process of "Smart Driving", which can be used to start the split screen combination. The main interface is the user interface that is first entered when "Smart Driving" is opened. Figure 6 As shown, the electronic device 100 can start the split-screen combination by starting the main user interface of "Smart Driving". The split-screen interface formed by the split-screen combination may include two parts: the application desktop 6-1 and the DOCK 6-3. Among them, the application desktop 6-1 can display the user interface of a specific application, such as the user interface of "Map", to provide navigation and other map services for the user's travel; DOCK 6-3 can display some application options, such as "Music" and "Chat", so that the user can easily switch to music or chat while driving, adding some fun and convenience to the user's travel. Of course, DOCK 6-3 also includes the "Map" that has been displayed in the application desktop 6-1. At this time, the split-screen combination refers to the split-screen combination composed of the map application and DOCK 6-3.
[0137] The specific application displayed in the application desktop 6-1 may be a recently used application. Figure 7A As shown in , if the most recently used application is "Map", the split-screen combination is a split-screen combination consisting of Map and DOCK; Figure 7B As shown, if the most recently used application is "Music," the split-screen combination is a split-screen combination of Music and DOCK. This is not limited to recently opened applications; a specific application displayed on the application desktop 6-1 can also be a default application. For example, if the recently used application list is empty, such as after powering on the device, the specific application displayed on the application desktop 6-1 can be a default application, such as "Maps."
[0138] The user interface of the application displayed on the application desktop 6-1 is adapted to the application desktop 6-1, and the layout resources used are updated according to the current split-screen ratio, which is different from the layout resources used when it is displayed in full screen. In this way, the user interface of the application displayed on the application desktop 6-1 will not obstruct the dock 6-3, making it easier for the user to switch to other applications in the dock 6-3 while using one application.
[0139] The layout resource is used to indicate the interface layout and define the architecture of the components in the interface. The current split screen ratio is mainly used to indicate the size of the current application desktop 6-1, such as width and height. It is the basis for the electronic device to update the layout resource when displaying applications on the application desktop 6-1.
[0140] Applications that can be added to DOCK can support split-screen. Supporting split-screen means that the application can use appropriate layout resources according to the current split-screen ratio. Applications in DOCK can have: layout resources configured according to the screen size of the electronic device 100, and multiple sets of layout resources adapted to different split-screen ratios. The former can support full-screen display of the application, and the latter can support the adaptive display of the application on the application desktop at different split-screen ratios.
[0141] DOCK is a functional interface for displaying application options. It is not limited to DOCK. Functional interfaces for displaying application options can also be designed in other styles. Split screen combination, such as Figure 8 As shown in the example, the card desktop 8-5 may further be included. The card desktop 8-5 may display "smart cards," allowing users to quickly switch to applications or shortcut functions through the "smart cards." Of course, the "smart cards" can also be considered a functional interface for displaying application options, and can form a split-screen combination with the applications on the application desktop.
[0142] Compared with the application desktop, DOCK and card desktop take up less space, and both can be system applications or functions.
[0143] The electronic device 100 is not limited to starting the split screen through a desktop icon. It can also start the split screen in other ways, such as starting the split screen through a specific voice command "Xiaohua Xiaohua, open "Smart Driving"", or starting the split screen by making a "Z" gesture in front of the screen.
[0144] Switch to the application in DOCK
[0145] As mentioned earlier, the DOCK in the split-screen combination will not be blocked by the applications displayed in the application desktop, so it will always be visible to the user, making it easy for the user to select applications from the DOCK for application switching.
[0146] like Figure 9 As shown, in the split-screen interface, electronic device 100 may detect a user action to open "Music" in DOCK. In response, electronic device 100 may launch "Music" and refresh the application desktop, switching the "Map" user interface to the "Music" user interface on the application desktop. At this point, the split-screen combination is updated to "Music" and DOCK.
[0147] Here, like existing apps (like Maps), the UI of new apps (like Music) displayed on the app desktop is also adapted to the app desktop. Its layout resources are updated based on the current split-screen ratio, and are different from the layout resources used when it is displayed full screen. This way, the UI of the new app displayed on the app desktop will not obscure the Docker, making it easier for users to switch to other apps in the Docker while using that app.
[0148] In some embodiments, when the application desktop switches from the "map" user interface to the "music" user interface, the "music" in the DOCK can be switched to the "map", so that users can switch between multiple applications more conveniently.
[0149] In the embodiment of the present application, DOCK can also provide a "more" entrance so that the user can access more applications in DOCK. The electronic device 100 can detect the user operation of clicking the "more" icon, and in response to this, Figure 10 As shown, electronic device 100 can launch "More" and refresh the application desktop, switching the "Music" user interface to the "More" user interface on the application desktop. At this time, the split-screen combination is updated to a split-screen combination consisting of "More" and DOCK. Here, "More" can be a desktop application that can be used to display more applications in DOCK, such as "Weather", "Scan to Pay", "Sports and Health", etc.
[0150] In the embodiment of the present application, more applications in the DOCK include applications that do not support split screen. "Scan code payment" can be exemplified as an application that does not support split screen. Applications that do not support split screen will not update the layout resources of the application to be opened according to the current split screen ratio to adapt to the application desktop, thereby causing the full screen display to block the DOCK. To this end, the electronic device 100 can detect the user operation of starting an application that does not support split screen, such as the user operation of clicking the "Scan code payment" icon, Figure 11 As shown, a floating ball 11-2 is displayed above the "Scan to Pay" user interface so that the user can return to the split-screen combination consisting of "More" and DOCK through the floating ball 11-2.
[0151] Start the most recent split screen combination
[0152] In an embodiment of the present application, the electronic device 100 can maintain the split-screen configuration, such as the split-screen combination and split-screen ratio. When the user subsequently detects that the split-screen is intended to be activated again, the electronic device 100 can notify the original split-screen application based on the saved split-screen configuration to use the appropriate layout resources according to the original split-screen ratio to adapt the original split-screen window and continue the previous split-screen state.
[0153] The user can restart the split screen through the desktop icon, that is, start the most recent split screen combination. The electronic device 100 can also start the most recent split screen combination in other ways. For example:
[0154] 1. Start the most recent split-screen combination through the floating ball
[0155] like Figure 12 As shown, the most recent split-screen combination consists of "Map" and DOCK. The electronic device 100 can display a floating ball 12-1 above the current user interface. When a user clicks on floating ball 12-1, the most recent split-screen combination is displayed. This allows the user to return to the most recent split-screen combination using floating ball 12-1, regardless of the current interface. The floating ball is displayed above the current user interface, making it visible to the user at all times.
[0156] 2. Start the latest split-screen combination through the message notification entrance
[0157] After starting the split-screen combination, the operation of the split-screen combination can be displayed in the message notification center to inform the user that the split-screen combination is running. The user interface of the message notification center can be opened by a user operation such as pulling down the status bar 3-1. The user interface may include message notifications from different applications or services, such as "Entered 'Driving Scene'" of smart driving, "Daily Hotspots" of the browser, and "Transaction Reminder: You have a..." of the payment application. Figure 13 As shown, in the user interface of the message notification center, when a user operation of opening the "Smart Driving" message notification is detected, the electronic device 100 can start the most recent split-screen combination.
[0158] By reusing the existing application startup entrance, the embodiment of the present application provides a method for switching applications to achieve one-click startup of split screen, such as triggering split screen with one click through desktop icons, floating balls, and message notification centers, without the user having to Figure 3 As shown, you first need to open a split-screen app, then open DOCK, select another split-screen app from it, and drag it to the screen. In addition, by reusing the existing entry point for launching applications, there is no need to customize the entry point at the framework level, reducing the development work in this area.
[0159] In actual applications, the electronic device 100 can also provide other entrances for users to start the most recent split-screen combination, for example, starting the service when a specific voice command is detected (such as "Xiaohua Xiaohua, return to 'most recent split-screen combination'."), and this application does not impose any restrictions on this.
[0160] Using the aforementioned Figure 3 The split-screen technology shown in the figure, once the user opens an application in the split-screen combination separately after splitting the screen, the split-screen combination will be disassembled, and the user will need to re-execute the two applications in the split-screen combination. Figure 3 The split-screen combination can only be opened again through the split-screen process shown, which is not conducive to the repeated use of the split-screen combination and affects the efficiency of application switching.
[0161] However, in the embodiment of the present application, since the most recent split-screen combination and its adopted split-screen ratio are saved by the electronic device 100, when the user subsequently detects that they intend to re-activate the split-screen, such as by clicking the "Smart Driving" desktop icon, clicking the "Smart Driving" notification in the message notification center, or clicking the "Smart Driving" floating ball, the electronic device 100 can split the original split-screen application according to the original split-screen ratio and continue the previous split-screen state. The user experience is that even if an application in the split-screen combination is opened separately after the split-screen is opened, the split-screen combination will not be disassembled, and the previous split-screen combination can still be used, which is more convenient.
[0162] For example, Figure 14 As shown, after starting the split-screen combination consisting of "Map" and DOCK, the user clicks the desktop icon of "Map" to open the map, and the electronic device 100 displays "Map" in full screen; thereafter, the user clicks the desktop icon of "Smart Driving" to start the split screen again, and the electronic device 100 can reproduce the most recent split-screen combination, that is, the split-screen combination consisting of "Map" and DOCK, and the split-screen combination has not been disassembled because "Map" has been opened in full screen.
[0163] In a specific implementation, the electronic device 100 can save the split-screen configuration to the process variable of the main interface of "Smart Driving". Various entry processes that start the split screen (such as the desktop application, message notification center, and floating ball of "Smart Driving") will open the main interface of "Smart Driving", that is, the main interface process will be started and the split-screen configuration saved in the process variable of the main interface process will be read. In this way, no matter which entry method the user uses to start the split screen again, the most recently used split screen can be opened.
[0164] In a specific implementation, when the intention to start split screen is detected, such as opening the main interface of "Smart Driving" through the "Smart Driving" desktop application, message notification center, floating ball and other entrances, the electronic device 100 can first determine whether there is a saved split screen configuration. If so, it can continue the previous split screen state according to the existing split screen configuration, that is, open the most recent split screen combination; if not, it can form a split screen combination based on the most recently used application and dock, or use the default application and dock to form a split screen combination when the most recently used application is empty.
[0165] In an embodiment of the present application, the most recent split-screen combination and the split-screen ratio it uses can also be cleared. Specifically, when it is detected that the user exits the user interface process used to start the split-screen combination (such as the main interface process of "Smart Driving"), the electronic device can destroy the user interface process, and the process variables of the process and the split-screen configuration stored therein will of course be cleared. The user operation of exiting the process can be, for example, clicking the back key to exit the user interface operation, and this application does not limit this.
[0166] Next, the overall process of the method for switching applications provided by the embodiment of the present application is introduced. Figure 15 As shown:
[0167] S11: The electronic device 100 starts the split-screen combination.
[0168] As mentioned above, the electronic device can start the split-screen combination by starting the main interface process of "Smart Driving".
[0169] Clicking the "Smart Driving" desktop icon, clicking the "Smart Driving" floating ball, or clicking the "Smart Driving" running notification in the message notification center are examples of user actions that open the "Smart Driving" main interface. In response to these user actions, the electronic device can launch the "Smart Driving" main interface process. This main interface process can pass the split-screen configuration to the framework layer, triggering the framework layer to initiate the split-screen combination. The split-screen configuration can be the old split-screen configuration saved in the process variable (if any), or a new split-screen configuration determined by the decision.
[0170] In an embodiment of the present application, the split-screen combination may be composed of a recently used application and DOCK. In another implementation, the split-screen combination may be a split-screen combination saved in the electronic device 100. In yet another implementation, the split-screen combination may be composed of a default application and DOCK.
[0171] In a specific implementation, if an existing split-screen combination is saved in the electronic device 100, the existing split-screen combination can be started so that the user can continue the previous split-screen state. The split-screen combination can become the most recent split-screen combination. If there is no existing split-screen combination in the electronic device 100, the application that constitutes the split-screen combination together with DOCK (which can be called the first application) can be the most recently opened application, such as the "Music" that was recently opened in full screen. If there is no existing split-screen combination in the electronic device 100 and no recently opened application, such as when it is just turned on, the first application can be a default application, such as "Maps".
[0172] The first application is displayed without blocking the DOCK. Starting the split-screen combination may specifically include: the electronic device 100 displays a first split-screen window and a second split-screen window on the screen, and the two split-screen windows do not block each other, wherein the first split-screen window displays the user interface of the first application, such as the aforementioned application desktop, and the second split-screen window displays the DOCK. Moreover, the user interface of the first application is adapted to the first split-screen window because the layout resources it uses are determined according to the size of the first split-screen window. Here, the layout resource may be referred to as a first layout resource. Not limited to this, the first application may also have a second layout resource, which is determined based on the size of the screen and is used to support full-screen display of the first application. Of course, the first application may also have layout resources adapted to windows of other sizes. In actual applications, it can be determined according to product requirements and is not limited here.
[0173] The first split-screen window can generally be larger than the second split-screen window, and the sizes of the two can be determined according to the split-screen ratio.
[0174] One implementation is that the split-screen ratio can be automatically adapted by the electronic device 100 according to the split-screen combination. For example, if the first application is a heavy interface, the first split-screen window is obviously larger than the second split-screen window; conversely, if the first application is a light interface, the first split-screen window is slightly larger than the second split-screen window, or the two are the same size, or even the first split-screen window is smaller than the second split-screen window. Here, a heavy interface may refer to an interface with more interactive elements that need to be presented, such as a map that requires a larger area to display routes, locations, etc.; correspondingly, a light interface may refer to an interface with fewer interactive elements that need to be presented, such as a recording application. In actual applications, the electronic device 100 can also determine the split-screen ratio based on other strategies, such as based on historically collected user preferences for split-screen ratios of different split-screen combinations, and this application does not impose any restrictions on this.
[0175] Another implementation is that the split-screen ratio can also be adjusted by the user, for example, the user drags the dividing line between the split-screen windows to adjust the size of the split-screen windows.
[0176] After starting the split-screen combination, the electronic device 100 can save the split-screen configuration, such as the split-screen combination and the split-screen ratio it adopts. When the intention to start the split-screen is subsequently detected, the electronic device 100 can split the original split-screen application according to the original split-screen ratio according to the saved split-screen configuration, so that the user can continue the previous split-screen state. Here, split-screen display according to the original split-screen ratio can refer to using layout resources adapted to the original split-screen ratio to adapt to the original split-screen window.
[0177] As described above, the DOCK in the split-screen combination will not be blocked by the first application displayed in the first split-screen window, and thus will always be visible to the user, making it convenient for the user to select an application from the DOCK for application switching.
[0178] S12: The electronic device 100 may detect the user operation of opening the second application in the DOCK and update the split screen combination. The new split screen combination is composed of the second application and the DOCK.
[0179] The second application is displayed without blocking the DOCK. Updating the split-screen combination may include: the electronic device 100 refreshes the first split-screen window, and switches the display from the user interface of the first application to the user interface of the second application. Like the first application, the user interface of the second application displayed in the first split-screen window can also adapt to the application desktop, that is, it supports split screen, and the layout resources it uses are updated according to the current split-screen ratio, which is different from the layout resources used when it is displayed in full screen. In this way, the user interface of the second application displayed in the first split-screen window will not block the DOCK, which is convenient for users to choose to switch to other applications in the DOCK while using the second application.
[0180] In an embodiment of the present application, the second application does not support split screen, that is, the DOCK includes an application that does not support split screen. The application that does not support split screen will not update the layout resources of the application to be opened according to the current split screen ratio to adapt to the application desktop, thereby causing the full screen display to block the DOCK, and will not form a split screen combination with the DOCK. In response to this situation, the electronic device 100 can display the user interface of the second application in full screen, and display a control that is always visible, such as a floating ball, on top of the user interface, so that the user can return to the split screen combination composed of the first application and the DOCK through the control.
[0181] Further, combined Figure 16 、 Figure 17 The internal interaction process of the electronic device 100 shown in the figure details the method for switching applications provided in the embodiment of the present application. The screen size of the electronic device 100 is 2700*1224 pixels.
[0182] Figure 16 The internal implementation process of switching from the first application to the second application is shown. Figure 16 As shown, the process may include:
[0183] S21. The operating system may detect that a user clicks on a desktop icon of a first application. Here, the operating system may primarily refer to the system desktop responsible for monitoring desktop icons. The user operation is used to open the first application, but is not limited thereto. The operation of opening the first application may also be other forms of user operation, such as a voice command, a gesture command, etc.
[0184] S22-S23: The operating system may start the first application.
[0185] S24. The operating system may notify the first application of the full-screen configuration. The full-screen configuration may mainly refer to the screen size, for example, the screen width = 1224 pixels, and the height = 2700 pixels.
[0186] S25: The first application can retrieve a full-screen layout resource to support full-screen display of the first application. The first application can have a full-screen layout resource, or the first application can access a full-screen layout resource stored on a server or other device.
[0187] S26. The operating system may display the user interface of the first application in full screen according to the layout resources adapted to the full screen.
[0188] At this point, the electronic device 100 has completed the task of opening the first application in full screen.
[0189] Next, in response to the user's intention to start the split screen, the electronic device 100 may display the split screen combination: the first application and the DOCK. Assume that the electronic device has no saved split screen configuration and needs to construct a split screen combination.
[0190] S27. The operating system can detect that the user clicks the "Smart Driving" desktop icon.
[0191] S28-S29, the operating system can start the main interface process of "smart driving".
[0192] S30, the main interface process of "Smart Driving" can determine the split-screen combination.
[0193] As mentioned above, given that there is no existing split-screen configuration and the recently used applications are not empty, the split-screen combination can be composed of the recently used applications and DOCK.
[0194] After determining the split screen combination, the operating system can also start the applications constituting the split screen combination, such as the first application and DOCK. Of course, if the first application and DOCK have already been started, there is no need to start them again.
[0195] S31. The main interface process of "Smart Driving" can also determine the split-screen ratio.
[0196] As mentioned above, the first split-screen window can generally be larger than the second split-screen window, and the sizes of the two can be determined according to the split-screen ratio. The split-screen ratio can be automatically adapted according to the split-screen combination. For example, if the first application is interface-heavy, the first split-screen window is obviously larger than the second split-screen window; conversely, if the first application is interface-light, the first split-screen window is slightly larger than the second split-screen window, or the two are the same size, or even the first split-screen window is smaller than the second split-screen window. The split-screen ratio can also be adjusted by the user, for example, the user drags the dividing line between the split-screen windows to adjust the size of the split-screen window.
[0197] S32. The main interface process of "Smart Driving" can pass the previously determined split-screen configuration to the operating system, including the split-screen combination and the split-screen ratio. For example, the split-screen combination is a combination of the first application and DOCK, and the split-screen ratio is 3:1.
[0198] In practice, the main interface process of "Smart Driving" can pass the split-screen configuration to the operating system's framework layer via an intent, triggering the framework layer to launch the split-screen feature. First, the main interface process of "Smart Driving" can write the split-screen configuration into the intent, using an interface such as "intent.putextra()." Then, the framework layer can read the parameters in the intent when calling the intent, completing the split-screen configuration transfer via the intent.
[0199] S33. The main interface process of "Smart Driving" can save the split-screen configuration, such as saving it to a process variable.
[0200] S34. After obtaining the split-screen ratio, the operating system may send a screen configuration update notification to the first application to notify the split-screen ratio, so that the first application understands the size of the first split-screen window.
[0201] Below, the split screen ratio can be exemplified as: first split screen window: second split screen window = 3:1.
[0202] S35. The first application may return a first layout resource adapted to the split-screen ratio to the operating system.
[0203] Taking a split-screen ratio of 3:1 as an example, the size of the first split-screen window can be calculated as follows: width = 1224*(3 / 4), height = 2700*(3 / 4), then the first layout resource is adapted to the width and height, so that the user interface of the first application can be adapted to the first split-screen window and displayed without exceeding the first split-screen window and blocking the DOCK.
[0204] Of course, the premise of this step is that the first application supports split screen, that is, it has the first layout resource or can access the first layout resource stored on the server or other device, or has the ability to temporarily generate the first layout resource.
[0205] S36. After determining the split-screen ratio, the operating system may also send a screen configuration update notification to DOCK to notify the split-screen ratio so that DOCK knows the size of the second split-screen window.
[0206] S37. DOCK may return a second layout resource adapted to the split-screen ratio to the operating system.
[0207] DOCK can be a system function or application that supports split screen.
[0208] Similarly, taking the split-screen ratio of 3:1 as an example, the size of the second split-screen window can be calculated as follows: width = 1224*(3 / 4), height = 2700*(3 / 4), then the second layout resource is adapted to the width and height, so that the DOCK user interface can be adapted to the second split-screen window and displayed.
[0209] S38. The operating system may display the first application and the DOCK in split screen.
[0210] Specifically, the operating system may display the first application in the first split-screen window according to the first layout resource, and display the DOCK in the second split-screen window according to the second layout resource.
[0211] At this point, the electronic device 100 completes starting the split-screen combination.
[0212] Next, in response to the user operation of switching applications, the electronic device 100 can update the split-screen combination, switching the display from the user interface of the first application to the user interface of the second application in the first split-screen window. That is, the split-screen combination is updated to a split-screen combination consisting of the second application and DOCK.
[0213] S39: The operating system may detect that the user clicks on the second application in the dock. The user operation is used to switch to the second application.
[0214] S40-41. The operating system may start a second application.
[0215] S42. The main interface process of "Smart Driving" can also transmit the split-screen configuration to the operating system. The split-screen configuration at this time has changed compared with the previous split-screen configuration, which can be called a new split-screen configuration, in which the split-screen combination has changed.
[0216] S43. The operating system may send a screen configuration update notification to the second application to notify the split-screen ratio, so that the second application understands the size of the first split-screen window.
[0217] If the split-screen ratio is not changed by the user, the split-screen ratio remains 3:1.
[0218] S44. The second application may return a third layout resource adapted to the split-screen ratio to the operating system.
[0219] The third layout resource is adapted to the width and height, so that the user interface of the second application can be adapted to the second split-screen window and displayed without exceeding the second split-screen window and blocking the DOCK.
[0220] Of course, the premise of this step is that the second application supports split screen.
[0221] S45. The operating system may display the second application and the DOCK in a split screen.
[0222] Specifically, the operating system may switch the display from the user interface of the first application to the user interface of the second application in the first split-screen window to update the split-screen combination.
[0223] It can be seen that the method provided in the embodiment of the present application can ensure that DOCK is always displayed on the screen while normally displaying the user interface of the first application or the second application, so that the user can select other applications from DOCK to switch at any time, which is simple to operate and efficient to use.
[0224] Figure 17 The internal implementation process of starting the most recent split screen combination is shown. Figure 17 As shown, the process may include:
[0225] As shown in S51-S52, the most recent split-screen combination is a combination of the first application and DOCK, and the split-screen ratio adopted is 3:1. Steps S51-S52 are intended to pave the way for the subsequent process: the most recent split-screen combination is not empty, and there is an existing split-screen configuration on the electronic device that supports opening the most recent split-screen combination.
[0226] S53: The operating system may detect that the user clicks on the desktop icon of the first application.
[0227] S54: The operating system may notify the first application of the full-screen configuration. The full-screen configuration may mainly refer to the screen size, for example, the screen width = 1224 pixels, and the height = 2700 pixels.
[0228] S55. The first application may retrieve layout resources adapted to the full screen to support full-screen display of the first application.
[0229] S56. The operating system may display the user interface of the first application in full screen according to the layout resources adapted to the full screen.
[0230] At this point, the electronic device 100 opens the first application in full screen.
[0231] Next, in response to the user's intention to start the split screen, the electronic device 100 may start the most recent split screen combination.
[0232] S57. The operating system can detect that the user clicks the "Smart Driving" desktop icon.
[0233] Clicking the desktop icon of "Smart Driving" is a user operation to open the main interface of "Smart Driving".
[0234] S58-S59. In response to the user operation, the electronic device can start the main interface process of "smart driving".
[0235] S60, the main interface process of "Smart Driving" can read the split-screen configuration saved in the process variable, and pass the split-screen configuration to the framework layer to trigger the framework layer to pull up the split screen.
[0236] The transferred split-screen configuration is the old split-screen configuration saved in the previous S51.
[0237] S61. The main interface process of "Smart Driving" may send the existing split-screen configuration to the operating system (specifically, the application framework layer). The saved split-screen configuration includes the most recent split-screen combination and the split-screen ratio used.
[0238] In the specific implementation, the main interface process of "Smart Driving" can pass the existing split-screen configuration to the application framework layer through intent.
[0239] S62. The operating system may send a screen configuration update notification to the first application to notify the split-screen ratio, so that the first application understands the size of the first split-screen window.
[0240] The first application is the application that formed the most recent split-screen combination with DOCK. The existing split-screen ratio is the split-screen ratio used by the most recent split-screen combination.
[0241] S63: The first application may return a fourth layout resource adapted to the existing split-screen ratio to the operating system.
[0242] S64. The operating system may also send a screen configuration update notification to DOCK to notify the split-screen ratio so that DOCK knows the size of the second split-screen window.
[0243] S65. DOCK may return a fifth layout resource adapted to the existing split-screen ratio to the operating system.
[0244] S66. The operating system may display the first application and the DOCK in split screen.
[0245] Specifically, the operating system may display the first application in the first split-screen window based on the fourth layout resource, and display the dock in the second split-screen window based on the fifth layout resource. The fourth and fifth layout resources are the same as the layout resources used by the electronic device to display the first application and the dock in step S51.
[0246] At this point, the electronic device 100 activates the most recent split screen combination.
[0247] As can be seen, the method provided in the embodiment of the present application can support starting the most recent split-screen combination and continuing the previous split-screen state. The user experience is that even if an application in the split-screen combination is opened separately after splitting the screen, the split-screen combination will not be disassembled, and the previous split-screen combination can still be used, which is more convenient.
[0248] The steps of the method or algorithm described in conjunction with the disclosure of the embodiments of the present application can be implemented in hardware or by executing software instructions by a processor. The software instructions can be composed of corresponding software modules, which can be stored in RAM, flash memory, ROM, erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), registers, hard disks, mobile hard disks, CD-ROMs, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be an integral part of the processor. The processor and storage medium can be located in an ASIC. In addition, the ASIC can be located in a transceiver or a relay device. Of course, the processor and storage medium can also be present in a wireless access network device or a user device as discrete components.
[0249] Those skilled in the art will appreciate that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented using hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein communication media include any media that facilitates the transmission of computer programs from one place to another. The storage medium can be any available medium that can be accessed by a general-purpose or special-purpose computer.
[0250] The above specific implementation methods further explain in detail the purpose, technical solutions and beneficial effects of the embodiments of the present application. It should be understood that the above are only specific implementation methods of the embodiments of the present application and are not intended to limit the scope of protection of the embodiments of the present application. Any modifications, equivalent replacements, improvements, etc. made on the basis of the technical solutions of the embodiments of the present application should be included in the scope of protection of the embodiments of the present application.< / canvas> < / video> < / videoview> < / imgview> < / textview>
Claims
1. A method for switching applications, characterized in that: include: The electronic device detects a user operation of opening a third application; The electronic device displays a first split-screen combination on a screen, the first split-screen combination consisting of a first application and a dock DOCK, the first application being displayed in a first split-screen window, the DOCK being displayed in a second split-screen window, the first split-screen window and the second split-screen window not obscuring each other, and the DOCK including a plurality of applications; The electronic device detects a user operation of opening the first application; The electronic device displays the first application in full screen on the screen; The electronic device further detects a user operation of opening the third application; The electronic device displays the first split-screen combination again on the screen.
2. The method according to claim 1, wherein When the electronic device displays the first split screen combination on the screen, the method further includes: the electronic device saving the first split screen combination as a most recent split screen combination.
3. The method according to claim 1 or 2, wherein: The method further comprises: The electronic device detects a user operation of opening a second application in the DOCK; The electronic device displays the user interface of the second application in the first split-screen window.
4. The method according to claim 3, wherein When the electronic device displays the user interface of the second application in the first split-screen window, the method further includes: the electronic device saving the second split-screen combination as the most recent split-screen combination, where the second split-screen combination is composed of the second application and the DOCK.
5. The method according to claim 2 or 4, characterized in that The saving further includes: saving the split-screen ratio adopted by the most recent split-screen combination.
6. The method according to any one of claims 1 to 5, wherein When the electronic device detects a user operation of opening a third application, the first application is a recently used application, and the electronic device does not have a recently saved split-screen combination.
7. The method according to any one of claims 1 to 6, wherein When the electronic device detects a user operation of opening a third application, the first application is not a most recently used application.
8. The method according to claim 7, wherein The first application is not the most recently used application, specifically including: after the electronic device displays the first application in full screen on the screen, and before the electronic device detects the user operation of opening a third application, the electronic device also displays a fourth application in full screen on the screen.
9. The method according to any one of claims 1 to 8, wherein The first application has a first layout resource and a second layout resource, wherein the first layout resource is configured for the size of the first split-screen window, and the second layout resource is configured for the size of the screen.
10. The method according to claim 9, wherein When the first application is displayed in the first split-screen window, the layout resource used by the first application is the first layout resource.
11. The method according to claim 9 or 10, wherein: When the first application is displayed in full screen on the screen, the layout resource used by the first application is the second layout resource.
12. The method according to claim 3 or 4, characterized in that The second application also has layout resources configured for the first split-screen window.
13. The method according to any one of claims 1 to 12, wherein The user operation of opening the third application includes: clicking the desktop icon of the third application, clicking the floating ball of the third application displayed on the screen, or clicking the notification of the third application running in the message notification center.
14. The method according to any one of claims 1 to 13, wherein The electronic device displaying the first split-screen combination on the screen specifically includes: The third application transmits the first split-screen combination and the split-screen ratio adopted by the first split-screen combination to the application framework layer; The application framework layer forms a split screen according to the split screen ratio adopted by the first split screen combination, and sends a first screen configuration update notification to the first application in the first split screen combination, where the first screen configuration update notification carries the size of the first split screen window; The first application feeds back a first layout resource to the application framework layer according to the first screen configuration update notification, where the first layout resource is a layout resource obtained according to the size of the first split-screen window and is different from a second layout resource used when the first application is displayed in full screen; The application framework layer displays the user interface of the first application in the first split-screen window based on the first layout resource.
15. The method according to claim 5, wherein The saving specifically includes: saving to a process variable of the third application.
16. The method according to claim 15, wherein The electronic device includes an application framework layer; and the electronic device displays the first split-screen combination again on the screen, specifically including: The third application reads the saved most recent split-screen combination and the split-screen ratio adopted by the most recent split-screen combination from the process variable; The third application transmits the most recent split-screen combination and the split-screen ratio to the application framework layer; The application framework layer forms a split screen according to the split screen ratio, and sends a second screen configuration update notification to the first application in the most recent split screen combination, where the second screen configuration update notification carries the size of the first split screen window; The first application feeds back a first layout resource to the application framework layer according to the second screen configuration update notification, where the first layout resource is a layout resource obtained according to the size of the first split-screen window and is different from a second layout resource used when the first application is displayed in full screen; The application framework layer displays the user interface of the first application in the first split-screen window based on the first layout resource.
17. The method according to any one of claims 1 to 16, wherein The DOCK includes a fifth application that does not support split-screen, where the not supporting split-screen means that the fifth application does not have layout resources configured for the first split-screen window; The method further comprises: The electronic device detects a user operation of opening a fifth application in the DOCK; The electronic device displays the user interface of the fifth application in full screen on the screen; The electronic device further displays a floating ball of the third application on the screen; The electronic device detects a user operation of clicking the floating ball; The electronic device displays the most recent split-screen combination on the screen.
18. An electronic device, characterized in that: The method comprises one or more processors and one or more memories; wherein 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, wherein the computer program code includes computer instructions, and when the one or more processors execute the computer instructions, the method according to any one of claims 1 to 17 is executed.
19. A chip system, applied to electronic equipment, comprising one or more processors, characterized in that: The processor is configured to call computer instructions so as to execute the method according to any one of claims 1 to 17.
20. A computer-readable storage medium comprising instructions, characterized in that: When the instructions are executed on an electronic device, the method according to any one of claims 1 to 17 is executed.
Citation Information
Patent Citations
Method and device for switching split screen application, storage medium and electronic device
CN108932093A
Screen projection method and related device
CN115373778A