CN109240790B - Multi-window management method and system and android terminal - Google Patents

Multi-window management method and system and android terminal Download PDF

Info

Publication number
CN109240790B
CN109240790B CN201811106775.1A CN201811106775A CN109240790B CN 109240790 B CN109240790 B CN 109240790B CN 201811106775 A CN201811106775 A CN 201811106775A CN 109240790 B CN109240790 B CN 109240790B
Authority
CN
China
Prior art keywords
window
preset
time length
windows
focus
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811106775.1A
Other languages
Chinese (zh)
Other versions
CN109240790A (en
Inventor
付亮晶
林志泳
李同喜
敬雷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201811106775.1A priority Critical patent/CN109240790B/en
Publication of CN109240790A publication Critical patent/CN109240790A/en
Application granted granted Critical
Publication of CN109240790B publication Critical patent/CN109240790B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application is suitable for the technical field of terminals, and provides a multi-window management method, a multi-window management system and an android terminal, wherein the method comprises the following steps: when a new window is opened, acquiring the number of the currently opened windows, wherein the windows are free windows; if the number of the currently opened windows is larger than a first preset number, acquiring the duration of each window in the currently opened windows as a focus; and exiting the window with the focus duration being less than the preset duration. According to the method and the device, when the new window is opened, the number of the windows which are opened at present is obtained, and when the number of the windows which are opened at present is too large, the windows which are used as focuses and have the duration less than the preset duration exit, so that the screen space is released, the screen utilization rate is improved, the smoothness of multi-window operation is improved, the display effect is enhanced, and the user experience is improved.

Description

Multi-window management method and system and android terminal
Technical Field
The application belongs to the technical field of terminals, and particularly relates to a multi-window management method and system and an android terminal.
Background
The multi-window is a display scene of an Android terminal based on an Android (Android) system. The rapidity of multi-window operation, the expressive force of display, the convenience of opening and exiting and the fluency in the operation process directly influence the experience of a user when the user uses a multi-window display scene.
However, when a user uses a multi-window display scene at present, too many windows simultaneously display a large amount of screen space, the screen utilization rate is low, fluency of multi-window operation is seriously affected, the display effect is poor, and user experience is poor.
Disclosure of Invention
In view of this, embodiments of the present application provide a multi-window management method, a multi-window management system, and an android terminal, so as to solve the problems in the prior art that when a user uses a multi-window display scene, too many windows occupy more screen space for simultaneous display, the screen utilization rate is low, the smoothness of multi-window operation is seriously affected, the display effect is poor, and the user experience is poor.
A first aspect of an embodiment of the present application provides a multi-window management method, including:
when a new window is opened, acquiring the number of the currently opened windows, wherein the windows are free windows;
if the number of the currently opened windows is larger than a first preset number, acquiring the duration of each window in the currently opened windows as a focus;
and exiting the window with the focus duration being less than the preset duration.
A second aspect of an embodiment of the present application provides a multi-window management system, including:
the device comprises a quantity obtaining module, a quantity obtaining module and a quantity judging module, wherein the quantity obtaining module is used for obtaining the quantity of the currently opened windows when a new window is opened, and the windows are free windows;
the time length obtaining module is used for obtaining the time length of each window in the currently opened windows as a focus if the number of the currently opened windows is larger than a first preset number;
and the exit module is used for exiting the window with the focus duration being less than the preset duration.
A third aspect of the embodiments of the present application provides an android terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the method when executing the computer program.
A fourth aspect of embodiments of the present application provides a computer-readable storage medium, which stores a computer program that, when executed by a processor, implements the steps of the above-described method.
According to the method and the device, when the new free window is opened, the number of the free windows which are opened at present is obtained, and when the number of the free windows which are opened at present is too large, the free windows which are used as focuses and have the duration less than the preset duration exit, so that the screen space is released, the screen utilization rate is improved, the fluency of multi-window operation is improved, the display effect is enhanced, and the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
FIG. 1 is a schematic diagram of a multi-window display interface in a FreeForm mode according to an embodiment of the present disclosure;
FIG. 2 is a flowchart illustrating a multi-window management method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of a multi-window management method according to a second embodiment of the present application;
FIGS. 4 to 6 are schematic flow charts of a multi-window management method according to a third embodiment of the present application;
FIG. 7 is a schematic structural diagram of a multi-window management system according to a fourth embodiment of the present application;
fig. 8 is a schematic structural diagram of an android terminal provided in the fifth embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "comprises" and "comprising," and any variations thereof, in the description and claims of this application and the drawings described above, are intended to cover non-exclusive inclusions. For example, a process, method, or system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus. Furthermore, the terms "first," "second," and "third," etc. are used to distinguish between different objects and are not used to describe a particular order.
Example one
The present embodiment provides a multi-window management method, which can be applied to any android terminal with a multi-window display function, for example, a mobile phone, a tablet Computer, a Personal digital assistant, a Personal Computer (PC) client, and other terminal devices capable of operating an android system, and can also be applied to terminal devices of a non-android system.
In specific application, the android terminal supports window display in four modes, namely a full screen mode, a split screen mode, a picture-in-picture mode and a Freeform mode; the windows displayed by the android terminal in the Freeform mode are Freeform windows, also called free windows or dynamic windows, and the size of the Freeform windows can be freely zoomed and dragged.
FIG. 1 illustrates an exemplary multi-window display interface in FreeForm mode.
As shown in fig. 2, the multi-window management method provided in this embodiment includes:
step S201, when a new window is opened, acquiring the number of the currently opened windows, wherein the windows are free windows.
In the present embodiment, the number of windows that have been currently opened does not include a new window that has been currently opened, but only includes an old window that has been opened before the new window is opened.
In one embodiment, the currently opened windows include windows that are running in the background that are not displayed on the current display interface.
In specific application, although a window running in the background is not displayed on the current display interface and does not occupy the screen space, the window can occupy the memory space, so that the running smoothness of the system is influenced, and the smoothness of multi-window operation is further influenced.
In a specific application, the currently opened window may also be a window in a full-screen, split-screen, or picture-in-picture mode.
Step S202, if the number of the currently opened windows is larger than a first preset number, acquiring the duration of each window in the currently opened windows as a focus.
In a specific application, the first preset number can be set according to actual needs, the numerical value of the first preset number is positively correlated with the system performance and/or the screen size of the current terminal, and if the system performance and/or the screen size of the current terminal are good, the larger the first preset number is, the larger the number of windows that can be opened and displayed is.
In a specific application, the numerical value of the first preset number is positively correlated with the size of the currently opened window, and if the size of the currently opened window is smaller, the current terminal screen can accommodate more windows.
In a specific application, the time length of each window as the focus refers to the time limit of each window from the opening time to the current time as the accumulated time length of the focus window. The multi-window display of the android system is implemented based on a multi-Stack (Stack) scheme, i.e., there are multiple active stacks (ActivityStack). The Activity Stack is an abstract Stack, each Stack has its own screen area bound and id (identification number or unique code), and the Activity is organized in a Task mode and placed in a certain Stack. For example, a Launcher desktop (Launcher) and a recent task bar (recentactivity) belong to a STACK with id ═ HOME _ STACK; the upper and lower split screen mode corresponds to an upper stack and a lower stack, and the screen is divided into an upper part and a lower part bound. The whole android system only has one Focus Stack (Focus Stack) and one Focus Activity (Focus Activity), namely the whole system only has one Focus at the same time, which corresponds to one Focus window. In which activity the user operates, the focus activity points to the activity, and the focus stack points to the stack to which the focus activity belongs, i.e. in which window the user operates, which window is the focus window.
And step S203, exiting the window with the focus duration less than the preset duration.
In this embodiment, exiting specifically refers to stopping running instead of closing a window, some systems still continue to run the closed window in the background after the window is closed, and exiting refers to immediately stopping running, and may be specifically realized by stopping an application program corresponding to the window whose running duration is less than the preset duration.
In one embodiment, step S203 comprises:
step S2031, acquiring the number of windows with the time length as the focus being less than the preset time length;
step S2032, if the number of the windows with the focal length shorter than the preset length is larger than a third preset number, randomly quitting the windows with the focal length shorter than the preset length, or quitting the windows with the third preset number before the starting time in the windows with the focal length shorter than the preset length;
step S2033, if the number of the windows with the focal length shorter than the preset length is less than or equal to the third preset number, exiting the window with the focal length shorter than the preset length (i.e. exiting all the windows with the focal length shorter than the preset length).
In a specific application, the number of windows with the focal length shorter than the preset length is usually 1 or 2 to 3, and other small numbers, that is, when a new window is opened, in order to maintain or improve the screen utilization rate and the fluency of multi-window operation, one or a part of the opened windows are correspondingly exited. When the number of windows with the focal length shorter than the preset length is large, the number of windows to be exited should be limited to avoid that all windows with the focal length shorter than the preset length are exited, and a part of windows with the focal length shorter than the preset length can be selectively exited by random screening or with the opening time as a screening condition, in order to avoid exiting too many windows.
In a specific application, the third preset number is smaller than the first preset number, the third preset number can be set according to actual needs, the numerical value of the third preset number is inversely related to the system performance and/or the screen size of the current terminal, and if the system performance and/or the screen size of the current terminal is good, the smaller the third preset number is, that is, the smaller the number of windows to be exited is.
In a specific application, the numerical value of the third preset number is also negatively related to the size of the currently opened window, if the size of the opened window is smaller, the current terminal screen can accommodate more windows, and the number of windows needing to exit can be correspondingly reduced.
In a specific application, when a new window is not opened, if a user wants to release a screen space, the screen utilization rate is improved, the fluency of multi-window operation is improved, the display effect is enhanced, and a window with the focus time length being less than the preset time length can also be exited by the multi-window management method.
In one embodiment, the window exiting as the focus for a duration less than the preset duration may be equivalently replaced by the window exiting as the focus for a duration that is the shortest.
In a specific application, the number of windows with the time length less than the preset time length as the focal point may be 0, and when the number of windows with the time length less than the preset time length as the focal point is 0, the window with the shortest time length as the focal point may be exited.
In the embodiment, when a new free window is opened, the number of the free windows which are opened currently is acquired, and when the number of the free windows which are opened currently is too large, the free windows which are used as focuses and have the duration less than the preset duration exit, so that the screen space is released, the screen utilization rate is improved, the fluency of multi-window operation is improved, the display effect is enhanced, and the user experience is improved.
Example two
As shown in fig. 3, in the present embodiment, step S203 in the first embodiment includes:
step S301, acquiring the number of windows with the time length of the focus being less than the preset time length.
In a specific application, the preset time period may be set according to actual needs, for example, the preset time period may be any value between 20 seconds and 30 minutes. Each time step S301 is executed, the value of the preset duration may be adjusted according to the current actual situation, for example, when the durations of all currently opened windows as the focal points are long, the preset duration may be set to a larger value, that is, the preset duration is positively correlated with the duration of each window in the currently opened windows as the focal point, and specifically may be positively correlated with an expected value or a median (that is, a median) of the durations of each window as the focal point.
Step S302, if the number of the windows with the focal length shorter than the preset length of time is greater than 0 and less than or equal to a second preset number, exiting the window with the focal length shorter than the preset length of time, wherein the second preset number is less than or equal to the first preset number.
In a specific application, the second preset number is smaller than or equal to the first preset number, the second preset number can be set according to actual needs, the numerical value of the second preset number is inversely related to the system performance and/or the screen size of the current terminal, and if the system performance and/or the screen size of the current terminal are good, the smaller the second preset number is, the smaller the number of windows to be exited is.
In a specific application, the numerical value of the second preset number is also negatively related to the size of the currently opened window, if the size of the opened window is smaller, the current terminal screen can accommodate more windows, and the number of windows needing to exit can be correspondingly reduced.
As shown in fig. 3, in this embodiment, after step S301, the method further includes:
step S303, if the number of windows with the time length as the focus being less than the preset time length is equal to 0, exiting the window with the shortest time length as the focus.
In a specific application, the number of windows with the time length as the focus being less than the preset time length may be equal to 0, for example, when all the opened windows have the time length as the focus being the first time length, the preset time length is set as the second time length, and the first time length is greater than or equal to the second time length, the number of windows with the time length as the focus being less than the preset time length may be equal to 0. In this case, in order to ensure that a window exits, the window having the shortest duration as the focus may be directly exited. In this embodiment, on the basis that the number of currently opened windows is greater than the first preset number, the number of windows with the time length as the focus being less than the preset time length is further obtained, and the window with the time length as the focus being less than the preset time length is exited, so that the window with the time length as the focus being less than the preset time length can be selectively exited according to the preset time length as the focus.
EXAMPLE III
As shown in fig. 4, in the present embodiment, step S103 in the first embodiment includes:
s401, acquiring the calling frequency of each window in the window with the focus length less than the preset length;
and S402, exiting the window with the focal length less than the preset length and the calling frequency less than the preset frequency.
In a specific application, the exhalation frequency of the window specifically refers to the number of times that the window is opened within a preset period of time or the number of times that the window is taken as a focus, and the preset period of time may be set to any period of time within 20 to 60 minutes of the current time according to actual needs, for example, within 20 minutes, within 30 minutes, or within 60 minutes of the current time.
In a specific application, in order to avoid exiting a window which is frequently used by a user, a window with an exhalation frequency less than a preset frequency in a window with a time length less than a preset time length as a focus can be preferentially exited, and the window with the exhalation frequency greater than or equal to the preset frequency is reserved, so that the user experience is improved.
In specific application, the preset frequency can be set according to actual needs, for example, any value of 0.1-1 times/minute and 3-10 times/hour.
In one embodiment, based on the second embodiment, step S401 includes:
and if the number of the windows with the time length as the focus being less than the preset time length is greater than a second preset number, acquiring the exhalation frequency of each window in the windows with the time length as the focus being less than the preset time length.
In a specific application, when the number of windows with the focal length shorter than the preset length is large, in order to avoid exiting too many windows, the number of the exiting windows should be limited, and all windows with the focal length shorter than the preset length are prevented from exiting, and the windows with the focal length shorter than the preset length and the exhalation frequency shorter than the preset frequency can be selectively exited by further acquiring the exhalation frequency of each window in the windows with the focal length shorter than the preset length.
As shown in fig. 5, in this embodiment, step S103 in the first embodiment may further include:
step S501, acquiring a storage space occupied by each window in windows with the time length as a focus being less than a preset time length;
step S502, exiting the window which is used as the focus, wherein the time length of the window is less than the preset time length and the occupied storage space is more than the preset storage space.
In a specific application, the storage space may specifically refer to a memory space, that is, an internal storage space of a Central Processing Unit (CPU) occupied by an application program corresponding to a window during running, and may also be a storage space provided by a hard disk or a flash memory.
In specific application, in order to improve the system operation speed and avoid the windows occupying more storage space, the windows which occupy storage space larger than the preset storage space in the windows with the focal length shorter than the preset time length can be selectively exited.
In a specific application, the preset storage space may be set to any storage capacity value according to actual needs, for example, any value in 10% to 50% of the memory capacity.
In one embodiment, based on the second embodiment, the step S501 includes:
and if the number of the windows with the time length less than the preset time length as the focus is greater than a second preset number, acquiring the storage space occupied by each window in the windows with the time length less than the preset time length as the focus.
In a specific application, when the number of windows with the time length as the focus being less than the preset time length is large, in order to avoid exiting too many windows, the number of the exiting windows should be limited, and all windows with the time length as the focus being less than the preset time length are prevented from exiting, and the windows with the time length as the focus being less than the preset time length and the occupied storage space being more than the preset storage space can be selectively exited by further acquiring the storage space occupied by each window in the windows with the time length as the focus being less than the preset time length.
As shown in fig. 6, in this embodiment, step S103 in the first embodiment may further include:
step S601, detecting the current network type;
step S602, if the current network type is a payment network, acquiring the flow consumed by each window in the window with the time length as the focus being less than the preset time length;
step S603, exiting the window whose focal length is less than the preset length and consumed flow is greater than the preset flow.
In a specific application, in order to avoid consuming more payment traffic and reduce the economic burden of a user, a window with higher traffic consumption can be quitted preferentially so as to save traffic. In a specific application, the payment network specifically includes a cellular mobile communication network such as 3G/4G/5G, and may also refer to other payment type networks, and correspondingly, the free network specifically refers to a wireless or wired broadband communication network such as WiFi, LAN, and the like, or an optical fiber communication network.
In specific application, the preset flow can be set according to actual needs, when the current terminal is a terminal provided with an SIM card of a mobile communication network such as 3G/4G/5G or a wireless network card connected with a payment type, a value of the preset flow can be correspondingly set and adjusted according to the remaining flow of the current terminal, and the preset flow can be positively correlated with the remaining flow of the current terminal.
In one embodiment, based on the second embodiment, step S601 includes:
and if the number of the windows with the time length which is used as the focus and is less than the preset time length is greater than a second preset number, detecting the current network type.
In a specific application, when the number of windows with the focal length shorter than the preset length is large, in order to avoid exiting too many windows, the number of the exiting windows should be limited, and all windows with the focal length shorter than the preset length are prevented from exiting, and it is possible to selectively exit the window with the focal length shorter than the preset length and the consumed flow greater than the preset flow by further detecting whether the current network type is a paid network and acquiring the flow consumed by each window in the window with the focal length shorter than the preset length.
In one embodiment, step S103 in the first embodiment includes:
and the time length of exiting as the focus is less than the preset time length and meets the condition that the exhalation frequency is less than the preset frequency, the occupied storage space is more than the preset storage space, and at least two windows of the consumed flow which is more than the preset flow are provided.
In one embodiment, based on the second embodiment, step S103 includes:
if the number of the windows with the time length as the focus being less than the preset time length is greater than the second preset number, exiting the window with the time length as the focus being less than the preset time length and meeting the requirement that the exhalation frequency is less than the preset frequency, occupying at least two windows with the storage space being greater than the preset storage space and the consumed flow being greater than the preset flow.
In a specific application, at least one window which simultaneously satisfies that the time length as the focus is less than the preset time length, the exhalation frequency is less than the preset frequency, the occupied storage space is greater than the preset storage space or the consumed flow is greater than the preset flow can be exited, or at least two operations of exiting the window which satisfies that the time length as the focus is less than the preset time length and the exhalation frequency is less than the preset frequency window, the time length as the focus is less than the preset time length and the occupied storage space is greater than the preset storage space window, and exiting the window which satisfies that the time length as the focus is less than the preset time length and the consumed flow is greater than the preset flow can be simultaneously executed.
In one embodiment, step S303 includes:
if the number of the windows with the time length as the focus being less than the preset time length is equal to 0, when the window with the shortest time length as the focus meets at least one of the window with the calling frequency being less than the preset frequency, the occupied storage space being more than the preset storage space and the consumed flow being more than the preset flow, exiting the window with the shortest time length as the focus.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Example four
The present embodiment provides a multi-window management system, configured to execute the method steps in any one of the first to third embodiments, where the system may be a software program system in any android terminal with a multi-window display function, for example, a terminal device capable of running an android system, such as a mobile phone, a tablet Computer, a Personal digital assistant, and a PC (Personal Computer) client, and may also be a software program system in a terminal device that is not an android system.
As shown in fig. 7, the multi-window management system 7 provided in the present embodiment includes:
a number obtaining module 701, configured to obtain the number of currently opened windows when a new window is opened, where the window is a free window;
a duration obtaining module 702, configured to obtain a duration in which each window in currently opened windows is used as a focus if the number of currently opened windows is greater than a first preset number;
and an exit module 703, configured to exit the window with the duration being less than the preset duration as the focus.
In one embodiment, the exit module is specifically configured to:
acquiring the number of windows with the time length which is used as a focus and is less than the preset time length;
if the number of the windows with the focal length shorter than the preset length of time is larger than a third preset number, randomly quitting the windows with the focal length shorter than the preset length of time with the third preset number in the windows with the focal length shorter than the preset length of time, or quitting the windows with the focal length shorter than the preset length of time with the third preset number before the starting time in the windows with the focal length shorter than the preset length of time;
if the number of the windows with the time length as the focus being less than the preset time length is less than or equal to a third preset number, exiting the windows with the time length as the focus being less than the preset time length (namely exiting all the windows with the time length as the focus being less than the preset time length).
In one embodiment, the exit module is specifically configured to:
acquiring the number of windows with the time length which is used as a focus and is less than the preset time length;
if the number of the windows with the time length as the focus being less than the preset time length is more than 0 and less than or equal to a second preset number, quitting the windows with the time length as the focus being less than the preset time length, wherein the second preset number is less than or equal to the first preset number;
and if the number of the windows with the time length as the focus being less than the preset time length is equal to 0, exiting the window with the shortest time length as the focus.
In one embodiment, the exit module is further specifically configured to:
acquiring the calling frequency of each window in the window with the time length which is used as the focus being less than the preset time length;
and exiting the window with the time length as the focus being less than the preset time length and the exhalation frequency being less than the preset frequency.
In one embodiment, the exit module is further specifically configured to:
acquiring a storage space occupied by each window in windows with the time length smaller than a preset time length as a focus;
and exiting the window which is used as the focus, wherein the time length of the window is less than the preset time length, and the occupied storage space is more than the preset storage space.
In one embodiment, the exit module is further specifically configured to:
detecting a current network type;
if the current network type is a paid network, acquiring the flow consumed by each window in the window with the time length as the focus being less than the preset time length;
and exiting the window which is used as the focus, wherein the time length of the window is less than the preset time length, and the consumed flow is greater than the preset flow.
In one embodiment, the exit module is further specifically configured to:
if the number of the windows with the time length as the focus being less than the preset time length is greater than the second preset number, exiting the window with the time length as the focus being less than the preset time length and meeting the requirement that the exhalation frequency is less than the preset frequency, occupying at least two windows with the storage space being greater than the preset storage space and the consumed flow being greater than the preset flow.
In one embodiment, the exit module is further specifically configured to:
if the number of the windows with the time length as the focus being less than the preset time length is equal to 0, when the window with the shortest time length as the focus meets at least one of the conditions that the calling frequency is less than the preset frequency, the occupied storage space is greater than the preset storage space and the consumed flow is greater than the preset flow, exiting the window with the shortest time length as the focus.
In the embodiment, when a new free window is opened, the number of the free windows which are opened currently is acquired, and when the number of the free windows which are opened currently is too large, the free windows which are used as focuses and have the duration less than the preset duration exit, so that the screen space is released, the screen utilization rate is improved, the fluency of multi-window operation is improved, the display effect is enhanced, and the user experience is improved.
EXAMPLE five
As shown in fig. 8, an embodiment of the present application provides an android terminal 8, which includes: a processor 80, a memory 81, and a computer program 82, such as a multi-window management program, stored in the memory 81 and operable on the processor 80. The processor 80, when executing the computer program 82, implements the steps in the various embodiments of the multi-window management method described above, such as the steps S201 to S203 shown in fig. 2. Alternatively, the processor 80 implements the functions of the modules in the device embodiments described above, for example, the functions of the modules 701 to 703 shown in fig. 7, when executing the computer program 82.
Illustratively, the computer program 82 may be partitioned into one or more modules that are stored in the memory 81 and executed by the processor 80 to accomplish the present application. The one or more modules may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program 82 in the android terminal 8. For example, the computer program 82 may be divided into a number obtaining module, a duration obtaining module, and an exit module, and the specific functions of the modules are as follows:
the device comprises a quantity obtaining module, a quantity obtaining module and a quantity judging module, wherein the quantity obtaining module is used for obtaining the quantity of the currently opened windows when a new window is opened, and the windows are free windows;
the time length obtaining module is used for obtaining the time length of each window in the currently opened windows as a focus if the number of the currently opened windows is larger than a first preset number;
and the exit module is used for exiting the window with the focus duration being less than the preset duration.
The android terminal 8 can be a desktop computer, a notebook, a palm computer, a cloud server and other computing devices. The android terminal may include, but is not limited to, a processor 80, a memory 81. Those skilled in the art will appreciate that fig. 8 is merely an example of the android terminal 8, and does not constitute a limitation of the android terminal 8, and may include more or less components than those shown, or combine some of the components, or different components, for example, the android terminal may further include an input-output device, a network access device, a bus, etc.
The Processor 80 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 81 may be an internal storage unit of the android terminal 8, for example, a hard disk or a memory of the android terminal 8. The memory 81 may also be an external storage device of the android terminal 8, such as a plug-in hard disk equipped on the android terminal 8, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like. Further, the memory 81 may also include both an internal storage unit and an external storage device of the android terminal 8. The memory 81 is used for storing the computer program and other programs and data required by the android terminal. The memory 81 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed system/android terminal and method may be implemented in other manners. For example, the above-described system/android terminal embodiments are merely illustrative, and for example, the division of the modules or units is only one logical function division, and there may be other division manners in actual implementation, for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated module, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by a computer program, which can be stored in a computer-readable storage medium and can realize the steps of the embodiments of the methods described above when the computer program is executed by a processor. . Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media which may not include electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (9)

1. A multi-window management method, comprising:
when a new window is opened in a FreeForm mode, acquiring the number of the currently opened windows, wherein the windows are free windows, and the opened windows comprise windows which run in a background and are not displayed on a current display interface;
if the number of the currently opened windows is larger than a first preset number, acquiring the duration of each window in the currently opened windows as a focus, wherein the numerical value of the first preset number is positively correlated with the system performance and/or the screen size of the current terminal;
exiting the window with the focus duration being less than the preset duration, wherein the exiting is to stop running but not to close the window;
wherein, the exiting as the window with the focus duration less than the preset duration comprises:
detecting a current network type;
if the current network type is a paid network, acquiring the flow consumed by each window in the window with the time length as the focus being less than the preset time length;
and exiting the window which is used as the focus, wherein the time length of the window is less than the preset time length, and the consumed flow is greater than the preset flow.
2. The multi-window management method of claim 1, wherein exiting a window having a duration of focus less than a preset duration comprises:
acquiring the number of windows with the time length which is used as a focus and is less than the preset time length;
if the number of the windows with the time length as the focus being less than the preset time length is greater than 0 and less than or equal to a second preset number, the windows with the time length as the focus being less than the preset time length are quitted, and the second preset number is less than or equal to the first preset number.
3. The multi-window management method according to claim 2, wherein after obtaining the number of windows having a duration less than a preset duration as a focus, further comprising:
and if the number of the windows with the time length as the focus being less than the preset time length is equal to 0, exiting the window with the shortest time length as the focus.
4. The multi-window management method according to claim 3, wherein if the number of windows having a time length as a focus smaller than a preset time length is equal to 0, exiting the window having the shortest time length as a focus comprises:
if the number of the windows with the time length as the focus being less than the preset time length is equal to 0, when the window with the shortest time length as the focus meets at least one of the conditions that the calling frequency is less than the preset frequency, the occupied storage space is greater than the preset storage space and the consumed flow is greater than the preset flow, exiting the window with the shortest time length as the focus.
5. The multi-window management method of claim 1, wherein exiting a window having a duration of focus less than a preset duration comprises:
acquiring the calling frequency of each window in the window with the time length as the focus being less than the preset time length, wherein the calling frequency refers to the number of times that the window is opened within a preset time period or the number of times as the focus;
and exiting the window with the time length as the focus being less than the preset time length and the exhalation frequency being less than the preset frequency.
6. The multi-window management method of claim 1, wherein exiting a window having a duration of focus less than a preset duration comprises:
acquiring a storage space occupied by each window in windows with the time length smaller than a preset time length as a focus;
and exiting the window which is used as the focus, wherein the time length of the window is less than the preset time length, and the occupied storage space is more than the preset storage space.
7. A multi-window management system, comprising:
the device comprises a quantity obtaining module, a display module and a display module, wherein the quantity obtaining module is used for obtaining the quantity of currently opened windows when a new window is opened in a FreeForm mode, the windows are free windows, and the opened windows comprise windows which run in a background and are not displayed on a current display interface;
the time length obtaining module is used for obtaining the time length of each window in the currently opened windows as a focus if the number of the currently opened windows is larger than a first preset number, wherein the numerical value of the first preset number is positively correlated with the system performance and/or the screen size of the current terminal;
the exit module is used for exiting the window with the focus duration being less than the preset duration, wherein the exit is to stop running but not to close the window;
the exit module is specifically further configured to: detecting a current network type;
if the current network type is a paid network, acquiring the flow consumed by each window in the window with the time length as the focus being less than the preset time length;
and exiting the window which is used as the focus, wherein the time length of the window is less than the preset time length, and the consumed flow is greater than the preset flow.
8. An android terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 6 when executing the computer program.
9. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 6.
CN201811106775.1A 2018-09-21 2018-09-21 Multi-window management method and system and android terminal Active CN109240790B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811106775.1A CN109240790B (en) 2018-09-21 2018-09-21 Multi-window management method and system and android terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811106775.1A CN109240790B (en) 2018-09-21 2018-09-21 Multi-window management method and system and android terminal

Publications (2)

Publication Number Publication Date
CN109240790A CN109240790A (en) 2019-01-18
CN109240790B true CN109240790B (en) 2022-01-28

Family

ID=65056516

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811106775.1A Active CN109240790B (en) 2018-09-21 2018-09-21 Multi-window management method and system and android terminal

Country Status (1)

Country Link
CN (1) CN109240790B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116196621B (en) * 2023-05-05 2023-10-03 荣耀终端有限公司 Application processing method and related device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102118322A (en) * 2009-12-30 2011-07-06 蒋斌 Method for automatically controlling number of chat windows in chat tool
CN102591718A (en) * 2012-02-06 2012-07-18 中标软件有限公司 Touch screen intelligent terminal and multitask window management method for same
CN104571801A (en) * 2013-10-28 2015-04-29 联想(北京)有限公司 Information processing method and electronic equipment
CN106201157A (en) * 2015-05-05 2016-12-07 阿里巴巴集团控股有限公司 The application control method of window, device
CN107800651A (en) * 2017-10-31 2018-03-13 广东欧珀移动通信有限公司 Closing application program method, apparatus, storage medium and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102303420B1 (en) * 2017-02-28 2021-09-23 삼성전자주식회사 Electronic device and method for managing window

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102118322A (en) * 2009-12-30 2011-07-06 蒋斌 Method for automatically controlling number of chat windows in chat tool
CN102591718A (en) * 2012-02-06 2012-07-18 中标软件有限公司 Touch screen intelligent terminal and multitask window management method for same
CN104571801A (en) * 2013-10-28 2015-04-29 联想(北京)有限公司 Information processing method and electronic equipment
CN106201157A (en) * 2015-05-05 2016-12-07 阿里巴巴集团控股有限公司 The application control method of window, device
CN107800651A (en) * 2017-10-31 2018-03-13 广东欧珀移动通信有限公司 Closing application program method, apparatus, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN109240790A (en) 2019-01-18

Similar Documents

Publication Publication Date Title
CN108647089B (en) Resource allocation method, device, terminal and storage medium
CN107547746B (en) Resource allocation method and related product
CN109542614B (en) Resource allocation method, device, terminal and storage medium
CN110704202B (en) Multimedia recording data sharing method and terminal equipment
CN111177025B (en) Data storage method and device and terminal equipment
CN104615229A (en) System and method of monitoring a central processing unit in real time
CN104967758A (en) Data transmission control method and user terminal
CN108572866B (en) Application program management method, application program management device and mobile terminal
CN107659509B (en) Application flow use control method and device, readable storage medium and terminal equipment
CN110913450B (en) Control method and device for mobile hotspot, mobile terminal and storage medium
CN110868693A (en) Application program flow control method, terminal device and storage medium
CN115033352A (en) Task scheduling method, device and equipment for multi-core processor and storage medium
CN111104178A (en) Dynamic library loading method, terminal device and storage medium
CN111132132A (en) Traffic management method and device and terminal equipment
CN109240790B (en) Multi-window management method and system and android terminal
CN108777810B (en) Video data storage method, device, equipment and storage medium
CN107872533B (en) Information-pushing method, device, server and storage medium
CN109257806B (en) Carrier aggregation mode setting method for communication terminal, communication terminal and medium
CN112715040B (en) Method for reducing power consumption, terminal equipment and storage medium
CN111143066A (en) Event processing method, device, equipment and storage medium
US10382630B2 (en) Telecommunication service subscription integration system
CN107979529B (en) Information processing method, information processing apparatus, computer apparatus, and computer-readable storage medium
CN107292142B (en) Business operation processing method, business operation processing device and business terminal
CN104954287A (en) Internet speed limiting method and mobile terminal
CN110888733A (en) Cluster resource use condition processing method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant