CN109240790A - A kind of multi-window management method, system and android terminal - Google Patents

A kind of multi-window management method, system and android terminal Download PDF

Info

Publication number
CN109240790A
CN109240790A CN201811106775.1A CN201811106775A CN109240790A CN 109240790 A CN109240790 A CN 109240790A CN 201811106775 A CN201811106775 A CN 201811106775A CN 109240790 A CN109240790 A CN 109240790A
Authority
CN
China
Prior art keywords
window
duration
focus
less
preset
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.)
Granted
Application number
CN201811106775.1A
Other languages
Chinese (zh)
Other versions
CN109240790B (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

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 field of terminal technology, provides a kind of multi-window management method, system and android terminal, wherein method includes: to obtain the quantity for the window currently having turned on when opening new window, and the window is free window;If the quantity for the window currently having turned on is greater than the first preset quantity, duration of each window as focus in the window currently having turned on is obtained;Exit the window for being less than preset duration as the duration of focus.The embodiment of the present application passes through when opening new window, obtain the quantity for the window currently having turned on, and when the number of windows currently having turned on is excessive, exit the window for being less than preset duration as the duration of focus, to discharge screen space, screen utilization rate is improved, the fluency of multi-window operation is improved, enhance display effect, to promote user experience.

Description

A kind of multi-window management method, system and android terminal
Technical field
The application belongs to field of terminal technology more particularly to a kind of multi-window management method, system and android terminal.
Background technique
Multiwindow is a kind of display scene of the android terminal based on Android (Android) system.Multi-window operation it is fast Fluency in victory, the expressive force of display, the convenience opening and exit and operating process, directly affect user use it is more Window shows experience when scene.
However, for user when using windows display scene, excessive window is shown simultaneously occupies more screen at present Curtain space, screen utilization rate is low, has seriously affected the fluency and poor display effect of multi-window operation, cause user experience compared with Difference.
Summary of the invention
In view of this, the embodiment of the present application provides a kind of multi-window management method, system and android terminal, it is existing to solve There is in technology user when using windows display scene, excessive window is shown simultaneously occupies more screen space, shields Curtain utilization rate is low, has seriously affected the fluency and poor display effect of multi-window operation, has led to the problem that user experience is poor.
The first aspect of the embodiment of the present application provides a kind of multi-window management method comprising:
When opening new window, the quantity for the window currently having turned on is obtained, the window is free window;
If the quantity for the window currently having turned on is greater than the first preset quantity, each window in the window currently having turned on is obtained Duration of the mouth as focus;
Exit the window for being less than preset duration as the duration of focus.
The second aspect of the embodiment of the present application provides a kind of multi-window managing system comprising:
Quantity obtains module, for obtaining the quantity for the window currently having turned on, the window when opening new window For free window;
Duration obtains module, if the quantity of the window for currently having turned on is greater than the first preset quantity, obtains current Duration of each window as focus in the window having turned on;
Module is exited, for exiting the window for being less than preset duration as the duration of focus.
The third aspect of the embodiment of the present application provides a kind of android terminal, including memory, processor and is stored in In the memory and the computer program that can run on the processor, when the processor executes the computer program It realizes such as the step of the above method.
The fourth aspect of the embodiment of the present application provides a kind of computer readable storage medium, the computer-readable storage The step of media storage has computer program, and the above method is realized when the computer program is executed by processor.
The embodiment of the present application by obtaining the quantity for the free window currently having turned on when opening new free window, And when the free number of windows currently having turned on is excessive, the free window for being less than preset duration as the duration of focus is exited, To discharge screen space, screen utilization rate is improved, improves the fluency of multi-window operation, enhances display effect, to promote use Family experience.
Detailed description of the invention
It in order to more clearly explain the technical solutions in the embodiments of the present application, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only some of the application Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these Attached drawing obtains other attached drawings.
Fig. 1 is the schematic diagram at the windows display interface under the FreeForm mode that the embodiment of the present application one provides;
Fig. 2 is the flow diagram for the multi-window management method that the embodiment of the present application one provides;
Fig. 3 is the flow diagram for the multi-window management method that the embodiment of the present application two provides;
Fig. 4~6 are the flow diagrams for the multi-window management method that the embodiment of the present application three provides;
Fig. 7 is the structural schematic diagram for the multi-window managing system that the embodiment of the present application four provides;
Fig. 8 is the structural schematic diagram for the android terminal that the embodiment of the present application five provides.
Specific embodiment
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application Attached drawing, technical solutions in the embodiments of the present application are explicitly described, it is clear that described embodiment is the application one The embodiment divided, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not doing Every other embodiment obtained under the premise of creative work out, shall fall within the protection scope of the present application.
The description and claims of this application and term " includes " and their any deformations in above-mentioned attached drawing, meaning Figure, which is to cover, non-exclusive includes.Such as process, method or system comprising a series of steps or units, product or equipment do not have It is defined in listed step or unit, but optionally further comprising the step of not listing or unit, or optionally also wrap Include the other step or units intrinsic for these process, methods, product or equipment.In addition, term " first ", " second " and " third " etc. is for distinguishing different objects, not for description particular order.
Embodiment one
The present embodiment provides a kind of multi-window management method, it can be applied to arbitrarily have windows display function Android terminal, for example, mobile phone, tablet computer, personal digital assistant, PC (Personal Computer, personal computer) client End etc. can run the terminal device of Android system, can also be applied to the terminal device of non-Android system.
In a particular application, android terminal supports the window of four kinds of modes to show, be respectively full frame, split screen, picture-in-picture and FreeForm mode;Wherein, the window that android terminal is shown under FreeForm mode is FreeForm window, also known as freely The size of window or dynamic window, FreeForm window can be scaled freely and can arbitrarily be dragged.
Fig. 1 illustratively shows the windows display interface under a FreeForm mode.
As shown in Fig. 2, multi-window management method provided by the present embodiment, comprising:
Step S201, when opening new window, the quantity for the window currently having turned on is obtained, the window is free window Mouthful.
In the present embodiment, the quantity for the window currently having turned on does not include the new window currently opened, and is only included in Open the old window having been switched on before new window.
In one embodiment, the window currently having turned on includes being not shown in current display interface in running background Window.
In a particular application, although the window for running on backstage is not shown in current display interface, be not take up screen sky Between, but meeting committed memory space, to influence the fluency of system operation, and then influence the fluency of multi-window operation.
In a particular application, the window currently having turned on may be the window under full frame, split screen or picture-in-picture mode.
If the quantity for window step S202, currently having turned on is greater than first preset quantity, obtains and currently have turned on Duration of each window as focus in window.
In a particular application, the first preset quantity can be configured according to actual needs, the numerical value of the first preset quantity Size and the system performance and/or screen size of present terminal are positively correlated, if the system performance of present terminal is good and/or screen Greatly, then the first preset quantity is bigger, and the quantity for the window that can be opened and show is more.
In a particular application, the numerical values recited of the first preset quantity is also positively correlated with the size for the window currently having turned on, If the size for the window having turned on is smaller, the screen of present terminal can accommodate more windows.
In a particular application, each window refers to each window from start-up time to the time limit at current time as the duration of focus Time duration as focus window.The windows display of Android system is to realize exist based on multiple stack (Stack) scheme Multiple active stacks (ActivityStack).Active stack is an abstract stack, and each stack has the screen area bound of oneself With id (identity number or unique encodings), Activity (activity) is tissue and to be placed on some in a manner of Task (task) In Stack (stack).For example, desktop starter (Launcher), recent taskbar (RecentsActivity) belong to id= In the stack of HOME_STACK;Corresponding two stacks up and down of upper and lower span mode, screen are divided into two parts bound up and down.Entirely It is only had in Android system a focus stack (Focus Stack), a focus activity (Focus Activity), i.e., entire system System only has a focus, a corresponding focus window in synchronization.User operates in which activity, and focus activity just refers to To the activity, focus stack is just directed toward stack belonging to focus activity, i.e. user operates in which window, which window is exactly focus Window.
Step S203, the window for being less than preset duration as the duration of focus is exited.
In the present embodiment, exit specifically refer to it is out of service rather than close window, certain systems close window it Still the window of closing can be being continued to run from the background afterwards, and exit and refer to and stop running immediately, can specifically passed through and stop fortune Row duration is less than application program corresponding to the window of preset duration to realize.
In one embodiment, step S203 includes:
Step S2031, the quantity for being less than the window of preset duration as the duration of focus is obtained;
If the quantity for step S2032, being less than the window of preset duration as the duration of focus is greater than third preset quantity, The window for being less than third preset quantity in the window of preset duration as the duration of focus is exited at random, alternatively, exiting as coke The duration of point is less than the window of the forward third preset quantity of opening time in the window of preset duration;
If the quantity for step S2033, being less than the window of preset duration as the duration of focus is default less than or equal to third Quantity then exits the window for being less than preset duration as the duration of focus and (exits all durations as focus less than default The window of duration).
In a particular application, the quantity for the window of preset duration being less than as the duration of focus is usually 1 or 2 to 3 A equal lesser amts, i.e., when opening new window, in order to keep or improve the fluency of screen utilization rate and multi-window operation, The window for exiting one or partially having turned on can be corresponded to.It is more in the quantity for the window that the duration as focus is less than preset duration When, in order to avoid exiting excessive window, the quantity of the window exited should be limited, all durations as focus is avoided to be less than The window of preset duration is all rejected, and can be exited by random screening or using the opening time as screening conditions come selective A part is less than the window of preset duration as the duration of focus.
In a particular application, third preset quantity can be according to practical need less than the first preset quantity, third preset quantity It is configured, the numerical values recited of third preset quantity and the system performance of present terminal and/or screen size are negatively correlated, if working as The system performance of preceding terminal is good and/or screen is big, then third preset quantity is smaller, i.e., the quantity for the window that need to be exited is fewer.
In a particular application, the numerical values recited of third preset quantity is also negatively correlated with the size for the window currently having turned on, If the size for the window having turned on is smaller, the screen of present terminal can accommodate more windows, the window for needing to exit Quantity can also be reduced accordingly.
In a particular application, when not opening new window, if user wants release screen space, screen utilization rate is improved, is mentioned The fluency of high multi-window operation enhances display effect, can also be exited by above-mentioned multi-window management method as focus Duration is less than the window of preset duration.
In one embodiment, exit as focus duration be less than preset duration window can with equivalence replacement be exit The shortest window of duration as focus.
In a particular application, the quantity that the window of preset duration is less than as the duration of focus may be 0, when as focus Duration be less than preset duration window quantity be 0 when, the shortest window of duration as focus can be exited.
The present embodiment by when opening new free window, obtaining the quantity for the free window currently having turned on, and When the free number of windows currently having turned on is excessive, the free window for being less than preset duration as the duration of focus is exited, to release Screen space is put, screen utilization rate is improved, improves the fluency of multi-window operation, enhances display effect, to promote user's body It tests.
Embodiment two
As shown in figure 3, in the present embodiment, the step S203 in embodiment one includes:
Step S301, the quantity for being less than the window of preset duration as the duration of focus is obtained.
In a particular application, preset duration can be configured according to actual needs, for example, preset duration can be 20 seconds Any number between~30 minutes.When executing step S301 each time, the value of preset duration can be according to current reality Border situation is adjusted, for example, when all windows currently having turned on are all longer as the duration of focus, preset duration can be with Being set as a biggish value, i.e., each window is positively correlated as the duration of focus in preset duration and the window currently having turned on, It can be specifically positively correlated with each window as the desired value or intermediate value (i.e. median) of the duration of focus.
If the quantity for step S302, being less than the window of preset duration as the duration of focus is greater than 0 and is less than or equal to the Two preset quantities, then exit the window for being less than preset duration as the duration of focus, and second preset quantity is less than or equal to First preset quantity.
In a particular application, the second preset quantity is less than or equal to the first preset quantity, and the second preset quantity can basis Actual needs is configured, the numerical values recited of the second preset quantity and the system performance of present terminal and/or screen size negative It closes, if the system performance of present terminal is good and/or screen is big, the second preset quantity is smaller, i.e., the quantity for the window that need to be exited It is fewer.
In a particular application, the numerical values recited of the second preset quantity is also negatively correlated with the size for the window currently having turned on, If the size for the window having turned on is smaller, the screen of present terminal can accommodate more windows, the window for needing to exit Quantity can also be reduced accordingly.
As shown in figure 3, in the present embodiment, after step S301, further includes:
If the quantity for step S303, being less than the window of preset duration as the duration of focus is equal to 0, exit as focus The shortest window of duration.
In a particular application, the quantity that the window of preset duration is less than as the duration of focus may be equal to 0, for example, When all windows having turned on are the first duration as the duration of focus, and preset duration is arranged to the second duration, and When length is greater than or equal to the second duration for the moment, the quantity that just will appear the window for being less than preset duration as the duration of focus is equal to 0 the case where.In this case, in order to guarantee to have window to exit, the shortest window of duration as focus can directly be exited. The present embodiment is by further obtaining conduct on the basis of the quantity for the window currently having turned on is greater than the first preset quantity The duration of focus is less than the quantity of the window of preset duration, and exits the window for being less than preset duration as the duration of focus, can It is less than the window of preset duration as the duration of focus selectively to exit according to the preset duration as focus Mouthful.
Embodiment three
As shown in figure 4, in the present embodiment, including: after the step S103 in embodiment one
Step S401, the exhalation frequency for being less than each window in the window of preset duration as the duration of focus is obtained;
Step S402, it exits and is less than preset duration as the duration of focus and breathes out the window that frequency is less than predeterminated frequency.
In a particular application, the exhalation frequency of window specifically refers to the number or conduct that window is opened within the default section time The number of focus, preset time period can be set according to actual needs as by any time in 20~60 minutes current times Section, for example, by 20 minutes current times, in 30 minutes or in 60 minutes.
In a particular application, it in order to avoid exiting the window that user often needs to use, can preferentially exit as focus Duration be less than the window that exhalation frequency in the window of preset duration is less than predeterminated frequency, retain exhalation frequency be greater than or equal to it is pre- If the window of frequency, to improve user experience.
In a particular application, predeterminated frequency can be configured according to actual needs, for example, 0.1~1 beat/min, 3~ Arbitrary value etc. in 10 times/hour.
In one embodiment, it is based on embodiment two, step S401 includes:
If the quantity that the duration as focus is less than the window of preset duration is greater than the second preset quantity, obtain as coke The duration of point is less than the exhalation frequency of each window in the window of preset duration.
In a particular application, when the quantity for the window for being less than preset duration in the duration as focus is more, in order to avoid Excessive window is exited, the quantity of the window exited should be limited, all durations as focus is avoided to be less than preset duration Window is all rejected, and can be less than each window in the window of preset duration by the duration for further obtaining as focus and be exhaled Frequency out carrys out selective exiting and is less than preset duration as the duration of focus and breathes out the window that frequency is less than predeterminated frequency.
As shown in figure 5, in the present embodiment, the step S103 in embodiment one can also include:
Step S501, it obtains and is less than the memory space that each window occupies in the window of preset duration as the duration of focus;
Step S502, it is empty greater than default storage to exit the memory space for being less than preset duration and occupancy as the duration of focus Between window.
In a particular application, memory space can specifically refer to memory headroom, i.e. the corresponding application program of window runs when institute The internal storage space of the CPU (Central Processing Unit, central processing unit) of occupancy, can also be hard disk or Memory space provided by flash memory.
In a particular application, it to improve system operational speed, avoids window from occupying more memory space, can there is selection Property exit and be less than the window that the memory space that occupies in the window of preset duration is greater than default memory space as the duration of focus Mouthful.
In a particular application, default memory space can be set according to actual needs as arbitrary storage capacity value, for example, Arbitrary value in 10%~50% memory size.
In one embodiment, it is based on embodiment two, step S501 includes:
If the quantity that the duration as focus is less than the window of preset duration is greater than the second preset quantity, obtain as coke The duration of point is less than the memory space that each window occupies in the window of preset duration.
In a particular application, when the quantity for the window for being less than preset duration in the duration as focus is more, in order to avoid Excessive window is exited, the quantity of the window exited should be limited, all durations as focus is avoided to be less than preset duration Window is all rejected, can be by further obtaining the duration as focus less than window occupancy each in the window of preset duration Memory space, carry out selective exit and be less than preset duration as the duration of focus and the memory space occupied is greater than default deposits Store up the window in space.
As shown in fig. 6, in the present embodiment, the step S103 in embodiment one can also include:
Step S601, current network type is detected;
If step S602, current network type is payment networks, obtains and be less than preset duration as the duration of focus Window in the flow that expends of each window;
Step S603, the window greater than preset flow for being less than the flow of preset duration and consuming as the duration of focus is exited Mouthful.
In a particular application, in order to avoid expending more payment flow, mitigate the financial burden of user, can preferentially move back Outflow expends biggish window, to save flow.In a particular application, payment networks specifically include the shifting of the honeycombs such as 3G/4G/5G Dynamic communication network, can also refer to other payment type networks, correspondingly, free nets specifically refer to WiFi, LAN etc. wirelessly or non-wirelessly Broadband communication network or Networks of Fiber Communications.
In a particular application, preset flow can be configured according to actual needs, and present terminal is to be equipped with 3G/4G/ It, can be according to the surplus of present terminal when the terminal of the wireless network card of the SIM card or connection payment type of the mobile communications networks such as 5G Residual current amount, to be correspondingly arranged and adjust the value of preset flow, preset flow can be positively correlated with the residual flow of present terminal.
In one embodiment, it is based on embodiment two, step S601 includes:
If the quantity that the duration as focus is less than the window of preset duration is greater than the second preset quantity, detect currently Network type.
In a particular application, when the quantity for the window for being less than preset duration in the duration as focus is more, in order to avoid Excessive window is exited, the quantity of the window exited should be limited, all durations as focus is avoided to be less than preset duration Window is all rejected, can be by further detecting whether current network type is payment networks and obtains as focus Duration is less than the flow that each window expends in the window of preset duration, and next selective exiting is less than default as the duration of focus The window greater than preset flow of duration and the flow expended.
In one embodiment, the step S103 in embodiment one includes:
Exit as focus duration be less than preset duration and meet exhalation frequency be less than predeterminated frequency window, occupy Memory space is greater than at least two windows of the flow of default memory space and consuming being greater than in preset flow.
In one embodiment, it is based on embodiment two, step S103 includes:
If the quantity that the duration as focus is less than the window of preset duration is greater than the second preset quantity, exit as coke The duration of point, which is less than preset duration and meets exhalation frequency, is greater than default deposit less than the memory space of the window of predeterminated frequency, occupancy Store up at least two windows of the flow of space and consuming being greater than in preset flow.
In a particular application, it can exit while meet small less than preset duration and exhalation frequency as the duration of focus It is greater than at least one be greater than in preset flow of the flow of default memory space or consuming in the memory space of predeterminated frequency, occupancy Kind of window, alternatively, be performed simultaneously exit be less than preset duration as the duration of focus and exhalation frequency be less than predeterminated frequency window, It exits and is greater than default memory space window less than the memory space of preset duration and occupancy as the duration of focus and exits conduct The duration of focus is less than at least two operations in the window greater than preset flow of preset duration and the flow of consuming.
In one embodiment, step S303 includes:
If the quantity that the duration as focus is less than the window of preset duration is equal to 0, when the duration as focus is most short Window meet that exhalation frequency is less than the window of predeterminated frequency, the memory space of occupancy is greater than the stream of default memory space and consuming When at least one being greater than in preset flow of amount, the shortest window of the duration as focus is exited.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present application constitutes any limit It is fixed.
Example IV
The present embodiment provides a kind of multi-window managing systems, for executing the step of the method in one to three any one of embodiment Suddenly, which can be arbitrary the software program system in the android terminal for having windows display function, for example, mobile phone, Tablet computer, personal digital assistant, PC (Personal Computer, personal computer) client etc. can run Android system Terminal device, can be with the software program system in the terminal device of right and wrong Android system.
As shown in fig. 7, multi-window managing system 7 provided in this embodiment includes:
Quantity obtains module 701, described for when opening new window, obtaining the quantity for the window currently having turned on Window is free window;
Duration obtains module 702, if the quantity of the window for currently having turned on is greater than the first preset quantity, acquisition is worked as Before duration of each window as focus in the window that has turned on;
Module 703 is exited, for exiting the window for being less than preset duration as the duration of focus.
In one embodiment, module is exited to be specifically used for:
Obtain the quantity for being less than the window of preset duration as the duration of focus;
If the quantity that the duration as focus is less than the window of preset duration is greater than third preset quantity, work is exited at random It is less than the window of third preset quantity in the window of preset duration for the duration of focus, alternatively, exiting small as the duration of focus The window of opening time forward third preset quantity in the window of preset duration;
If the quantity that the duration as focus is less than the window of preset duration is less than or equal to third preset quantity, exit Duration as focus is less than the window (exiting the window that all durations as focus are less than preset duration) of preset duration.
In one embodiment, module is exited to be specifically used for:
Obtain the quantity for being less than the window of preset duration as the duration of focus;
If the quantity that the duration as focus is less than the window of preset duration is greater than 0 and is less than or equal to the second present count Amount, then exit the window for being less than preset duration as the duration of focus, and the second preset quantity is less than or equal to the first preset quantity;
If as focus duration be less than preset duration window quantity be equal to 0, exit as focus duration most Short window.
In one embodiment, module is exited specifically to be also used to:
Obtain the exhalation frequency for being less than each window in the window of preset duration as the duration of focus;
It exits and is less than preset duration as the duration of focus and breathes out the window that frequency is less than predeterminated frequency.
In one embodiment, module is exited specifically to be also used to:
It obtains and is less than the memory space that each window occupies in the window of preset duration as the duration of focus;
Exit the window for being greater than as the duration of focus less than the memory space of preset duration and occupancy and presetting memory space.
In one embodiment, module is exited specifically to be also used to:
Detect current network type;
If current network type is payment networks, obtains and be less than in the window of preset duration respectively as the duration of focus The flow that window expends;
Exit the window greater than preset flow for being less than the flow of preset duration and consuming as the duration of focus.
In one embodiment, module is exited specifically to be also used to:
If the quantity that the duration as focus is less than the window of preset duration is greater than the second preset quantity, exit as coke The duration of point, which is less than preset duration and meets exhalation frequency, is greater than default deposit less than the memory space of the window of predeterminated frequency, occupancy Store up at least two windows of the flow of space and consuming being greater than in preset flow.
In one embodiment, module is exited specifically to be also used to:
If the quantity that the duration as focus is less than the window of preset duration is equal to 0, when the duration as focus is most short Window meet exhalation frequency be less than predeterminated frequency, the memory space of occupancy be greater than default memory space and consuming flow it is big When at least one in preset flow, the shortest window of the duration as focus is exited.
The present embodiment by when opening new free window, obtaining the quantity for the free window currently having turned on, and When the free number of windows currently having turned on is excessive, the free window for being less than preset duration as the duration of focus is exited, to release Screen space is put, screen utilization rate is improved, improves the fluency of multi-window operation, enhances display effect, to promote user's body It tests.
Embodiment five
As shown in figure 8, one embodiment of the application provides a kind of android terminal 8 comprising: processor 80, memory 81 with And it is stored in the computer program 82 that can be run in the memory 81 and on the processor 80, such as multi-window managing journey Sequence.The processor 80 realizes the step in above-mentioned each multi-window management method embodiment when executing the computer program 82 Such as step S201 to S203 shown in Fig. 2 suddenly,.Alternatively, the processor 80 is realized when executing the computer program 82 The function of each module in each Installation practice is stated, such as the function of module 701 to 703 shown in Fig. 7.
Illustratively, the computer program 82 can be divided into one or more modules, one or more of Module is stored in the memory 81, and is executed by the processor 80, to complete the application.One or more of moulds Block can be the series of computation machine program instruction section that can complete specific function, and the instruction segment is for describing the computer journey Implementation procedure of the sequence 82 in the android terminal 8.For example, the computer program 82 can be divided into, quantity obtains mould Block, duration obtain module, exit module, each module concrete function is as follows:
Quantity obtains module, for obtaining the quantity for the window currently having turned on, the window when opening new window For free window;
Duration obtains module, if the quantity of the window for currently having turned on is greater than the first preset quantity, obtains current Duration of each window as focus in the window having turned on;
Module is exited, for exiting the window for being less than preset duration as the duration of focus.
The android terminal 8 can be the calculating such as desktop PC, notebook, palm PC and cloud server and set It is standby.The android terminal may include, but be not limited only to, processor 80, memory 81.It will be understood by those skilled in the art that Fig. 8 The only example of android terminal 8 does not constitute the restriction to android terminal 8, may include than illustrating more or fewer portions Part perhaps combines certain components or different components, such as the android terminal can also include input-output equipment, net Network access device, bus etc..
Alleged processor 80 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor Deng.
The memory 81 can be the internal storage unit of the android terminal 8, such as the hard disk or interior of android terminal 8 It deposits.The memory 81 is also possible to the External memory equipment of the android terminal 8, such as be equipped in the android terminal 8 Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge Deposit card (Flash Card) etc..Further, the memory 81 can also both include the storage inside list of the android terminal 8 Member also includes External memory equipment.The memory 81 is for storing needed for the computer program and the android terminal Other programs and data.The memory 81 can be also used for temporarily storing the data that has exported or will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing The all or part of function of description.Each functional unit in embodiment, module can integrate in one processing unit, can also To be that each unit physically exists alone, can also be integrated in one unit with two or more units, it is above-mentioned integrated Unit both can take the form of hardware realization, can also realize in the form of software functional units.In addition, each function list Member, the specific name of module are also only for convenience of distinguishing each other, the protection scope being not intended to limit this application.Above system The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed Scope of the present application.
In embodiment provided herein, it should be understood that disclosed system/android terminal and method, it can be with It realizes by another way.For example, system described above/android terminal embodiment is only schematical, for example, institute The division of module or unit is stated, only a kind of logical function partition, there may be another division manner in actual implementation, such as Multiple units or components can be combined or can be integrated into another system, or some features can be ignored or not executed.Separately A bit, shown or discussed mutual coupling or direct-coupling or communication connection can be through some interfaces, device Or the INDIRECT COUPLING or communication connection of unit, it can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated module is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, the application realizes above-described embodiment side All or part of the process in method can also instruct relevant hardware to complete, the computer by computer program Program can be stored in a computer readable storage medium, and the computer program is when being executed by processor, it can be achieved that above-mentioned each The step of a embodiment of the method.Wherein, the computer program includes computer program code, the computer program code It can be source code form, object identification code form, executable file or certain intermediate forms etc..The computer-readable medium can With include: can carry the computer program code any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic disk, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that the computer The content that readable medium includes can carry out increase and decrease appropriate according to the requirement made laws in jurisdiction with patent practice, such as In certain jurisdictions, according to legislation and patent practice, computer-readable medium do not include be electric carrier signal and telecommunications letter Number.
Embodiment described above is only to illustrate the technical solution of the application, rather than its limitations;Although referring to aforementioned reality Example is applied the application is described in detail, those skilled in the art should understand that: it still can be to aforementioned each Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified Or replacement, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution should all Comprising within the scope of protection of this application.

Claims (10)

1. a kind of multi-window management method characterized by comprising
When opening new window, the quantity for the window currently having turned on is obtained, the window is free window;
If the quantity for the window currently having turned on is greater than the first preset quantity, obtains each window in the window currently having turned on and make For the duration of focus;
Exit the window for being less than preset duration as the duration of focus.
2. multi-window management method as described in claim 1, which is characterized in that described exit is less than in advance as the duration of focus If the window of duration, comprising:
Obtain the quantity for being less than the window of preset duration as the duration of focus;
If the quantity that the duration as focus is less than the window of preset duration is greater than 0 and is less than or equal to the second preset quantity, The window for being less than preset duration as the duration of focus is exited, second preset quantity is less than or equal to first present count Amount.
3. multi-window management method as claimed in claim 2, which is characterized in that described obtain is less than in advance as the duration of focus If after the quantity of the window of duration, further includes:
If the quantity that the duration as focus is less than the window of preset duration is equal to 0, exit shortest as the duration of focus Window.
4. multi-window management method as claimed in claim 3, which is characterized in that preset if the duration as focus is less than The quantity of the window of duration is equal to 0, then exits the shortest window of duration as focus, comprising:
If the quantity that the duration as focus is less than the window of preset duration is equal to 0, when the shortest window of duration as focus It is pre- greater than being greater than for the flow for presetting memory space and consuming less than the memory space of predeterminated frequency, occupancy that mouth meets exhalation frequency If exiting the shortest window of the duration as focus when at least one in flow.
5. multi-window management method as described in claim 1, which is characterized in that described exit is less than in advance as the duration of focus If the window of duration, comprising:
The exhalation frequency for being less than each window in the window of preset duration as the duration of focus is obtained, the exhalation frequency refers to window The number that mouth is opened within a preset period of time or the number as focus;
It exits and is less than preset duration as the duration of focus and breathes out the window that frequency is less than predeterminated frequency.
6. multi-window management method as described in claim 1, which is characterized in that described exit is less than in advance as the duration of focus If the window of duration, comprising:
It obtains and is less than the memory space that each window occupies in the window of preset duration as the duration of focus;
Exit the window for being greater than as the duration of focus less than the memory space of preset duration and occupancy and presetting memory space.
7. multi-window management method as described in claim 1, which is characterized in that described exit is less than in advance as the duration of focus If the window of duration, comprising:
Detect current network type;
If current network type is payment networks, obtains and be less than each window in the window of preset duration as the duration of focus The flow of consuming;
Exit the window greater than preset flow for being less than the flow of preset duration and consuming as the duration of focus.
8. a kind of multi-window managing system characterized by comprising
Quantity obtains module, and for when opening new window, obtaining the quantity for the window currently having turned on, the window is certainly By window;
Duration obtains module, if the quantity of the window for currently having turned on is greater than the first preset quantity, acquisition has currently been opened Duration of each window as focus in the window opened;
Module is exited, for exiting the window for being less than preset duration as the duration of focus.
9. a kind of android terminal, including memory, processor and storage are in the memory and can be on the processor The computer program of operation, which is characterized in that the processor realizes such as claim 1 to 7 when executing the computer program The step of any one the method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In when the computer program is executed by processor the step of any one of such as claim 1 to 7 of realization the method.
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 true CN109240790A (en) 2019-01-18
CN109240790B 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)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116196621A (en) * 2023-05-05 2023-06-02 荣耀终端有限公司 Application processing method and related device
WO2024104131A1 (en) * 2022-11-17 2024-05-23 华为技术有限公司 Method for gaining window focus in multi-window scenario, device and system

Citations (6)

* 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
US20180246634A1 (en) * 2017-02-28 2018-08-30 Samsung Electronics Co., Ltd Electronic device and method for managing window

Patent Citations (6)

* 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
US20180246634A1 (en) * 2017-02-28 2018-08-30 Samsung Electronics Co., Ltd Electronic device and method for managing window
CN107800651A (en) * 2017-10-31 2018-03-13 广东欧珀移动通信有限公司 Closing application program method, apparatus, storage medium and electronic equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024104131A1 (en) * 2022-11-17 2024-05-23 华为技术有限公司 Method for gaining window focus in multi-window scenario, device and system
CN116196621A (en) * 2023-05-05 2023-06-02 荣耀终端有限公司 Application processing method and related device
CN116196621B (en) * 2023-05-05 2023-10-03 荣耀终端有限公司 Application processing method and related device

Also Published As

Publication number Publication date
CN109240790B (en) 2022-01-28

Similar Documents

Publication Publication Date Title
CN107295594B (en) Method for switching network, device and mobile terminal
CN109842565A (en) Interface current-limiting method, device, electronic equipment and storage medium
CN109918141B (en) Thread execution method, thread execution device, terminal and storage medium
CN107580071A (en) Master-slave equipment upgrade method, device and its equipment
WO2012152049A2 (en) Method and device for shutting down application
CN107766145B (en) Memory management method and device under dual systems
CN109240791A (en) A kind of application program display methods, application program display device and mobile terminal
CN107404740B (en) Method for switching network, device and the terminal device of safety
CN103782270B (en) The management method of stream processing system and relevant device and system
CN109240790A (en) A kind of multi-window management method, system and android terminal
CN108205475A (en) EMS memory management process, terminal device, computer installation and readable storage medium storing program for executing
CN107832143A (en) A kind for the treatment of method and apparatus of physical machine resource
CN109147788A (en) Local voice library updating method and device
CN107547317A (en) Virtualize control method, device and the communication system of BAS Broadband Access Server
CN106201596B (en) A kind of method, apparatus and terminal for forbidding third-party application to automatically update
CN109117241A (en) A kind of display direction control method, system and mobile terminal
CN107844406A (en) Method for detecting abnormality and system, service terminal, the memory of distributed system
CN109977687A (en) Data sharing method, device, system and readable storage medium storing program for executing based on block chain
CN109840141A (en) Thread control method, device, electronic equipment and storage medium based on cloud monitoring
CN104348852B (en) A kind of method, apparatus and system for realizing telecommunication capability mass-sending
CN109697090A (en) A kind of method, terminal device and the storage medium of controlling terminal equipment
CN109800261A (en) Dynamic control method, device and the relevant device of double data library connection pool
CN115033352A (en) Task scheduling method, device and equipment for multi-core processor and storage medium
CN109257255A (en) Traffic monitoring method, telephone watch, server and mobile terminal
CN105517179A (en) Wireless resource scheduling method and scheduler

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