Split-screen display method and device
By displaying split-screen prompt information and split-screen interface on the electronic device, the problem of users frequently switching applications and cumbersome operations is solved, the fast split-screen function is realized, and the user experience and operation efficiency are improved.
Patent Information
- Application Number
- CN202410560190.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-30
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2041-11-30
AI Technical Summary
When users use electronic devices, frequent switching of applications requires cumbersome operations, resulting in low user experience.
By implementing a split-screen display method on an electronic device and using the split-screen prompt information to remind the user of two applications that are about to be split-screened, the user can quickly perform split-screen operations and avoid the cumbersome operation of frequently switching applications. The method includes displaying a split-screen prompt information when preset conditions are met, prompting the user for split-screen display, and displaying a split-screen interface after user operation, and supporting left-right split-screen and up-down split-screen display.
It improves the user experience, simplifies the application switching process, enables users to use the split-screen function quickly and conveniently, reduces operating steps, and improves user operating efficiency.
Smart Images

Figure CN118625967A
Abstract
Description
[0001] This application is a divisional application. The application number of the original application is 202111450656.X, and the original application date is November 30, 2021. The entire contents of the original application are incorporated into this application by reference. Technical Field
[0002] The present application relates to the field of terminals, and in particular to a split-screen display method and device. Background Art
[0003] Currently, when a user uses an electronic device (eg, a mobile phone, a tablet computer), the user may frequently switch between two applications.
[0004] When users switch applications, they usually need to exit the current application first and then enter another application from the desktop. This operation is very cumbersome and the user experience is poor. Summary of the invention
[0005] The embodiments of the present application provide a split-screen display method and device, which can solve the problem of frequent operations required when users switch applications, and can improve user experience.
[0006] In a first aspect, some embodiments of the present application provide a split-screen display method, including: at a first moment, the electronic device displays the first interface of the first application in full screen; when a first preset condition is met, the electronic device displays split-screen prompt information on the first interface of the first application, the split-screen prompt information including an application icon of the first application and an application icon of the second application, in the split-screen prompt information, the application icon of the first application is located to the left, above, or to the upper left of the application icon of the second application, the split-screen prompt information also includes preset graphics and / or preset words, the preset graphics include vertical lines or ellipses, the preset words include entering split screen or split screen, the split-screen prompt information is used to prompt the first application and the second application to be displayed in split screen, the first application is the application running in the foreground, and the second application is the application recommended by the electronic device for split-screen display with the first application; in response to the user's operation on the split-screen prompt information, the electronic device displays a split-screen interface, the split-screen interface including the first interface of the first application and the second interface of the second application.
[0007] In this way, the electronic device can prompt the user about splitting the screen through split-screen prompt information, so that the user can know the two applications to be split according to the split-screen prompt information. The user can operate the split-screen prompt information, thereby quickly and conveniently using the split-screen function, avoiding the problem of frequent operations when the user switches applications, and improving the user experience.
[0008] In a possible design, in the split-screen prompt information, the application icon of the first application is located on the left or upper side of the application icon of the second application, and the application icon of the first application and the application icon of the second application are separated by a first preset graphic or a preset word, and the first preset graphic includes a vertical line. When the type of split-screen display is left-right split-screen display, the application icon of the first application is located on the left side of the application icon of the second application, to indicate that after the split-screen display, the first application (for example, application A) can be displayed on the left side of the screen, and the second application (for example, application B) can be displayed on the right side of the screen. In this way, the user's eyes can pay more attention to the left area (that is, pay more attention to the interface of the application (first application) being used before the split screen), which can meet the user's visual consistency. When the type of split-screen display is top-bottom split-screen display, the application icon of the first application is located on the upper side of the application icon of the second application, to indicate that after the split-screen display, the first application (for example, application A) is displayed on the top of the screen, and the second application (for example, application B) is displayed on the bottom of the screen. In this way, the user's eyes can pay more attention to the upper area (that is, pay more attention to the interface of the application (first application) being used before the split screen), which can meet the user's visual consistency.
[0009] In one possible design, in the split-screen prompt information, the application icon of the first application is located on the upper left side of the application icon of the second application, the application icon of the first application and the application icon of the second application are located in a second preset graphic, the second preset graphic includes an ellipse, and a preset word is displayed on the right side of the second preset graphic. By locating the application icon of the first application on the upper left side of the application icon of the second application, the user can be prompted that the first application (for example, application A) is displayed on the upper or left side of the screen after the split-screen display, and the second application (for example, application B) is displayed on the lower or right side of the screen. In this way, the user's eyes can pay more attention to the upper or left area of the screen (that is, pay more attention to the interface of the application (first application) being used before the split screen), which can meet the user's visual consistency.
[0010] In a possible design, when a first preset condition is met, the electronic device displays split-screen prompt information on the first interface of the first application, including: when a first number of consecutive applications include the second application and the third application, the number of occurrences of the first application and the number of occurrences of the second application are both greater than or equal to the first number, and the number of switches between the second application and the first application is greater than or equal to the second number, the split-screen prompt information is superimposed on the first interface of the currently displayed first application, wherein the first number of consecutive applications are the first number of consecutive applications displayed in full screen within a first time before a first moment, and the first number of consecutive applications include the first application. In this way, the electronic device can predict the timing of split-screen in real time and intelligently according to the user's use of applications, and recommend split-screen to the user at that time, so that the user can quickly and conveniently use the split-screen function according to the split-screen recommendation, thereby improving the user experience.
[0011] In one possible design, the first time is 5 minutes, the first number is 2 times, the second number is 2 times, and the first number is 5.
[0012] In a possible design, the first application, the second application, and the third application are all different from the applications in the preset blacklist, and the applications in the blacklist include desktop applications; the split-screen prompt information is displayed in the form of a floating capsule. The blacklist may also include a setting application.
[0013] In a possible design, when the first preset condition is met, the electronic device displays the split screen prompt information on the first interface of the first application, including: at a second moment after the first moment, in response to switching from the first application to the second application, the second application interface is displayed in full screen; at a third moment after the second moment, in response to switching from the second application to the third application, the third application interface is displayed in full screen; at a fourth moment after the third moment, in response to switching from the third application to the second application, the second application interface is displayed in full screen; at a fifth moment after the fourth moment, in response to switching from the second application to the first application, the first application interface is displayed in full screen; when the difference between the fifth moment and the first moment is less than or equal to the first time, and the first application, the second application and the current screen all support split screen, the split screen prompt information is superimposed on the first application interface displayed at the fifth moment. In this way, the electronic device can predict the timing of split screen in real time and intelligently according to the user's use of the application, and recommend split screen to the user at this time, so that the user can quickly and conveniently use the split screen function according to the split screen recommendation, thereby improving the user experience.
[0014] In a possible design, when the first preset condition is met, the electronic device displays the split screen prompt information on the first interface of the first application, including: at a second moment after the first moment, in response to switching from the first application to the second application, the second application interface is displayed in full screen; at a third moment after the second moment, in response to switching from the second application to the third application, the third application interface is displayed in full screen; at a fourth moment after the third moment, in response to switching from the third application to the second application, the second application interface is displayed in full screen; at a fifth moment after the fourth moment, in response to switching from the second application to the first application, the first application interface is displayed in full screen; at a sixth moment after the fifth moment, it is detected that the first application interface remains in a full screen display state; when the difference between the sixth moment and the first moment is less than or equal to the first time, and the first application, the second application and the current screen all support split screen, the split screen prompt information is superimposed on the first application interface displayed at the sixth moment. In this way, the electronic device can predict the timing of split screen in real time and intelligently according to the user's use of the application, and recommend split screen to the user at this time, so that the user can quickly and conveniently use the split screen function according to the split screen recommendation, thereby improving the user experience.
[0015] In one possible design, the electronic device includes a business logic processing module, a scenario perception module, a business presentation module and a multi-window management module. Before the electronic device displays split-screen prompt information on the first interface of the first application, the method also includes: when the scenario perception module detects the user's operation of switching applications, the application switching notification is sent to the business logic processing module, the application switching notification is used to instruct the user to switch to the first application, the application switching notification includes application information of the first application, and the application information includes a package name and a work identifier; the business logic processing module adds the first application to an application list according to the application information of the first application, the application list includes application information of applications that the user has opened N times recently, each application included in the application list is an application that has been displayed in full screen, and the application list does not include desktop applications; determine whether the number of appearances of the first application and other applications in the application list is greater than or equal to a first preset threshold, and the application list includes application information of the second application ;When at least the occurrence times of the first application and the second application are both greater than or equal to the first preset threshold, it is determined that the first application and the second application are applications that the user has recently frequently switched; the business logic processing module determines to display the two frequently switched applications in split screen; the business logic processing module sends a split screen instruction to the business presentation module, the split screen instruction includes application information and split screen display position information of the two frequently switched applications, and the split screen display position information is used to indicate the display position information corresponding to the two frequently switched applications when they are displayed in split screen; the business presentation module displays split screen prompt information on the first interface of the first application; in response to the user's operation on the split screen prompt information, the electronic device displays the split screen interface, including: in response to detecting the user's operation on the split screen prompt information, the business presentation module notifies the multi-window management module to display the first application and the second application in split screen, and the multi-window management module displays the first application and the second application in split screen. In this way, the electronic device can recommend split screen to the user according to the user's use of the application and the use of the application (i.e., display split screen prompt information), so that the user can quickly and conveniently use the split screen function according to the split screen recommendation, thereby improving the user experience.
[0016] In a possible design, the business logic processing module determines that two frequently switched applications are displayed in split screen, including: the business logic processing module calls the multi-window management module to determine whether the screen of the electronic device supports split screen and whether the first application and the second application support split screen; the multi-window management module determines whether the screen of the electronic device supports split screen, including: the multi-window management module obtains the height grid number and the width grid number corresponding to the screen of the electronic device, determines the device type of the electronic device according to the height grid number and the width grid number, and if the device type of the electronic device is a preset type, determines that the screen of the electronic device supports split screen, and the preset type includes a folding screen mobile phone, a tablet computer, and a straight-screen mobile phone; the multi-window management module determines whether the first application and the second application support split screen, including: the multi-window management module queries whether the application list white list includes the first application and the second application, and the application list white list is used to indicate all applications that support split screen, and if the application list white list includes the first application and the second application, determines that the first application and the second application support split screen. In this way, the electronic device can recommend split screen to the user according to the user's use of the application and the use of the application (i.e., display split screen prompt information), so that the user can quickly and conveniently use the split screen function according to the split screen recommendation, thereby improving the user experience.
[0017] In a possible design, if it is detected that the user has not operated the split-screen prompt information within a preset time, the split-screen prompt information disappears; or in response to the user's operation of closing the split-screen prompt information, the split-screen prompt information disappears; or in response to the user's operation of exiting the first interface, the split-screen prompt information disappears; or in response to the user's operation on the split-screen prompt information, the split-screen prompt information disappears. In this way, it can avoid affecting the user's experience of using the application.
[0018] In one possible design, the business presentation module notifies the multi-window management module to display the first application and the second application in a split-screen manner, including: the business presentation module sends a split-screen notification message to the multi-window management module, the split-screen notification message is used to notify the multi-window management module to display the first application and the second application in a split-screen manner, and the split-screen notification message carries the package name or work identifier of the first application and the second application; the multi-window management module displays the first application and the second application in a split-screen manner, including: the multi-window management module opens the Activity corresponding to the first interface of the first application and the Activity corresponding to the second interface of the second application, and the second interface is the interface that the user last browsed in the second application.
[0019] In a second aspect, the present application provides a chip system, which includes one or more interface circuits and one or more processors. The interface circuits and processors are interconnected via lines.
[0020] The chip system can be applied to an electronic device including a communication module and a memory. The interface circuit is used to receive a signal from the memory of the electronic device and send the received signal to the processor, where the signal includes a computer instruction stored in the memory. When the processor executes the computer instruction, the electronic device can execute the method described in the first aspect and any possible design thereof.
[0021] Alternatively, the chip system can be applied to a server (server device) including a communication module and a memory. The interface circuit is used to receive a signal from the memory of the server and send the received signal to the processor, where the signal includes a computer instruction stored in the memory. When the processor executes the computer instruction, the server can execute the method described in the first aspect and any possible design thereof.
[0022] In a third aspect, the present application provides a computer-readable storage medium, which includes computer instructions. When the computer instructions are executed on an electronic device (such as a mobile phone), the electronic device executes the method described in the first aspect and any possible design thereof.
[0023] Alternatively, when the computer instructions are executed on the server, the server is caused to execute the method as described in the first aspect and any possible design thereof.
[0024] In a fourth aspect, the present application provides a computer program product, which, when executed on a computer, enables the computer to execute the method described in the first aspect and any possible design thereof.
[0025] In a fifth aspect, an embodiment of the present application provides a split-screen display device, including a processor, the processor and a memory are coupled, the memory stores program instructions, and when the program instructions stored in the memory are executed by the processor, the device implements the method described in the first aspect and any possible design thereof. The device may be an electronic device or a server device; or may be a component of an electronic device or a server device, such as a chip.
[0026] In the sixth aspect, an embodiment of the present application provides a split-screen display device, which can be divided into different logical units or modules according to functions, and each unit or module performs different functions, so that the device executes the method described in the above-mentioned first aspect and any possible design method thereof.
[0027] It can be understood that the beneficial effects that can be achieved by the chip system described in the second aspect, the computer-readable storage medium described in the third aspect, the computer program product described in the fourth aspect, and the devices described in the fifth aspect and the sixth aspect provided above can refer to the beneficial effects in the first aspect and any possible design method thereof, and will not be repeated here.
[0028] Based on the split-screen display method provided in the embodiment of the present application, the electronic device can prompt the user of split screen through split-screen prompt information, so that the user can know the two applications to be split-screen according to the split-screen prompt information, and the user can operate the split-screen prompt information to use the split-screen function quickly and conveniently, avoiding the problem of frequent operations when the user switches applications, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0030] Figure 2 A schematic diagram of a software architecture of an electronic device provided in an embodiment of the present application;
[0031] Figure 3 A signal interaction diagram provided in an embodiment of the present application;
[0032] Figure 4A A display schematic diagram provided for an embodiment of the present application;
[0033] Figure 4B A grid schematic diagram provided for an embodiment of the present application;
[0034] Figure 5 Another display schematic diagram provided for an embodiment of the present application;
[0035] Figure 6 Another display schematic diagram provided for an embodiment of the present application;
[0036] Fig. 7A Another display schematic diagram provided for an embodiment of the present application;
[0037] Figure 7B Another display schematic diagram provided for an embodiment of the present application;
[0038] Figure 8 Another display schematic diagram provided for an embodiment of the present application;
[0039] Fig. 9 Another display schematic diagram provided for an embodiment of the present application;
[0040] Fig.10 A schematic diagram of the structure of a chip system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0041] Currently, when users use electronic devices (e.g., mobile phones, tablets), they may open multiple applications at the same time and switch between two applications. For example, a user may reply to a text message in a text message application while writing a memo in a memo application. When users switch applications, they usually need to exit the current application first and then enter another application from the desktop. This operation is very cumbersome and has a poor user experience.
[0042] In order to better meet user needs, a split-screen function can be provided for users. That is, multiple (for example, two) applications are displayed on the screen at the same time, and the two applications run at the same time without affecting each other, avoiding users switching applications back and forth. In the prior art, electronic devices entering split-screen mode require users to perform more complex operations to trigger. For example, when the electronic device displays the interface of application A in full screen, the user can long press the task key to enter split-screen mode (or swipe up from the bottom of the phone and stay to enter the interface of the background application card, and then click the split-screen icon to enter split-screen mode), and then the user manually selects another application that needs to be displayed in split screen, such as clicking the icon of application B, so that application A and application B are finally displayed in different windows respectively.
[0043] It can be seen that in the prior art, when an electronic device enters the split-screen mode, the user needs to select the application to be split by himself, and needs to perform relatively complex operations to complete the split-screen operation, resulting in a low user experience.
[0044] An embodiment of the present application provides a split-screen display method and device, which can trigger a split-screen reminder when it is detected that the current application (the application currently running in the foreground) and another application are frequently switched. In response to the user's operation on the split-screen reminder, a split-screen display can be triggered. This avoids the user from performing tedious manual operations and can improve the user experience.
[0045] The split-screen display method provided in the embodiment of the present application can be applied to electronic devices. The electronic device can be, for example, a mobile phone (including a folding screen mobile phone and a straight-screen mobile phone), a tablet computer, a desktop computer (desktop computer), a handheld computer, a notebook computer (laptop), an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook, a personal digital assistant (personal digital assistant, PDA), an augmented reality (augmented reality, AR)\virtual reality (virtual reality, VR) device, etc. The embodiment of the present application does not impose any special restrictions on the specific form of the electronic device. Alternatively, the method provided in the embodiment of the present application can be applied to a server device.
[0046] like Figure 1 As shown, the electronic device may be specifically a mobile phone 100. The mobile phone 100 may include a processor 110, an external memory interface 120, an internal memory 121, a USB interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a radio frequency module 150, a 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 SIM card interface 195, etc. The sensor module may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0047] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural network processor (NPU), etc. Different processing units may be independent devices or integrated in the same processor.
[0048] The structure shown in the embodiment of the present invention does not limit the mobile phone 100. It may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0049] The software system of the mobile phone 100 may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present invention takes the Android system of a layered architecture as an example to illustrate the software structure of the mobile phone 100.
[0050] like Figure 2As shown in FIG. 1 , the Android system may include an application layer (which may be referred to as the application layer) and an application framework layer (which may be referred to as the framework layer). In addition, the Android system may also include an Android runtime, a system library, and a kernel layer ( Figure 2 ), and this application does not limit it.
[0051] The application layer may include a series of application packages. For example, the application layer may include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and other applications (applications may be referred to as applications for short), and the present application embodiment does not impose any restrictions on this.
[0052] In the embodiment of the present application, the application layer may also include a context awareness module, a business logic processing module, a business presentation module, etc. The context awareness module, the business logic processing module, and the business presentation module may be independent APPs, or may be integrated in different APPs, or may be integrated in the same APP, which is not limited in the present application.
[0053] Among them, the context awareness module is used to sense whether the application is switched. The context awareness module can monitor the page switching at the APP level and the activity level through the application / page status monitoring module of the framework layer. When the page switching at the APP level occurs, the business logic processing module can be notified that the page switching at the APP level has occurred.
[0054] The business logic processing module is used for core business calculations, including determining the two applications that the user has recently frequently switched, deciding whether the two frequently switched applications need to be split-screened, and deciding the location of the application split-screen. The business logic processing module can call the multi-window management module in the application framework layer to determine whether the screen of the electronic device supports split-screening and whether the two frequently switched applications support split-screening. If it is determined that the two frequently switched applications need to be split-screened, the business logic processing module can send a split-screen notification message to the business presentation module.
[0055] The business presentation module (for example, YOYO Suggestion) is responsible for UX interaction and result display. The business presentation module can receive split-screen notification messages from the business logic processing module and display split-screen floating capsules. After detecting that the user clicks on the split-screen floating capsule, the multi-window management module can be notified to split the screen.
[0056] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.
[0057] like Figure 2 As shown, the application framework layer may include an application / page status monitoring module, a multi-window management module (window manager), a content provider, a view system, a resource manager, a notification manager, etc., and the embodiments of the present application do not impose any restrictions on this.
[0058] In the embodiment of the present application, the application / page status monitoring module is responsible for monitoring the page switching at the APP level and the activity level. The page switching at the APP level means that the user switches the application, for example, from the SMS application to the memo application. The page switching at the activity level means that the user switches the page within the APP, for example, from the personal message page of the SMS application to the notification message page.
[0059] The multi-window management module can be implemented based on Android's native multi-window management. Based on the original functions of Android's native multi-window management, it can provide more capabilities, such as split-screen management, floating window management, dynamic effect splitting, and compatibility with more applications.
[0060] Among them, the split screen management capability is used to realize the split screen display of multiple applications. The floating window management capability is used to realize the display of floating windows. The dynamic splitting is used to realize the animation effect of entering the split screen display mode of multiple applications from the full screen mode of a single application. Compatibility with more applications may include compatibility with applications such as YOYO suggestions.
[0061] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application. Among them, in the description of the present application, unless otherwise specified, " / " indicates that the objects associated before and after are in an "or" relationship, for example, A / B can represent A or B; "and / or" in the present application is only a description of the association relationship of the associated objects, indicating that there can be three relationships, for example, A and / or B, which can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. And, in the description of the present application, unless otherwise specified, "multiple" refers to two or more than two. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple. In addition, in order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "first", "second" and the like are used to distinguish the same items or similar items with substantially the same functions and effects. Those skilled in the art will understand that the words "first", "second" and the like do not limit the quantity and execution order, and the words "first", "second" and the like do not necessarily limit the differences. At the same time, in the embodiments of the present application, the words "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or design solutions. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete manner for ease of understanding.
[0062] For ease of understanding, the split-screen display method provided in the embodiment of the present application is specifically introduced below with reference to the accompanying drawings.
[0063] like Figure 3 As shown, the embodiment of the present application provides a split-screen display method, which is described by taking the electronic device as a folding screen mobile phone as an example, including:
[0064] 301. The business logic processing module subscribes to the application switching fence from the context awareness module.
[0065] After the business logic processing module subscribes to the application switching fence from the context awareness module, when the context awareness module detects that the user opens an application or switches applications, the business logic processing module may be notified.
[0066] 302. The context awareness module detects the user's operation of switching applications and notifies the business logic processing module that the application has been switched.
[0067] When the user switches applications, the context awareness module can sense the user's application switching operation, trigger the application switching fence, and send an application switching fence trigger notification to the business logic processing module. The application switching fence trigger notification is used to indicate that the application has been switched.
[0068] For example, at the first moment, Figure 4A As shown in (a) of FIG. 4 , the mobile phone may display the memo interface 401. At this time, the memo is the APP running in the foreground. At the second moment (later than the first moment), the user may switch to the SMS application, such as Figure 4A As shown in (b), the mobile phone can display the interface 402 of the SMS application (information application). At this time, the SMS application is the APP running in the foreground. After the situational awareness module detects that the user opens / switches to the SMS application, it can send an application switching notification (application switching fence trigger notification) to the business logic processing module. The application switching notification can carry the application information of the current application (the application currently running in the foreground, such as the SMS application). The application information includes the package name and the task identifier (task identification, task ID). Among them, the package name is used to indicate which application the information belongs to, such as a messaging application, a memo application, and so on. The task identifier task ID is used to indicate the currently displayed interface. Optionally, the application switching notification can also carry time information for opening the current application, etc., which is not limited in this application.
[0069] 303. The business logic processing module determines whether there are frequently switched applications.
[0070] Each time the business logic processing module receives an application switching notification from the context awareness module, it can read the application information (package name and task ID) of the current application from the application switching notification. And according to the application information of the current application, the current application is added to the recently used application list. The recently used application list can be determined according to the sliding time window statistical algorithm. For example, the recently used application list can be shown in Table 1.
[0071] Table 1
[0072] time Application ID (package name) 2021-11-10 11:00:00 The package name of application A (for example, com.android.mms) 2021-11-10 11:05:00 The package name of application B (for example, com.android.memo) 2021-11-10 11:20:00 Package name of application A 2021-11-10 11:25:00 Package name of application B 2021-11-10 11:36:00 Package name of application A
[0073] It can be seen from Table 1 that the user entered (opened) application A at 2021-11-10 11:00:00, entered application B at 2021-11-10 11:05:00, entered application A again at 2021-11-10 11:20:00, entered application B again at 2021-11-10 11:25:00, and entered application A again at 2021-11-10 11:36:00.
[0074] The upper limit of the number of applications included in the recently used application list may be N (N is a preset positive integer, for example, N=5). When the number of applications included in the recently used application list is N (for example, 5), it is determined whether there is a frequently switched application in the recently used application list.
[0075] In a possible design, it is possible to count whether the number of appearances of the current application (the application most recently added to the application list) and other applications in the recently used application list is greater than or equal to a first preset threshold (e.g., 2 times). If the number of appearances of the current application (e.g., application A) and another application (e.g., application B) are both greater than or equal to the first preset threshold, it is considered that there is frequent switching between the current application (e.g., application A) and another application (e.g., application B).
[0076] For example, suppose that among the five most recently used applications, the current application (e.g., application A) and another application (e.g., application B) are switched back and forth more than 2 times. For example, the switching order is: application A->application B->application A->application B->application A, and it is considered that the current application (e.g., application A) and another application (e.g., application B) are frequently switched.
[0077] In some embodiments, the business logic processing module may only add applications that have been displayed in full screen within the last M minutes (e.g., 5 minutes) to the recently used application list. Optionally, the full screen display duration of applications in the recently used application list may be T seconds (e.g., 60 seconds). Applications opened through a floating window (through a small window) may not be added to the recently used application list, and thus do not participate in the determination of frequently switched applications. Optionally, settings applications and desktop applications may also not be added to the recently used application list, and thus do not participate in the determination of frequently switched applications.
[0078] In addition, the desktop application and the setting application may not be added to the recently used application list, so as not to participate in the determination of frequently switched applications. That is, the desktop or setting application may be deleted from the application switching sequence.
[0079] In another possible design, if it is determined that the user switches between two full-screen applications (e.g., application A and application B) Y times within X seconds (e.g., 100 seconds, 200 seconds, 300 seconds, etc.) (switching from application A to application B counts as one switch, and switching from application B to application A counts as one switch), it can be considered that there is frequent switching between application A and application B. X and Y are configurable system service parameters, for example, X=300, Y=4.
[0080] 304. The business logic processing module determines whether two frequently switched applications can be displayed in split screens.
[0081] The business logic processing module can make the following two judgments:
[0082] (1) Determine whether the current screen supports split screen.
[0083] The business logic processing module can call the multi-window management module to determine whether the current screen supports split screen. At the same time, the business logic processing module can register a callback with the multi-window management module. The purpose of registering the callback is to return the result of whether the current screen supports split screen to the business logic processing module after the multi-window management module determines whether the current screen supports split screen.
[0084] like Figure 4B As shown, the multi-window management module can obtain the height grid number and width grid number of the electronic device screen. When the height grid number and the width grid number are both 8, it can be judged that the electronic device is a folding screen device (folding screen mobile phone). The screen size of a folding screen mobile phone can be 7-8 inches. When the height grid number and the width grid number are 8 and 12 respectively, it can be judged that the electronic device is a tablet computer, and the screen size of the tablet computer can be 8-11 inches. If the electronic device is a folding screen device or a tablet computer, it is determined that the screen of the electronic device supports split screen.
[0085] Of course, other types of devices may also support split screen, for example, a candy bar phone may also support split screen.
[0086] (2) Determine whether two frequently switched applications (for example, application A and application B) support split screen (transmit package name).
[0087] The business logic processing module can call the multi-window management module to determine whether the application (for example, application A and application B) supports split screen. At the same time, the business logic processing module can register a callback with the multi-window management module. The purpose of registering the callback is to return the result of whether the application supports split screen to the business logic processing module after the multi-window management module determines whether the application supports split screen.
[0088] The multi-window management module can maintain an application list whitelist, which can include identifiers of applications that support split screen (eg, package names of applications). Exemplarily, the application list whitelist that supports split screen can be as shown in Table 2.
[0089] Table 2
[0090] Application ID (package name) Whether to support split screen The package name of application A (for example, com.android.mms) yes The package name of application B (for example, com.android.memo) yes Package name of application C yes Package name of application D yes Package name of application E yes
[0091] The multi-window management module can query whether the application list whitelist includes two frequently switched applications (for example, application A and application B). If so, it is determined that the two frequently switched applications support split screen.
[0092] If the current screen supports split screen, and the two frequently switched applications both support split screen, step 305 may be executed.
[0093] If the current screen does not support split screen, and / or any one of the two frequently switched applications does not support split screen, step 305 is not executed and the process stops.
[0094] 305. The business logic processing module sends a split screen instruction to the business presentation module.
[0095] The split-screen instruction may include application information of two frequently switched applications, and display position information (split-screen display position information) corresponding to the two frequently switched applications when they are displayed in split-screen.
[0096] The business logic processing module determines the type of split-screen display according to the capabilities of the current screen, and the type of split-screen display may include left-right split-screen display and top-bottom split-screen display. After determining the type of split-screen display, the position information (split-screen display position information) corresponding to the two frequently switched applications when the split-screen display is determined can be used. When the type of split-screen display is left-right split-screen display, the business logic processing module may default the current application (e.g., application A) to be displayed on the left, and the other application (e.g., application B) to be displayed on the right. In this way, the user's eyes can pay more attention to the left area, which can meet the user's visual consistency. When the type of split-screen display is top-bottom split-screen display, the business logic processing module may default the current application (e.g., application A) to be displayed on the top, and the other application (e.g., application B) to be displayed on the bottom. In this way, the user's eyes can pay more attention to the upper area, which can meet the user's visual consistency.
[0097] In one possible design, the business logic processing module can adjust the display position of the application in the split-screen display in combination with the user's usage habits. For example, if it is detected that the user is accustomed to placing application B on the left split screen or the top split screen when the split screen is displayed, application B can be displayed on the left split screen or the top split screen, and the current application (for example, application A) can be displayed on the right or top. Alternatively, if it is detected that the user is accustomed to placing application A on the right split screen (or, is accustomed to operating application A with the right hand) or the bottom split screen when the split screen is displayed, (for example, application A) can be displayed on the right or top, and application B can be displayed on the left split screen or the top split screen.
[0098] 306. The business presentation module pops up a floating capsule.
[0099] After the business presentation module receives the split-screen instruction from the business logic processing module, a floating capsule may pop up. The floating capsule is used to prompt the user to perform split-screen display. Among them, the floating capsule (split-screen floating capsule) may also be called a floating icon (split-screen floating icon), a floating window (split-screen floating window), a floating ball (split-screen floating ball) or a floating notification (split-screen floating notification), etc., which is not limited in this application.
[0100] The display content of the suspended capsule may be determined according to the information carried in the split-screen instruction. In some embodiments, if the split-screen display position information carried in the split-screen instruction indicates that the current application (e.g., application A) is displayed on the left and another application (e.g., application B) is displayed on the right, the display content of the suspended capsule may include the application icon of application A and the application icon of application B, with application A on the left and application B on the right, and the application icon of application A and the application icon of application B separated by a vertical line or the words "enter split screen".
[0101] like Figure 5 As shown in (a), if the current application is a text message application, the mobile phone can display a floating capsule 403 on the interface 402 of the text message application. The floating capsule 403 includes an application icon 403a for text messages and an application icon 403b for memos (an application that frequently switches with the text message application). The application icon 403a for text messages and the application icon 403b for memos are separated by a vertical line 403c. The floating capsule 403 is used to prompt the user to display the text message application and the memo application in split screen. Among them, the application icon 403a for the text message application (the current application) is displayed on the left side of the floating capsule 403, and the application icon 403b for the memo application (an application that frequently switches with the current application) is displayed on the right side of the floating capsule 403.
[0102] Or, if Figure 5 As shown in (b), if the current application is a text message application, the mobile phone can display a floating capsule 404 on the interface 402 of the text message application. The floating capsule 404 includes an application icon 404a for text messages and an application icon 404b for memos (an application that frequently switches with the text message application). The text icon 404a for text messages and the application icon 404b for memos are separated by the words "enter split screen" 404c to more intuitively prompt the user to turn on the split screen function. Among them, the application icon 404a for the text message application (the current application) is displayed on the left side of the floating capsule 404, and the application icon 404b for the memo application (an application that frequently switches with the current application) is displayed on the right side of the floating capsule 404.
[0103] The display content of the suspended capsule may also be in other forms. Figure 6As shown in (a) of FIG. 6 , a circular bubble 602 may be displayed in the left area of the floating capsule 601. Application icons 603 of SMS (current application) and application icons 604 of memo (application frequently switched with the current application) may be displayed in a staggered manner in the circular bubble 602. The application icon 603 of the SMS application may be displayed at the upper left of the application icon 604 referenced by the memo (the application icon 604 of the memo application may be displayed at the lower right of the application icon 603 of the SMS application). The prompt text “Enter split screen” 605 may be displayed on the right side of the floating capsule 601.
[0104] For example, Figure 6 As shown in (b), the left side of the floating capsule 610 can only display the application icon 611 of the memo (the application that frequently switches with the current application), and the right side of the floating capsule 610 can display the prompt text "Enter split screen" 612 to prompt the user to display the text message (the current application) and the memo (the application that frequently switches with the current application) in split screen.
[0105] It should be noted that the display position of the floating capsule on the screen can be suspended on the side (top, bottom, left or right) of the full-screen window of the current application, or displayed on the side dock, or displayed above the floating ball, or placed in a banner notification, notification card, notification center, below the floating navigation button, etc., which is not limited in this application.
[0106] For example, Fig. 7A As shown in (a) of FIG. 1 , the mobile phone can display a suspended capsule 403 above the interface 402 of the current application. The displayed content of the suspended capsule can refer to Figure 5 The relevant description of (a) in is not repeated here. Fig. 7A As shown in (b) of FIG. 1 , the mobile phone can display a suspended capsule 404 above the interface 402 of the current application. The displayed content of the suspended capsule can refer to Figure 5 The relevant description of (b) in FIG. 1 is not repeated here.
[0107] In a possible design, the display of the suspended capsule is triggered only after the user enters the current application and stays there for a preset time (e.g., 3 seconds). Figure 5 As shown in (a) in FIG. 1 , when the user opens the SMS application and stays there for more than 3 seconds, the mobile phone will pop up the suspension capsule 403 .
[0108] In a possible design, when a first number of consecutive applications include a second application and a third application, the number of occurrences of the first application and the number of occurrences of the second application are both greater than or equal to the first number, and the number of switches between the second application and the first application is greater than or equal to the second number, a split-screen prompt information is superimposed on the first interface of the currently displayed first application, wherein the first number of consecutive applications is a first number of consecutive applications displayed in full screen within a first time before a first moment, and the first number of consecutive applications includes the first application. Exemplarily, the first time can be 5 minutes, the first number can be 2 times, the second number can be 2 times, and the first number can be 5.
[0109] For example, assuming that among the five most recently used applications, the switching order is: Application A (first application) -> Application B (second application) -> Application C (third application) -> Application A -> Application B; or, the switching order is: Application A -> Application C -> Application B -> Application A -> Application B; it is considered that there is frequent switching between the first application (Application A) and the second application (Application B), and the split-screen prompt information can be superimposed on the first interface of the currently displayed first application.
[0110] In another possible design, at a first moment, the electronic device displays the first interface of the first application in full screen; at a second moment after the first moment, in response to switching from the first application to the second application, the second application interface is displayed in full screen; at a third moment after the second moment, in response to switching from the second application to the third application, the third application interface is displayed in full screen; at a fourth moment after the third moment, in response to switching from the third application to the second application, the second application interface is displayed in full screen; at a fifth moment after the fourth moment, in response to switching from the second application to the first application, the first application interface is displayed in full screen; when the difference between the fifth moment and the first moment is less than or equal to the first time, and the first application, the second application and the current screen all support split screen, the split screen prompt information is superimposed on the first application interface displayed at the fifth moment.
[0111] For example, Figure 7B As shown in FIG. 4( a ), it is assumed that at time t1, the mobile phone displays the interface 401 of the memo application in full screen. Then, at time t2 after the interface of the memo application is displayed, as shown in FIG. Figure 7B As shown in FIG. (b) of FIG. 1 , the user switches from the memo application to the message application, and the mobile phone screen displays the interface 402 of the message application in full screen. Then, at time t3 after the interface 402 of the message application is displayed in full screen, the user switches from the message application to the camera application, and the electronic device screen displays the interface 403 of the camera application in full screen. Figure 7BNext, at time t4 after the camera application interface is displayed in full screen, the user switches from the camera application to the memo application, and the electronic device screen displays the memo application interface 404 in full screen, as shown in FIG. Figure 7B Then, at time t5 after time t4, the user switches from the memo application to the information application, and the electronic device screen displays the interface 405 of the information application in full screen, as shown in FIG. Figure 7B As shown in Figure (e) in the figure. Moreover, at time t5, if the electronic device determines that the difference between time t5 and time t1 is less than or equal to the first time, the information application, the memo application and the camera application are not applications in the preset blacklist, and the information application and the memo application both support split screen, and the electronic device also supports split screen, then the electronic device determines that the information application and the memo application are frequently switched applications, and thus, the electronic device superimposes and displays a floating capsule on the information application interface displayed at time t5.
[0112] In the embodiment of the present application, the electronic device immediately performs split-screen prediction at time t5, and if it is predicted that split-screen is required, a floating capsule is immediately popped up on the interface of the memo application displayed in full screen at time t5. In this way, the user can quickly enter the split-screen state by operating the floating capsule.
[0113] In the embodiment of the present application, the user does not need to consider in advance whether to split the screen, nor does he need to pre-set the split-screen status. This not only saves the user's energy and time, but also reduces the user's operation steps, allowing the user to easily and conveniently use the split-screen function of the electronic device.
[0114] In one example, the first time may be 5 minutes. Of course, the embodiment of the present application does not limit the specific value of the first time, and the specific value of the first time can be adjusted according to usage requirements.
[0115] In another possible design, at a first moment, the electronic device displays the first interface of the first application in full screen; at a second moment after the first moment, in response to switching from the first application to the second application, the second application interface is displayed in full screen; at a third moment after the second moment, in response to switching from the second application to the third application, the third application interface is displayed in full screen; at a fourth moment after the third moment, in response to switching from the third application to the second application, the second application interface is displayed in full screen; at a fifth moment after the fourth moment, in response to switching from the second application to the first application, the first application interface is displayed in full screen; at a sixth moment after the fifth moment, it is detected that the first application interface remains in full screen display; when the difference between the sixth moment and the first moment is less than or equal to the first time, and the first application, the second application and the current screen all support split screen, the split screen prompt information is superimposed on the first application interface displayed at the sixth moment.
[0116] See also Figure 7B In (e), after displaying the information application interface 405, wait for the target time, for example, the target time can be 3 seconds, until the time t6 after the time t5 (the interval between the time t5 and the time t6 is 3 seconds). If at this time Figure 7B The interface of the information application shown in Figure (e) still maintains a full-screen display state, and the electronic device starts split-screen prediction. That is, at time t6, if the electronic device determines that the difference between time t6 and time t1 is less than or equal to the first time, the information application, the memo application, and the shooting application are not applications in the preset blacklist, and the information application and the memo application both support split-screen, and the electronic device also supports split-screen, then the electronic device determines that the information application and the memo application are frequently switched applications, and thus, the electronic device superimposes and displays a floating capsule on the memo application interface displayed at time t6.
[0117] The blacklist may include applications that are less frequently used by users, such as setting applications, and applications that users must access when switching applications, such as desktop applications. The applications in the blacklist can be pre-set. The applications in the blacklist are determined as applications that do not require split screen based on the user's usage habits or purposes. By removing these applications from applications that require split screen, the electronic device can more accurately determine the timing of split screen, so that the electronic device can recommend split screen to the user when the user really wants to split screen, thereby improving the user experience. Among them, t1 <t2<t3<t4<t5<t6。
[0118] In an embodiment of the present application, the electronic device does not immediately perform a split-screen prediction at time t5, but waits for a period of time (target time), and then performs a split-screen prediction when it detects that the memo application is still in full-screen display. In this way, it can be ensured that the operation of switching to the current application (the memo application in this example) is the user's true intention, rather than a misoperation of the user, so as to perform an accurate split-screen prediction. When it is predicted that a split-screen is required, an embodiment of the present application pops up a suspended capsule on the interface of the information application displayed in full screen at time t6. In this way, the user can quickly enter the split-screen state by operating the suspended capsule.
[0119] In some cases, due to accidental touch or other reasons, the user may mistakenly switch to a certain application interface, and then usually exit the application interface quickly. The switch in this case is not the user's true intention. If the split-screen recommendation is triggered in this case, it will lead to split-screen recommendations at an inappropriate time, giving the user a bad experience. In the embodiment of the present application, by waiting for the target time before making a split-screen prediction, it is possible to avoid misunderstanding the user's intention to switch applications and accurately make split-screen predictions.
[0120] 307. The business presentation module monitors the click event.
[0121] After the business presentation module pops up the suspension capsule, it can monitor the click event. If the suspension capsule click event occurs within the preset duration (e.g., 5 seconds) of popping up the suspension capsule, the screen splitting is triggered, that is, step 308 and step 309 are executed.
[0122] If it is detected that the user has not clicked on the floating capsule within a preset time, the floating capsule can be automatically closed (the floating capsule disappears automatically) to avoid affecting the user's experience of using the application. Of course, the user can also use a preset gesture (for example, a drag gesture, a sliding gesture, etc.) to manually close the floating capsule.
[0123] In addition, the floating capsule can also disappear automatically when the user exits the current page, or disappear naturally when the user clicks the floating capsule to enter the split-screen mode.
[0124] 308. In response to detecting that the user clicks on the floating capsule, the service presentation module notifies the multi-window management module to perform split-screen display.
[0125] The service presentation module can call the system split-screen capability, that is, send a split-screen notification message to the multi-window management module, and the split-screen notification message is used to notify the multi-window management module to split the screen of two frequently switched applications (for example, application A and application B). The split-screen notification message can carry the package name or taskID of the two frequently switched applications (for example, application A and application B).
[0126] 309. The multi-window management module displays two frequently switched applications in split screen.
[0127] After receiving the split-screen notification message, the multi-window management module can simultaneously open the Activity corresponding to the interface (first interface) that the user last browsed in application A, and the Activity corresponding to the interface (second interface) that the user last browsed in application B (pull up application A and application B), so that the display interfaces of application A and application B can be displayed on the display interface at the same time, thereby realizing one-click split-screen.
[0128] like Figure 8 As shown in (a) of FIG. 1 , in response to the user clicking on the suspended capsule 403 in the SMS application interface 402, as shown in FIG. Figure 8As shown in (b) in the figure, the mobile phone can display the SMS application (current application) and the memo application (the application that frequently switches with the current application) in split screen. The interface 420 of the SMS application (current application) can be displayed on the left side of the mobile phone screen, and the interface 421 of the memo application (the application that frequently switches with the current application) can be displayed on the right side of the mobile phone screen. The interface 420 of the SMS application and the interface 421 of the memo can be separated by a dividing bar 422. The display positions of the interface 420 of the SMS application and the interface 421 of the memo on the mobile phone screen correspond to the positions of the application icons of the SMS application and the memo in the suspended capsule. That is, the application icon of the SMS application in the suspended capsule is on the left, and the interface of the SMS application is displayed on the left side of the mobile phone screen when the screen is split. The application icon of the memo application in the suspended capsule is on the right, and the interface of the memo application is displayed on the right side of the mobile phone screen when the screen is split.
[0129] The above description uses a foldable screen mobile phone as an example. When a user uses a candy bar mobile phone (or a mobile phone with a foldable screen that folds up and down), since the wide side of the candy bar mobile phone (or a mobile phone with a foldable screen that folds up and down) is shorter, the user experience is poor if the screen is split left and right. Therefore, for candy bar mobile phones, the top and bottom split screen method can be used. For example, Fig. 9 As shown in (a) and (b) in FIG. 1 , it is detected that the user frequently switches between the interface 901 of the memo application and the interface 902 of the text message application, such as Fig. 9 As shown in (c) of FIG. 1 , when the mobile phone displays the interface 902 of the SMS application, a floating capsule 904 may pop up. In the floating capsule 904, the application icon of the SMS application (the current application) is on the top, and the application icon of the memo application (the application that frequently switches with the current application) is on the bottom, separated by a horizontal line (or may be separated by the words "enter split screen"). In response to the user clicking on the floating capsule 904, as shown in FIG. Fig. 9 As shown in (d) in the figure, the mobile phone can display the SMS application (current application) and the memo application (the application that frequently switches with the current application) in split screen. The interface 904 of the SMS application (current application) can be displayed on the top of the mobile phone screen, and the interface 905 of the memo application (the application that frequently switches with the current application) can be displayed on the bottom of the mobile phone screen. The interface 904 of the SMS application and the interface 905 of the memo can be separated by a dividing bar 906. The display positions of the interface 904 of the SMS application and the interface 905 of the memo on the mobile phone screen correspond to the positions of the application icons of the SMS application and the memo application in the suspended capsule, respectively. That is, the application icon of the SMS application in the suspended capsule is at the top, and the interface of the SMS application is displayed at the top of the mobile phone screen when the screen is split. The application icon of the memo application in the suspended capsule is at the bottom, and the interface of the memo application is displayed at the bottom of the mobile phone screen when the screen is split.
[0130] The present application also provides a chip system, such as Fig.10 As shown, the chip system includes at least one processor 1001 and at least one interface circuit 1002. The processor 1001 and the interface circuit 1002 can be interconnected through a line. For example, the interface circuit 1002 can be used to receive signals from other devices (for example, a memory of an electronic device). For another example, the interface circuit 1002 can be used to send signals to other devices (for example, the processor 1001).
[0131] For example, the interface circuit 1002 can read the instructions stored in the memory of the electronic device and send the instructions to the processor 1001. When the instructions are executed by the processor 1001, the electronic device (such as Figure 1 The mobile phone 100 shown in the figure executes each step in the above embodiment.
[0132] Of course, the chip system may also include other discrete devices, which is not specifically limited in the embodiments of the present application.
[0133] The present application also provides a computer-readable storage medium, which includes computer instructions. When the computer instructions are in an electronic device (such as Figure 1 When the method is executed on the mobile phone 100 shown in the figure, the mobile phone 100 executes each function or step executed by the electronic device in the above method embodiment.
[0134] The embodiment of the present application also provides a computer program product. When the computer program product is run on a computer, the computer is enabled to execute each function or step executed by the electronic device in the above method embodiment.
[0135] An embodiment of the present application also provides a split-screen display device, which can be divided into different logical units or modules according to functions, and each unit or module performs a different function, so that the device executes each function or step executed by the electronic device in the above method embodiment.
[0136] Through the description of the above implementation methods, technicians in the relevant field can clearly understand that the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0137] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0138] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0139] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0140] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.
[0141] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims
1. A split-screen display method, characterized in that: include: When the electronic device runs a first application, the electronic device displays a first interface of the first application in full screen at a first moment; wherein, at the first moment, the preset application list includes first application information of the first application; When the electronic device runs a second application, the electronic device displays a second interface of the second application in full screen at a second moment; wherein, at the second moment, the application list includes first application information of the first application and second application information of the second application, and the second moment is later than the first moment; When the electronic device runs a third application, the electronic device displays a third interface of the third application through a floating window at a third time; wherein, at the third time, the application list includes first application information of the first application and second application information of the second application, but does not include third application information of the third application, and the third time is later than the second time; When the amount of application information in the application list reaches a first threshold at a fourth moment, the electronic device displays a split-screen floating window at a fifth moment, the split-screen floating window including an icon of the first application and an icon of the second application, the first application and the second application being frequently switched applications determined by the electronic device according to the application information in the application list, the fourth moment is later than the third moment, and the fifth moment is later than the fourth moment; After receiving the user's operation on the split-screen floating window, the electronic device displays the fourth interface and the fifth interface in split screen at a sixth moment, the fourth interface corresponds to the first application information, the fifth interface corresponds to the second application information, and the sixth moment is later than the fifth moment; from the third moment to the sixth moment, the electronic device continues to display the third interface through the floating window.
2. The method according to claim 1, characterized in that The first application information includes a first package name corresponding to the first application and a first task identifier corresponding to the first interface; and / or, The second application information includes a second package name corresponding to the second application and a second task identifier corresponding to the second interface; and / or The third application information includes a third package name corresponding to the third application and a third task identifier corresponding to the third interface.
3. The method according to claim 1, characterized in that Before the electronic device displays the first interface of the first application in full screen at the first moment, the method further includes: The electronic device adds the first application information to the application list in chronological order; Before the electronic device displays the second interface of the second application in full screen at the second moment, the method further includes: The electronic device adds the second application information to the application list in chronological order.
4. The method according to claim 1, characterized in that: After the electronic device displays the third interface of the third application through the floating window at the third moment, the method further includes: When the electronic device switches the third interface in the floating window to the third interface displayed in full screen at the seventh moment, the electronic device adds the third application information to the application list, and the seventh moment is later than the sixth moment.
5. The method according to claim 1, characterized in that: After the electronic device displays the third interface of the third application through the floating window at the third moment, the method further includes: The electronic device switches the third interface to the sixth interface of the third application in the floating window at an eighth moment; wherein, at the eighth moment, the application list does not include the third application information, and the eighth moment is later than the sixth moment.
6. The method according to claim 1, characterized in that When the electronic device displays the first interface of the first application in full screen at the first moment, the electronic device displays the third interface through the floating window; wherein, at the first moment, the application list does not include the third application information; and / or, When the electronic device displays the second interface of the second application in full screen at the second moment, the electronic device displays the third interface through the floating window; wherein, at the second moment, the application list does not include the third application information.
7. The method according to claim 1, characterized in that The method further comprises: The electronic device switches the first interface to the interface of the desktop application at a ninth moment, and the ninth moment is later than the first moment and earlier than the second moment; wherein, at the ninth moment, the application list includes the first application information but does not include the application information of the desktop application.
8. The method according to claim 1, characterized in that When the amount of application information in the application list reaches the first threshold at the fourth moment and before the fifth moment, the method further includes: When the number of appearances of the first application information in the application list is equal to a second threshold, and the number of appearances of the second application information in the application list is equal to the second threshold, the electronic device determines that the first application and the second application are frequently switched applications.
9. The method according to claim 1, characterized in that: When the amount of application information in the application list reaches the first threshold at the fourth moment and before the fifth moment, the method further includes: When the number of times the first application information and the second application information in the application list are switched back and forth reaches a third threshold, the electronic device determines that the first application and the second application are frequently switched applications.
10. The method according to claim 1, characterized in that The first application information in the application list is the first application information added by the electronic device at the first moment, and the method further includes: The electronic device displays the first interface of the first application in full screen at a tenth time, and the tenth time is later than the first time; When the difference between the tenth moment and the first moment is less than or equal to the first time, the electronic device adds the first application information to the application list.
11. The method according to claim 10, characterized in that After the electronic device displays the first interface of the first application in full screen at the tenth moment, the method further includes: When the difference between the tenth moment and the first moment is greater than the first time, the electronic device adds the first application information to the application list, and the application information in the application list added before the first time is deleted.
12. The method according to claim 1, characterized in that The split-screen floating window also includes prompt text, and the prompt text is used to instruct the user to turn on the split screen.
13. The method according to claim 1, characterized in that The split-screen floating window floats on one side of the interface.
14. The method according to claim 1, characterized in that When the icon of the first application is located on the left side of the suspension capsule and the icon of the second application is located on the right side of the suspension capsule, the fourth interface is located on the left side of the electronic device screen and the fifth interface is located on the right side of the electronic device screen; or, When the icon of the first application is located on the right side of the floating capsule and the icon of the second application is located on the left side of the floating capsule, the fourth interface is located on the right side of the electronic device screen and the fifth interface is located on the left side of the electronic device screen.
15. The method according to claim 1, characterized in that After the electronic device displays the split-screen floating window at the fifth moment, the method further includes: If it is detected that the user does not click on the floating capsule within a preset time, the floating capsule is automatically closed.
16. The method according to claim 1, characterized in that The electronic device is a foldable screen mobile phone.
17. An electronic device, characterized in that: The electronic device comprises a processor, the processor is coupled to a memory, the memory stores program instructions, and when the program instructions stored in the memory are executed by the processor, the electronic device implements the method according to any one of claims 1 to 16.
18. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed on an electronic device, the electronic device implements the method according to any one of claims 1 to 16.
19. A computer program product, characterized in that When the computer program product is run on a computer, the computer is caused to implement the method according to any one of claims 1 to 16.
Citation Information
Patent Citations
Split-screen processing method and device, storage medium and electronic equipment
CN108549519A
Split-screen display method and device, storage medium and electronic equipment
CN108614655A
Application icon display method and device, electronic equipment and storage medium
CN111381739A
Application interface switching method and device, terminal and storage medium
CN111782332A
Application window display method and electronic equipment
CN111966252A
