WO2013082886A1 - Method and terminal for displaying application in multiple windows - Google Patents

Method and terminal for displaying application in multiple windows Download PDF

Info

Publication number
WO2013082886A1
WO2013082886A1 PCT/CN2012/071256 CN2012071256W WO2013082886A1 WO 2013082886 A1 WO2013082886 A1 WO 2013082886A1 CN 2012071256 W CN2012071256 W CN 2012071256W WO 2013082886 A1 WO2013082886 A1 WO 2013082886A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
display
priority
terminal
foreground
Prior art date
Application number
PCT/CN2012/071256
Other languages
French (fr)
Chinese (zh)
Inventor
梁晓辉
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2013082886A1 publication Critical patent/WO2013082886A1/en

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/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues

Definitions

  • the present invention relates to terminal display technologies in the field of mobile communications, and more particularly to a method and terminal for displaying a multi-window application. Background technique
  • terminals such as mobile phones and tablet computers
  • multiple applications can be run simultaneously in one terminal.
  • the display method of multiple running applications in the terminal is as follows: one foreground application is displayed at a time, and other applications are running in the background; when the user needs to view the state of the background application, the function button of the terminal needs to be manually operated, and the background is The application switches to the foreground to run.
  • an object of the present invention is to provide a method and a terminal for displaying a multi-window application, providing a multi-window display of a plurality of applications, and switching the pre/background application in combination with various states of the terminal itself and states of the application. , and then allocate CPU processing resources reasonably.
  • the present invention provides a method for displaying a multi-window application, the method comprising:
  • terminal multi-window displays the foreground application.
  • the priority update policy is: a rule for setting the priority of the running application according to the running status of the application and other functions of the terminal to be used by the application.
  • the priority of the program includes: the terminal determines in real time whether the call instruction to the application is received, and if received, determines whether the application invoked by the user is a new application or a running application; if not, Continue to periodically update the priority of running applications based on the priority update policy.
  • the terminal multi-window displays the foreground application, including: when the foreground application to be displayed by the terminal is a newly added application, if the number of existing display windows in the main screen of the terminal is less than the upper limit of the display window, The terminal adds a display window for displaying the foreground application according to the specified display scale; if the number of display windows in the terminal main screen is not less than the upper limit of the display window, the terminal displays the new display window of the application switched to the background to display the new Increased application;
  • the display window of the application is highlighted.
  • the program includes: when there is a background application having a higher priority than the foreground application, switching the background application to the foreground display, the display area and display size of the display window are the same as the application switched to the background; when the home screen When the number of applications currently displayed is less than the upper limit of the system setting foreground display application, the background application with higher priority is switched to the foreground application.
  • the method further includes: saving the name of the application that made the adjustment, the business type, the display area, the display size, and the priority.
  • the priority of the program includes: the terminal according to the network signal strength state, the power state, and the communication function.
  • the present invention further provides a terminal, where the terminal includes: a real-time update module and a display interaction module;
  • the notification display interaction module multi-window displays the foreground application
  • the interactive module is displayed, and is set to display the foreground application according to the notification multi-window sent by the real-time update module.
  • the real-time update module is further configured to save a priority update policy composed of rules according to the running status of the application and other functions of the terminal to be used by the application, and setting the priority of the running application. .
  • the real-time update module is further configured to determine in real time whether a call instruction to the application is received, and if received, determine whether the application invoked by the user is a new application or a running application; If not received, continue to be based on priority
  • the new policy periodically updates the priority of the running application.
  • the real-time update module is configured to: when it is determined that the foreground application to be displayed is a newly added application, if the number of existing display windows in the main screen of the interactive module is displayed, and the upper limit of the display window is displayed, And displaying a display window for displaying the foreground application in the display interaction module according to the specified display ratio. If the number of display windows in the main screen is not less than the upper limit of the display window, the original display window of the application switched to the background is used. The newly added application is displayed in the display interaction module. When the foreground application to be displayed is the running application, the notification display interaction module highlights the display window of the application.
  • the real-time update module is configured to cancel display of the foreground application in the display interaction module when the priority of the background application is determined to be higher than that of the foreground application, and switch the background application to the foreground display
  • the interactive module displays that the display area and display size of the display window are the same as those of the application that is switched to the background; when it is determined that the number of applications currently displayed on the main screen is less than the upper limit of the system setting foreground display application, the priority is A higher background application is added to the main screen of the display interaction module to switch to the foreground application for display.
  • the terminal further includes: a storage module, configured to save a name, a service type, a display area, a display size, and a priority of the application sent by the real-time update module; correspondingly, the real-time update module, setting Save the name, business type, display area, display size, and priority of the application to be adjusted to the storage module.
  • a storage module configured to save a name, a service type, a display area, a display size, and a priority of the application sent by the real-time update module
  • the real-time update module setting Save the name, business type, display area, display size, and priority of the application to be adjusted to the storage module.
  • the terminal further includes: a status monitoring module and a communication module; the status monitoring module is configured to periodically monitor the network signal strength state and the power state of the terminal, and the network signal strength state and the power state Send to the real-time update module;
  • the communication module is configured to periodically provide a real-time update module with a name of an application that uses the communication function;
  • the real-time update module is further configured to receive a status monitoring module and a communication module.
  • the method and terminal for displaying a multi-window application program provided by the present invention have the following advantages and features: by preset a priority update policy in a terminal, periodically updating an application switching in a running, and displaying a front/back-office switching, And the window of the foreground application can be displayed according to the preset display ratio; thus, a plurality of foreground applications can be displayed on the main screen of the terminal, and the front/backstage application is switched in combination with various states of the terminal itself and the state of the application. , and then allocate CPU processing resources reasonably.
  • FIG. 1 is a flow chart of a method for displaying a multi-window application according to the present invention
  • FIG. 1 is a schematic structural diagram of a terminal of the present invention. detailed description
  • the basic idea of the present invention is: the terminal periodically updates the priority of the running application according to the priority update policy; the terminal switches the foreground application and the background application according to the priority of the application, and the terminal displays the foreground application in multiple windows. program.
  • the priority update policy is a rule for setting an application priority according to the running status of the application and other functions of the terminal to be used by the application.
  • the present invention provides a method for displaying a multi-window application, including: Step 101: Presetting a priority update policy in a terminal, and then performing step 102 and step 109 simultaneously.
  • the priority update policy includes: When calling a newly added application, first set the priority of the application to the default priority.
  • the default priority can be set to one;
  • the priority of the application is incremented by one; the priority of the application that the user is operating is set to the maximum of the priority of all currently running applications, for example, The maximum value of the priority of all currently running applications is 21, and the priority of the application that the user is operating is set to 22; Periodically detect all running applications, if any application is used The audio/video function sets the priority of the application to the maximum value of the priority in the currently running application, for example, local music, online music, local video, streaming video, etc.; periodic detection For all running applications, if the application uses the communication function, the priority of the application is set to the maximum value of the priority in the currently running application plus one, for example, an application such as a video call or a voice call;
  • Periodically detecting the power of the terminal itself If the power is low, set the priority of the application to the minimum priority of the currently running application for the application that has less interaction with the user in the running application.
  • the value of the terminal itself is low, and may be determined according to the preset low battery early warning threshold. For example, when the terminal power is lower than the low battery warning threshold, the terminal itself has low power;
  • Step 102 The terminal determines in real time whether a call instruction for any one application is received. If yes, step 103 is performed; if not, the process flow ends.
  • the calling instruction for any one application is: the user needs to use any one application, the user selects the application on the terminal, and the terminal initiates a call instruction to the application when the application is called;
  • the calling instruction includes: an identifier of an application to be called and specific calling instruction information, and the method for generating the calling instruction is prior art, and is not mentioned here; the identifier of the application may be the name of the application. .
  • Step 103 The terminal determines whether the application invoked by the user is a newly added application or an running application. If it is a newly added application, step 104 is performed; if it is a running application, step 108 is performed.
  • the determination is: using the identifier of the application to be called in the calling instruction, and comparing with the identifiers of all the currently running applications, if the identifiers of all the currently running applications are the same as those in the calling instructions. If the identity of the called application is different, the application called by the user is a new application; otherwise, it is the running application.
  • Step 104 The terminal determines whether the total number of currently running applications is less than the upper limit quantity of the runnable application. If the value is less than, the terminal performs step 105; if not less, the new application is not added, and the process ends. .
  • the upper limit quantity value of the executable application is a value preset according to an actual situation, for example, may be set to twenty;
  • the application added without increasing the running includes: The terminal prompts the user that the application cannot be added, and the processing flow ends.
  • Step 105 The terminal determines whether the number of windows of the currently displayed application is less than the upper limit of the display window. If it is less, step 106 is performed; otherwise, step 107 is performed.
  • the upper limit of the display window is a home screen capable of being preset at the terminal according to an actual situation.
  • the maximum number of windows displayed in the screen for example, can be preset to four.
  • Step 106 The terminal adds the newly added application to a display window of the home screen, and then performs step 109.
  • Step 107 The terminal switches a foreground application to the background, adds the newly added application to the display window of the foreground application, and then performs step 109.
  • the terminal sets the priority of the newly added application as a default priority according to the preset priority update policy
  • the terminal selects the application with the lowest priority among the current foreground application, switches the application to the background execution, and then displays the new display area and display size of the original display window of the application switched to the background execution.
  • the application is added; and the terminal sets the priority of the newly added application to the maximum value of the priority of all currently running applications according to the preset priority update policy, and saves the name of the newly added application. , Business Type, Display Area, Display Size, and Priority, then go to step 109.
  • Step 108 The terminal highlights the window of the application, and then performs step 109. Specifically: the terminal updates the measurement according to the priority, and increases the priority of the running application that is called this time by one;
  • the terminal determines whether the application invoked by the user is a foreground application or a background application, and if it is a foreground application, highlights the window of the foreground application, and sets the priority of the application to the current priority according to the priority update policy. Add the maximum value of the priority of the running application, and save the name, business type, display area, display size and priority of the application, and then perform step 109;
  • a foreground application selects a foreground application, switch the foreground application to run in the background, and then switch the background application called by the user to the foreground running state, display the display area and display size of the window, and switch to the background.
  • the running application is the same, and the application's window is highlighted, and the application's priority is set according to the priority update policy. Add one to the maximum value of the priority of all currently running applications, and save the application name, service type, display area, display size, and priority, and then perform step 109; here, select a foreground application
  • the program can select the lowest priority in the foreground application, or select the earliest foreground application to enter the foreground display, or select the application with the least interaction with the user in the foreground application.
  • Step 109 The terminal updates the policy according to the priority, periodically updates the priority of the running application, and adjusts the front/back office application according to the priority of the application.
  • the adjusting the application displayed in the window in the main screen according to the priority of the application comprises: the terminal detecting whether any of the background applications has a higher priority than any of the foreground applications, and whether the number of foreground applications is less than The foreground of the system setting displays the upper limit of the application; when any of the background applications has a higher priority than any of the foreground applications, the background application is switched to the foreground display, and the display area and display size of the display window are Switch to the same application running in the background, and update the priority of the application adjusted to the foreground according to the priority update policy, and save the application name, business type, display area, display size and priority; when on the home screen When the number of currently displayed applications is less than the upper limit of the system setting foreground display application, the higher priority background application is added to the home screen, switched to the foreground application for display, and the priority update policy is updated according to the priority update policy. Adjust to the front desk Use the program's priority, and save the application's name, business type, display
  • the adding the higher priority background application to the home screen is: the terminal operates according to the manner of adding the application selected by the user, if the manner of adding the application selected by the user is increased one by one on the home screen
  • the displayed application prompts the user to select the display scale, and then adds the background application to the main screen window in order of the display scale and the priority of the application running in the background, until the foreground is displayed.
  • the number of applications reaches the upper limit of the foreground display application; If the user selects the method of adding the application to display multiple applications on the main screen at one time, according to the multi-window upper limit value of the preset display application, the priority is selected from high to low.
  • the main screen is in the display window.
  • the adding the application to the display window of the main screen includes the following steps:
  • Step a The terminal sets the priority of the newly added application as the default priority according to the preset priority update policy.
  • Step b The terminal prompts the user to select the display ratio of the display window, and receives the display ratio of the display window selected by the user.
  • the display ratio of the display window is: a preset value preset according to an actual demand, for example, may be preset to be 50% and 25%.
  • Step c The terminal determines whether the front-end application needs to be replaced according to the display ratio of the display window selected by the user, and if necessary, performs step d; if not, performs step e.
  • the determining whether it is necessary to replace the foreground application is: calculating the display size of the display window required by the newly added application according to the display ratio selected by the user, and displaying the display size of the display window according to the newly added application If it is determined, the other foreground applications can be displayed with a minimum display ratio that is not lower than the preset. If it is, you do not need to replace the foreground application; if not, you need to replace the foreground application.
  • Step d The terminal selects the foreground application with the lowest priority, switches the foreground application to the background application, and then adjusts the display area and display size of the display window of the remaining foreground application according to the display window selected by the user.
  • the terminal After displaying the scale, calculating the display area and display size of the display window of the newly added application, adding the newly added application to the display window of the main screen according to the calculated display area and display size, the terminal according to the preset Priority
  • the level update policy sets the priority of the newly added application to the maximum value of the priority of all currently running applications, and saves the newly added application name, service type, display area, display size, and The priority of this new application.
  • the display area and the display size of the display window of the remaining foreground application are adjusted as follows: the terminal views the display area and the display size of the original display window of the application switched to the background, and the newly added application with the calculated display The required display area is compared with the display size. If the former is smaller than the latter, the terminal adjusts the display window of the remaining foreground application to the minimum display ratio; if the former is not smaller than the latter, the display of the remaining foreground applications is not adjusted. The display area and display size of the window directly add the newly added application to the original display window of the application switched to the background.
  • Step e The terminal adjusts the display area and the display size of the display window of the remaining foreground application, and adds the newly added application to the foreground display window according to the display ratio selected by the user, and the terminal updates the policy according to the preset priority.
  • the priority of the newly added application is set to the maximum value of the priority of all currently running applications, and the name, service type, display area, display size and priority of the newly added application are saved.
  • the present invention further provides a terminal, including: a real-time update module 21 and a display interaction module 22;
  • the real-time update module 21 is configured to periodically update the running response according to the priority update policy, and notify the display interaction module 22 to display the foreground application in multiple windows;
  • the display interaction module 22 is configured to display the foreground application according to the notification multi-window sent by the real-time update module 21.
  • the real-time update module 21 is further configured to save a user-preset priority update policy, including:
  • the priority of the application is incremented by one; the priority of the application that the user is operating is set to the maximum of the priority of all currently running applications, for example, The maximum value of the priority of all currently running applications is 21, and the priority of the application that the user is operating is set to 22; Periodically detect all running applications, if any application is used The audio/video function sets the priority of the application to the maximum value of the priority in the currently running application, for example, local music, online music, local video, streaming video, etc.; periodic detection For all running applications, if the application uses the communication function, the priority of the application is set to the maximum value of the priority in the currently running application plus one, for example, an application such as a video call or a voice call;
  • Periodically detecting the power of the terminal itself If the power is low, set the priority of the application to the minimum priority of the currently running application for the application that has less interaction with the user in the running application.
  • the value of the terminal itself is low, and may be determined according to the preset low battery early warning threshold. For example, when the terminal power is lower than the low battery warning threshold, the terminal itself has low power;
  • the terminal further includes: a status monitoring module 23 and a communication module 24;
  • the status monitoring module 23 is configured to periodically monitor the network signal strength status and the power status of the terminal, and send the network signal strength status and the power status to the real-time update module 21;
  • the communication module 24 is set to periodically
  • the real-time update module 21 provides a name of an application that uses the communication function;
  • the real-time update module 21 is configured to receive the network signal strength state, the power state, and the application name of the communication function sent by the state monitoring module 23 and the communication module 24, according to the network signal strength state, the power state And the name of the application for the communication function, and the priority update policy, which periodically updates the priority of the running application.
  • the display interaction module 22 is further configured to send a call instruction to any one of the application programs to the real-time update module 21 according to a call operation of the user to any one of the applications; correspondingly, the real-time update module 21 is also set to be real-time.
  • the real-time update module 21 is further configured to: when it is determined that the application invoked by the user is a newly added application, determine whether the total number of currently running applications is less than an upper limit quantity of the executable application, when determining that the user invokes
  • the notification display interaction module 22 highlights the window of the application invoked by the user; correspondingly, the display interaction module 22 is further configured to send a notification according to the real-time update module 21. , highlights the window of the application called by the user.
  • the real-time update module 21 is configured to determine whether the number of windows of the currently displayed application is less than a display window upper limit when it is determined that the total number of running applications is less than the upper limit quantity of the executable application.
  • the real-time update module 21 is configured to notify the display interaction module 22 that the user is unable to add an application when determining that the total number of running applications is not less than the upper limit quantity of the executable application;
  • the display interaction module 22 is further configured to prompt the user to not add an application according to the notification sent by the real-time update module 21.
  • the real-time update module 21 is configured to add a new application to a display window of the main screen of the display interaction module 22 when it is determined that the number of windows of the currently displayed application is less than the upper limit of the display window, otherwise, A foreground application switches to the background, and the newly added application is added to the original display window of the foreground application displaying the interaction module 22.
  • the terminal further includes: a storage module 25 configured to save the name, service type, display area, display size, and priority of the application sent by the real-time update module 21, and provide the saved application for the real-time update module 21 Name, business type, display area, display size, and priority;
  • the real-time update module 21 is configured to update according to the preset priority when it is determined that the application invoked by the user is a newly added application, and the number of windows of the currently displayed application is not less than the upper limit of the display window.
  • the policy sets the priority of the newly added application as the default priority, selects the application with the lowest priority among the current foreground applications, switches the application to the background execution, and notifies the display interaction module 22 to cancel the display.
  • the application then extracts the display area and the display size corresponding to the application from the storage module 25 as the display area and display size of the newly added application by using the name of the undisplayed application, and notifies the display interaction module 22 Display the newly added application with the display area and display size of the specified new application, and set the priority of the newly added application to the priority of all currently running applications according to the preset priority update policy. Add the maximum value in one, the new application will be added The name of the sequence, the service type, the display area, the display size, and the priority are saved to the storage module 25; the display interaction module 22 is configured to receive the instruction sent by the real-time update module 21, cancel the display application according to the instruction, and then use the specified The newly added application's display area and display size show the newly added application.
  • the real-time update module 21 is configured to, when determining that the application invoked by the user is a running application, update the measurement according to the priority, increase the priority of the called running application by one, and determine that the application is the foreground.
  • the application is also a background application, and if it is a foreground application, an instruction to highlight the window of the foreground application is issued to the display interaction module 22, and the priority of the application is set to all current operations according to the priority update policy.
  • the maximum value of the application's priority plus one and send the application's name, business type, display area, display size and priority to the storage module 25; if it is a background application, select a foreground application
  • the display interaction module 22 issues an instruction to cancel the display of the original foreground application that is switched to the background, and then switches the background application invoked by the user to the foreground running state, and displays the window.
  • Display area and display size and Switching to the application running in the background is the same, and issuing an instruction to the display interaction module 22 to highlight the window of the application, setting the priority of the application to the priority of all currently running applications according to the priority update policy.
  • the maximum value in the plus one, and the notification storage module 25 saves the name, service type, display area, display size, and priority of the application.
  • the real-time update module 21 is configured to periodically check whether the priority of the currently running application is higher than any of the foreground applications, and the foreground application after the priority of the currently running application is periodically updated according to the priority update policy. Whether the number is d or not, the upper limit of the application is displayed in the foreground of the system setting.
  • the real-time update module 21 is configured to notify the display interaction module 22 to cancel the display of the original foreground when it is detected that any of the background applications has a higher priority than any of the foreground applications.
  • the application, the display area and the display size of the display window using the original foreground application display a background application having a higher priority than the foreground application, and the priority of the application adjusted to the foreground is updated according to the priority update policy, and the notification
  • the storage module 25 saves the name, service type, display area, display size, and priority of the application.
  • the real-time update module 21 is configured to add a background application with a higher priority when it is detected that the number of applications currently displayed on the main screen of the display interaction module 22 is less than the upper limit of the system setting foreground display application. Going to the main screen of the display interaction module 22, and updating the priority of the application adjusted to the foreground according to the priority update policy, and notifying the storage module 25 to save the name, service type, display area, display size, and priority of the application. level.
  • the real-time update module 21 is configured to operate according to a manner of adding an application selected by the user. If the manner of adding the application selected by the user is to increase the application displayed on the main screen one by one, the user is prompted to select the display. Proportion, and then add the background application to the main screen window of the display interaction module 22 in order according to the display ratio and the priority of the application running in the background, until the number of applications displayed in the foreground reaches the foreground.
  • Display the upper limit of the application if the user selects the method of adding the application as a one-time increase to display multiple applications on the main screen, according to the preset multi-window upper limit of the display application, according to the priority Select the application that can be added to the main screen of the foreground from the highest to the lowest order, and then calculate the display area and display size of the window of the application added to the main screen at one time according to the preset display ratio, and one time Add all selected applications to the display window of the home screen displaying the interaction module 22 In the mouth.
  • the real-time update module 21 is configured to: when it is confirmed that the application invoked by the user is a newly added application, and the number of windows of the currently displayed application is less than the upper limit of the display window, the new update policy according to the preset priority
  • the priority of the added application is set as the default priority.
  • the display interaction module 22 prompts the user to select the display scale of the display window, and receives the display ratio of the user selected display window returned by the display interaction module 22, and determines according to the display ratio of the display window. Whether Need to replace the foreground application.
  • the real-time update module 21 is configured to calculate the display size of the display window required by the newly added application according to the display ratio selected by the user, and determine the added according to the display size of the display window required by the newly added application. After the new application, other foreground applications can display the minimum display ratio not lower than the preset. If you can, you do not need to replace the foreground application; if not, you need to replace the foreground application.
  • the real-time update module 21 is configured to: when determining that the foreground application needs to be replaced, select the foreground application with the lowest priority, switch the foreground application to the background application, and then adjust the display window of the remaining foreground applications.
  • Display area and display size according to the display ratio of the display window selected by the user, calculate the display area and display size of the display window of the newly added application, the newly added application according to the calculated display area and display size
  • the program is added in the display window of the main screen, and the priority of the newly added application is set to the maximum value among the priorities of all currently running applications according to the preset priority update policy, and the storage module is notified. 25 Save the name, business type, display area, display size, and priority of the newly added application.
  • the real-time update module 21 is configured to view a display area and a display size of the original display window of the application switched to the background, and compare with the calculated display area and display size required for displaying the newly added application, if the former is smaller than In the latter case, the display window of the remaining foreground application is adjusted to the minimum display scale; if the former is not smaller than the latter, the display area and display size of the display window of the remaining foreground application are not adjusted, and the newly added application is directly added.
  • the program is added to the original display window of the application switched to the background.
  • the real-time update module 21 is configured to adjust a display area and a display size of a display window of the remaining foreground application when it is determined that the foreground application does not need to be replaced, and add the newly added application according to a display ratio selected by the user.
  • the priority of the newly added application is set to the priority of all currently running applications according to the preset priority update policy.
  • the maximum value in the first level is incremented by one, and the storage module 25 is notified to save the name, service type, display area, display size, and priority of the newly added application.

Landscapes

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

Abstract

Disclosed in the present invention is a method for displaying applications in multiple windows, comprising: a terminal periodically updating the priority of a running application according to a priority updating strategy; the terminal switching foreground applications and background applications according to application priority, and the terminal displaying foreground applications in multiple windows. The present invention also discloses a terminal. Use of the present invention provides display of multiple applications in multiple windows, and switching among foreground/background applications in connection with the various statuses of the terminal itself and the statuses of applications, thereby allowing rational allocation of CPU processing resources.

Description

一种多窗口显示应用程序的方法及终端 技术领域  Method and terminal for multi-window display application technology
本发明涉及移动通信领域中的终端显示技术, 尤其涉及一种多窗口显 示应用程序的方法及终端。 背景技术  The present invention relates to terminal display technologies in the field of mobile communications, and more particularly to a method and terminal for displaying a multi-window application. Background technique
随着移动通信技术的高速发展, 终端, 如手机、 平板电脑等, 应用程 序越来越强且越来越多, 一个终端中可同时运行多个应用程序。 目前, 终 端中多个运行的应用程序的显示方法为: 一次显示一个前台应用程序, 其 他应用程序在后台运行; 当用户需要查看后台应用程序的状态时, 需要手 动操作终端的功能按键, 将后台应用程序切换到前台运行。  With the rapid development of mobile communication technologies, terminals, such as mobile phones and tablet computers, have become more and more powerful, and multiple applications can be run simultaneously in one terminal. Currently, the display method of multiple running applications in the terminal is as follows: one foreground application is displayed at a time, and other applications are running in the background; when the user needs to view the state of the background application, the function button of the terminal needs to be manually operated, and the background is The application switches to the foreground to run.
但是, 上述显示方法, 由于主屏幕只显示一个前台应用程序, 所以要 查看终端中当前运行的所有应用程序的状态, 就需要用户手动操作, 将后 台应用程序切换到前台运行, 使用户的操作重复且繁瑣; 另外, 上述显示 方法中, 没有考虑当前所运行的应用程序处理状况和终端的网络状态及电 量状态等因素,无法使终端自动的根据当期运行的前 /后台应用程序的状况、 以及根据终端的自身状况切换前 /后台应用程序, 进而, 导致中央处理器 However, in the above display method, since the main screen only displays one foreground application, to view the status of all the applications currently running in the terminal, the user needs to manually operate, and the background application is switched to the foreground to make the user's operation repeat. And cumbersome; in addition, in the above display method, the current processing state of the application and the network state and power state of the terminal are not considered, and the terminal cannot automatically perform the status of the pre/background application according to the current period, and The terminal's own status switches the pre/background application, which in turn causes the central processor
( CPU, Central Processing Unit )处理资源分配不合理, 比如, 当终端的移 动网络信号较弱, 且前台应用程序需要使用移动网络时, 该应用程序会运 行很慢且会长期占用较多的 CPU的处理资源, 还会影响到不需要使用移动 网络的后台应用程序的处理进度。 (CPU, Central Processing Unit) The processing resource allocation is unreasonable. For example, when the mobile network signal of the terminal is weak, and the foreground application needs to use the mobile network, the application will run very slowly and will occupy more CPUs for a long time. Processing resources also affects the processing progress of background applications that do not need to use the mobile network.
可见, 目前已有的终端应用程序的显示方法, 无法提供多窗口显示多 个应用程序, 并且无法结合终端自身的各种状态及应用程序的状态切换前 / 后台应用程序, 进而无法合理分配 CPU处理资源。 发明内容 It can be seen that the existing display method of the terminal application cannot provide multiple windows to display multiple applications, and cannot switch the front/back-end applications in combination with the various states of the terminal itself and the state of the application, thereby failing to properly allocate CPU processing. Resources. Summary of the invention
有鉴于此, 本发明的目的在于提供一种多窗口显示应用程序的方法及 终端, 提供多窗口显示多个应用程序, 且结合终端自身的各种状态及应用 程序的状态切换前 /后台应用程序, 进而合理分配 CPU处理资源。  In view of this, an object of the present invention is to provide a method and a terminal for displaying a multi-window application, providing a multi-window display of a plurality of applications, and switching the pre/background application in combination with various states of the terminal itself and states of the application. , and then allocate CPU processing resources reasonably.
为达到上述目的, 本发明的技术方案是这样实现的:  In order to achieve the above object, the technical solution of the present invention is achieved as follows:
本发明提供了一种多窗口显示应用程序的方法, 该方法包括:
Figure imgf000004_0001
The present invention provides a method for displaying a multi-window application, the method comprising:
Figure imgf000004_0001
且所述终端多窗口显示前台应用程序。 And the terminal multi-window displays the foreground application.
上述方案中, 所述优先级更新策略为: 根据应用程序的运行状况及应 用程序所要使用到的终端的其他功能, 设定运行中的应用程序的优先级的 规则。 程序的优先级, 包括: 终端实时判断是否接收到对应用程序的调用指令, 如果接收到, 则判断用户调用的应用程序为新增的应用程序还是正在运行 的应用程序; 如果没有接收到, 则继续根据优先级更新策略周期性更新运 行中的应用程序的优先级。  In the above solution, the priority update policy is: a rule for setting the priority of the running application according to the running status of the application and other functions of the terminal to be used by the application. The priority of the program includes: the terminal determines in real time whether the call instruction to the application is received, and if received, determines whether the application invoked by the user is a new application or a running application; if not, Continue to periodically update the priority of running applications based on the priority update policy.
上述方案中, 所述终端多窗口显示前台应用程序, 包括: 当终端要显 示的前台应用程序为新增的应用程序时, 若终端主屏幕中的已有显示窗口 数量小于显示窗口上限值, 则终端根据指定的显示比例添加显示所述前台 应用程序的显示窗口; 若终端主屏幕中的显示窗口数量不小于显示窗口上 限值, 则终端使用切换到后台的应用程序的原显示窗口显示新增的应用程 序;  In the above solution, the terminal multi-window displays the foreground application, including: when the foreground application to be displayed by the terminal is a newly added application, if the number of existing display windows in the main screen of the terminal is less than the upper limit of the display window, The terminal adds a display window for displaying the foreground application according to the specified display scale; if the number of display windows in the terminal main screen is not less than the upper limit of the display window, the terminal displays the new display window of the application switched to the background to display the new Increased application;
当终端要显示的前台应用程序为正在运行的应用程序时, 高亮所述应 用程序的显示窗口。 上述方案中, When the foreground application to be displayed by the terminal is a running application, the display window of the application is highlighted. In the above scheme,
用程序, 包括: 当有后台应用程序的优先级高于前台应用程序时, 将该后 台应用程序切换到前台显示, 显示窗口的显示区域和显示大小与切换到后 台运行的应用程序相同; 当主屏幕上当前显示的应用程序个数小于系统设 置前台显示应用程序的上限值时, 将优先级较高的后台应用程序切换为前 台应用程序。 用程序之后, 该方法还包括: 保存作出调整的应用程序的名称、 业务类型、 显示区域、 显示大小及优先级。 程序的优先级, 包括: 终端根据网络信号强弱状态、 电量状态和通讯功能 本发明还提供了一种终端, 该终端包括: 实时更新模块和显示交互模 块; 其中,
Figure imgf000005_0001
The program includes: when there is a background application having a higher priority than the foreground application, switching the background application to the foreground display, the display area and display size of the display window are the same as the application switched to the background; when the home screen When the number of applications currently displayed is less than the upper limit of the system setting foreground display application, the background application with higher priority is switched to the foreground application. After using the program, the method further includes: saving the name of the application that made the adjustment, the business type, the display area, the display size, and the priority. The priority of the program includes: the terminal according to the network signal strength state, the power state, and the communication function. The present invention further provides a terminal, where the terminal includes: a real-time update module and a display interaction module;
Figure imgf000005_0001
通知显示交互模块多窗口显示前台应用程序; The notification display interaction module multi-window displays the foreground application;
显示交互模块, 设置为根据实时更新模块发来的通知多窗口显示前台 应用程序。  The interactive module is displayed, and is set to display the foreground application according to the notification multi-window sent by the real-time update module.
上述方案中, 所述实时更新模块, 还设置为保存根据应用程序的运行 状况及应用程序所要使用到的终端的其他功能, 设定运行中的应用程序的 优先级的规则组成的优先级更新策略。  In the above solution, the real-time update module is further configured to save a priority update policy composed of rules according to the running status of the application and other functions of the terminal to be used by the application, and setting the priority of the running application. .
上述方案中, 所述实时更新模块, 还设置为实时判断是否接收到对应 用程序的调用指令, 如果接收到, 则判断用户调用的应用程序为新增的应 用程序还是正在运行的应用程序; 如果没有接收到, 则继续根据优先级更 新策略周期性更新运行中的应用程序的优先级。 In the above solution, the real-time update module is further configured to determine in real time whether a call instruction to the application is received, and if received, determine whether the application invoked by the user is a new application or a running application; If not received, continue to be based on priority The new policy periodically updates the priority of the running application.
上述方案中, 所述实时更新模块, 设置为当判定要显示的前台应用程 序为新增的应用程序, 若显示交互模块的主屏幕中的已有显示窗口数量 d、 于显示窗口上限值, 则根据指定的显示比例在显示交互模块中添加显示所 述前台应用程序的显示窗口, 若主屏幕中的显示窗口数量不小于显示窗口 上限值, 则使用切换到后台的应用程序的原显示窗口在显示交互模块中显 示新增的应用程序, 当要显示的前台应用程序为正在运行的应用程序时, 通知显示交互模块高亮所述应用程序的显示窗口。  In the above solution, the real-time update module is configured to: when it is determined that the foreground application to be displayed is a newly added application, if the number of existing display windows in the main screen of the interactive module is displayed, and the upper limit of the display window is displayed, And displaying a display window for displaying the foreground application in the display interaction module according to the specified display ratio. If the number of display windows in the main screen is not less than the upper limit of the display window, the original display window of the application switched to the background is used. The newly added application is displayed in the display interaction module. When the foreground application to be displayed is the running application, the notification display interaction module highlights the display window of the application.
上述方案中, 所述实时更新模块, 设置为当判定有后台应用程序的优 先级高于前台应用程序时, 在显示交互模块中取消显示该前台应用程序, 将该后台应用程序切换到前台由显示交互模块显示, 显示窗口的显示区域 和显示大小与切换到后台运行的应用程序相同; 当判定主屏幕上当前显示 的应用程序个数小于系统设置前台显示应用程序的上限值时, 将优先级较 高的后台应用程序添加到显示交互模块的主屏幕中切换为前台应用程序进 行显示。  In the above solution, the real-time update module is configured to cancel display of the foreground application in the display interaction module when the priority of the background application is determined to be higher than that of the foreground application, and switch the background application to the foreground display The interactive module displays that the display area and display size of the display window are the same as those of the application that is switched to the background; when it is determined that the number of applications currently displayed on the main screen is less than the upper limit of the system setting foreground display application, the priority is A higher background application is added to the main screen of the display interaction module to switch to the foreground application for display.
上述方案中, 所述终端, 还包括: 存储模块, 设置为保存实时更新模 块发来的应用程序的名称、 业务类型、 显示区域、 显示大小及优先级; 相应的, 所述实时更新模块, 设置为将作出调整的应用程序的名称、 业务类型、 显示区域、 显示大小及优先级保存到存储模块。  In the above solution, the terminal further includes: a storage module, configured to save a name, a service type, a display area, a display size, and a priority of the application sent by the real-time update module; correspondingly, the real-time update module, setting Save the name, business type, display area, display size, and priority of the application to be adjusted to the storage module.
上述方案中, 所述终端, 还包括: 状态监控模块和通讯模块; 所述状态监控模块, 设置为周期性监控终端的网络信号强弱状态和电 量状态, 并将网络信号强弱状态和电量状态发送给实时更新模块;  In the above solution, the terminal further includes: a status monitoring module and a communication module; the status monitoring module is configured to periodically monitor the network signal strength state and the power state of the terminal, and the network signal strength state and the power state Send to the real-time update module;
所述通讯模块, 设置为周期性向实时更新模块提供使用到通讯功能的 应用程序的名称;  The communication module is configured to periodically provide a real-time update module with a name of an application that uses the communication function;
相应的, 所述实时更新模块, 还设置为接收状态监控模块和通讯模块 发来的网络信号强弱状态、 电量状态和通讯功能的应用程序的名称, 根据 网络信号强弱状态、 电量状态和通讯功能的应用程序的名称、 及优先级更 新策略更新运行中的应用程序的优先级。 Correspondingly, the real-time update module is further configured to receive a status monitoring module and a communication module. The name of the application of the network signal strength status, power status, and communication function, the name of the application according to the network signal strength status, the power status and communication function, and the priority update policy to update the running application. priority.
本发明所提供的多窗口显示应用程序的方法及终端, 具有以下的优点 和特点: 通过在终端预置优先级更新策略, 周期性的更新运行中的应用程 切换、 及前 /后台切换显示, 并且能够根据预置的显示比例显示前台应用程 序的窗口; 如此, 可以在终端的主屏幕中显示多个前台应用程序, 并且结 合终端自身的各种状态及应用程序的状态切换前 /后台应用程序, 进而合理 分配 CPU处理资源。 附图说明  The method and terminal for displaying a multi-window application program provided by the present invention have the following advantages and features: by preset a priority update policy in a terminal, periodically updating an application switching in a running, and displaying a front/back-office switching, And the window of the foreground application can be displayed according to the preset display ratio; thus, a plurality of foreground applications can be displayed on the main screen of the terminal, and the front/backstage application is switched in combination with various states of the terminal itself and the state of the application. , and then allocate CPU processing resources reasonably. DRAWINGS
图 1为本发明多窗口显示应用程序的方法的流程图;  1 is a flow chart of a method for displaying a multi-window application according to the present invention;
图 1为本发明终端的组成结构示意图。 具体实施方式  FIG. 1 is a schematic structural diagram of a terminal of the present invention. detailed description
本发明的基本思想是: 终端根据优先级更新策略周期性更新运行中的 应用程序的优先级; 该终端根据应用程序的优先级切换前台应用程序及后 台应用程序, 且该终端多窗口显示前台应用程序。  The basic idea of the present invention is: the terminal periodically updates the priority of the running application according to the priority update policy; the terminal switches the foreground application and the background application according to the priority of the application, and the terminal displays the foreground application in multiple windows. program.
其中, 所述优先级更新策略, 为根据应用程序的运行状况及应用程序 所要使用到的终端的其他功能设定应用程序的优先级的规则。  The priority update policy is a rule for setting an application priority according to the running status of the application and other functions of the terminal to be used by the application.
下面结合附图及具体实施例对本发明再作进一步详细的说明。  The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
如图 1所示, 本发明提供了一种多窗口显示应用程序的方法, 包括: 步驟 101 : 在终端中预置优先级更新策略, 然后同时执行步驟 102和步 驟 109。  As shown in FIG. 1, the present invention provides a method for displaying a multi-window application, including: Step 101: Presetting a priority update policy in a terminal, and then performing step 102 and step 109 simultaneously.
这里, 所述优先级更新策略包括: 当调用新增的应用程序时, 先将该应用程序的优先级设为默认优先级, 比如, 可以将默认优先级置为一; Here, the priority update policy includes: When calling a newly added application, first set the priority of the application to the default priority. For example, the default priority can be set to one;
每次调用正在运行的应用程序时, 将该应用程序的优先级加一; 将用户正在操作的应用程序的优先级设置为当前所有运行的应用程序 的优先级中的最大值加一, 比如, 当前所有运行的应用程序的优先级中的 最大值为二十一, 则将用户正在操作的应用程序的优先级设置为二十二; 周期性检测所有运行的应用程序, 若有应用程序使用到音 /视频功能, 则将该应用程序的优先级设为当前所运行应用程序中优先级的最大值加 一, 比如, 本地音乐、 在线音乐、 本地视频、 流媒体视频等应用程序; 周期性检测所有运行的应用程序, 若有应用程序使用到通讯功能, 则 将该应用程序的优先级设为当前所运行应用程序中优先级的最大值加一, 比如, 视频电话、 语音电话等应用程序;  Each time a running application is called, the priority of the application is incremented by one; the priority of the application that the user is operating is set to the maximum of the priority of all currently running applications, for example, The maximum value of the priority of all currently running applications is 21, and the priority of the application that the user is operating is set to 22; Periodically detect all running applications, if any application is used The audio/video function sets the priority of the application to the maximum value of the priority in the currently running application, for example, local music, online music, local video, streaming video, etc.; periodic detection For all running applications, if the application uses the communication function, the priority of the application is set to the maximum value of the priority in the currently running application plus one, for example, an application such as a video call or a voice call;
周期性检测所有运行的应用程序, 若有应用程序使用到移动网络, 且 当移动网络信号强时, 该应用程序的优先级设为当前所有应用程序中优先 级的次大值, 当移动网络信号弱时, 该应用程序的优先级设置为当前所运 行的应用程序中优先级的最小值; 其中, 所述移动网络信号强及所述移动 网络信号弱为利用已有技术可以获取的移动网络信号测量结果, 这里不做 赘述;  Periodically detect all running applications, if an application uses the mobile network, and when the mobile network signal is strong, the application's priority is set to the next highest priority value of all current applications, when the mobile network signal When the time is weak, the priority of the application is set to the minimum value of the priority in the currently running application; wherein the mobile network signal is strong and the mobile network signal is weak as a mobile network signal that can be acquired by using the prior art. The measurement results are not described here;
周期性的检测终端自身电量, 若自身电量低时, 对于所运行的应用程 序中与用户交互数量少的应用程序, 将该应用程序的优先级设置为当前所 运行的应用程序中优先级的最小值; 其中, 所述自身电量低, 可以根据预 置的电量过低预警门限来确定, 比如, 当终端电量低于该电量过低预警门 限时, 则终端自身电量低;  Periodically detecting the power of the terminal itself. If the power is low, set the priority of the application to the minimum priority of the currently running application for the application that has less interaction with the user in the running application. The value of the terminal itself is low, and may be determined according to the preset low battery early warning threshold. For example, when the terminal power is lower than the low battery warning threshold, the terminal itself has low power;
若存在优先级相同的应用程序, 则对先启动的应用程序的操作优先于 对后启动的应用程序的操作。 步驟 102: 终端实时判断是否接收到对任意一个应用程序的调用指令, 如果接收到, 则执行步驟 103 ; 如果没有接收到, 结束处理流程。 If there is an application with the same priority, the operation of the application that is started first takes precedence over the operation of the application that is started later. Step 102: The terminal determines in real time whether a call instruction for any one application is received. If yes, step 103 is performed; if not, the process flow ends.
这里, 所述对任意一个应用程序的调用指令为: 用户需要使用任意一 项应用程序, 用户在终端上选定该应用程序, 终端在调用该应用程序时自 身发起对该应用程序的调用指令;  Here, the calling instruction for any one application is: the user needs to use any one application, the user selects the application on the terminal, and the terminal initiates a call instruction to the application when the application is called;
所述调用指令包括: 所要调用的应用程序的标识和具体的调用指令信 息, 产生该调用指令的方法为已有技术, 这里不做赞述; 所述应用程序的 标识, 可以为应用程序的名称。  The calling instruction includes: an identifier of an application to be called and specific calling instruction information, and the method for generating the calling instruction is prior art, and is not mentioned here; the identifier of the application may be the name of the application. .
步驟 103 :终端判断用户调用的应用程序为新增的应用程序还是正在运 行的应用程序, 如果是新增的应用程序, 则执行步驟 104; 如果是正在运行 的应用程序, 则执行步驟 108。  Step 103: The terminal determines whether the application invoked by the user is a newly added application or an running application. If it is a newly added application, step 104 is performed; if it is a running application, step 108 is performed.
这里, 所述判断为: 利用调用指令中的所要调用的应用程序的标识, 与当前在运行的所有应用程序的标识进行比对, 如果当前运行的所有应用 程序的标识均与调用指令中的所要调用的应用程序的标识不同, 则用户调 用的应用程序为新增的应用程序; 否则, 为正在运行的应用程序。  Here, the determination is: using the identifier of the application to be called in the calling instruction, and comparing with the identifiers of all the currently running applications, if the identifiers of all the currently running applications are the same as those in the calling instructions. If the identity of the called application is different, the application called by the user is a new application; otherwise, it is the running application.
步驟 104:终端判断当前正在运行的应用程序的总数量是否小于可运行 应用程序的上限数量值, 如果小于, 则执行步驟 105; 如果不小于, 则不增 加运行新增的应用程序, 结束处理流程。  Step 104: The terminal determines whether the total number of currently running applications is less than the upper limit quantity of the runnable application. If the value is less than, the terminal performs step 105; if not less, the new application is not added, and the process ends. .
这里, 所述可运行应用程序的上限数量值为根据实际情况预置的数值, 比如, 可设置为二十个;  Here, the upper limit quantity value of the executable application is a value preset according to an actual situation, for example, may be set to twenty;
所述不增加运行新增的应用程序包括: 终端提示用户无法新增应用程 序, 结束处理流程。  The application added without increasing the running includes: The terminal prompts the user that the application cannot be added, and the processing flow ends.
步驟 105:终端判断当前显示应用程序的窗口数是否小于显示窗口上限 值, 如果小于, 则执行步驟 106; 否则, 执行步驟 107。  Step 105: The terminal determines whether the number of windows of the currently displayed application is less than the upper limit of the display window. If it is less, step 106 is performed; otherwise, step 107 is performed.
这里, 所述显示窗口上限值为根据实际情况预置的能够在终端的主屏 幕中显示的窗口数的最大值, 比如可以预置为四个。 Here, the upper limit of the display window is a home screen capable of being preset at the terminal according to an actual situation. The maximum number of windows displayed in the screen, for example, can be preset to four.
步驟 106: 终端将新增的应用程序添加在主屏幕的一个显示窗口中, 然 后执行步驟 109。  Step 106: The terminal adds the newly added application to a display window of the home screen, and then performs step 109.
步驟 107: 终端将一个前台应用程序切换到后台,将新增的应用程序添 加在该前台应用程序的显示窗口中, 然后执行步驟 109。  Step 107: The terminal switches a foreground application to the background, adds the newly added application to the display window of the foreground application, and then performs step 109.
具体的: 终端根据预置的优先级更新策略将该新增的应用程序的优先 级设为默认优先级;  Specifically: the terminal sets the priority of the newly added application as a default priority according to the preset priority update policy;
终端选出一个当前的前台应用程序中优先级最低的应用程序, 将该应 用程序切换到后台执行, 然后使用该被切换到后台执行的应用程序的原有 显示窗口的显示区域和显示大小显示新增的应用程序; 且终端根据预置的 优先级更新策略将该新增的应用程序的优先级设为当前所有运行的应用程 序的优先级中的最大值加一, 保存新增应用程序的名称、 业务类型、 显示 区域、 显示大小及优先级, 然后执行步驟 109。  The terminal selects the application with the lowest priority among the current foreground application, switches the application to the background execution, and then displays the new display area and display size of the original display window of the application switched to the background execution. The application is added; and the terminal sets the priority of the newly added application to the maximum value of the priority of all currently running applications according to the preset priority update policy, and saves the name of the newly added application. , Business Type, Display Area, Display Size, and Priority, then go to step 109.
步驟 108: 终端高亮显示该应用程序的窗口, 然后执行步驟 109。 具体的: 终端根据优先级更新测量, 将本次调用的正在运行的应用程 序的优先级加一;  Step 108: The terminal highlights the window of the application, and then performs step 109. Specifically: the terminal updates the measurement according to the priority, and increases the priority of the running application that is called this time by one;
终端判断用户调用的应用程序为前台应用程序还是后台应用程序, 如 果是前台应用程序, 则高亮显示该前台应用程序的窗口, 且根据优先级更 新策略将该应用程序的优先级设置为当前所有运行的应用程序的优先级中 的最大值加一, 以及保存该应用程序的名称、 业务类型、 显示区域、 显示 大小及优先级, 然后执行步驟 109;  The terminal determines whether the application invoked by the user is a foreground application or a background application, and if it is a foreground application, highlights the window of the foreground application, and sets the priority of the application to the current priority according to the priority update policy. Add the maximum value of the priority of the running application, and save the name, business type, display area, display size and priority of the application, and then perform step 109;
如果是后台应用程序, 则选取一个前台应用程序, 将该前台应用程序 切换到后台运行,再将用户调用的该后台应用程序切换成前台运行状态, 显 示窗口的显示区域和显示大小与切换到后台运行的应用程序相同, 且高亮 显示该应用程序的窗口、 根据优先级更新策略将该应用程序的优先级设置 为当前所有运行的应用程序的优先级中的最大值加一、 及保存该应用程序 的名称、 业务类型、 显示区域、 显示大小及优先级, 然后执行步驟 109; 这里, 所述选取一个前台应用程序可以为选取前台应用程序中优先级 最低的, 或选取前台应用程序中最早进入前台显示的, 或选取前台应用程 序中与用户交互性最少的应用程序。 If it is a background application, select a foreground application, switch the foreground application to run in the background, and then switch the background application called by the user to the foreground running state, display the display area and display size of the window, and switch to the background. The running application is the same, and the application's window is highlighted, and the application's priority is set according to the priority update policy. Add one to the maximum value of the priority of all currently running applications, and save the application name, service type, display area, display size, and priority, and then perform step 109; here, select a foreground application The program can select the lowest priority in the foreground application, or select the earliest foreground application to enter the foreground display, or select the application with the least interaction with the user in the foreground application.
步驟 109: 终端根据优先级更新策略、周期性更新运行中的应用程序的 优先级, 根据应用程序的优先级调整前 /后台应用程序。  Step 109: The terminal updates the policy according to the priority, periodically updates the priority of the running application, and adjusts the front/back office application according to the priority of the application.
这里, 所述根据应用程序的优先级调整主屏幕中窗口中显示的应用程 序包括: 终端检测是否有任意一个后台应用程序的优先级高于任意一个前 台应用程序, 及前台应用程序个数是否小于系统设置的前台显示应用程序 的上限值; 当有任意一个后台应用程序的优先级高于任意一个前台应用程 序时, 将该后台应用程序切换到前台显示, 显示窗口的显示区域和显示大 小与切换到后台运行的应用程序相同, 且根据优先级更新策略更新该调整 至前台的应用程序的优先级, 以及保存该应用程序的名称、 业务类型、 显 示区域、 显示大小及优先级; 当主屏幕上当前显示的应用程序个数小于系 统设置前台显示应用程序的上限值时, 将优先级较高的后台应用程序添加 到主屏幕、 切换为前台应用程序进行显示, 且根据优先级更新策略更新该 调整至前台的应用程序的优先级, 以及保存该应用程序的名称、 业务类型、 显示区域、 显示大小及优先级;  Here, the adjusting the application displayed in the window in the main screen according to the priority of the application comprises: the terminal detecting whether any of the background applications has a higher priority than any of the foreground applications, and whether the number of foreground applications is less than The foreground of the system setting displays the upper limit of the application; when any of the background applications has a higher priority than any of the foreground applications, the background application is switched to the foreground display, and the display area and display size of the display window are Switch to the same application running in the background, and update the priority of the application adjusted to the foreground according to the priority update policy, and save the application name, business type, display area, display size and priority; when on the home screen When the number of currently displayed applications is less than the upper limit of the system setting foreground display application, the higher priority background application is added to the home screen, switched to the foreground application for display, and the priority update policy is updated according to the priority update policy. Adjust to the front desk Use the program's priority, and save the application's name, business type, display area, display size, and priority;
其中, 所述将优先级较高的后台应用程序添加到主屏幕为: 终端根据 用户选定的添加应用程序的方式进行操作, 若用户选定的添加应用程序的 方式为逐一增加在主屏幕上显示的应用程序, 则提示用户选定显示比例, 再按照显示比例、 及按照后台运行的应用程序的优先级从高到低的顺序, 依次将后台应用程序添加到主屏幕窗口中, 直至前台显示应用程序的数量 达到前台显示应用程序的上限值; 若用户选定的添加应用程序的方式为一次性增加在主屏幕上显示多个 应用程序, 则根据预置的显示应用程序的多窗口上限值, 按照优先级从高 到低的顺序选出可以添加在前台主屏幕上的应用程序, 再根据预置的显示 比例, 计算出一次性添加在主屏幕的应用程序的窗口的显示区域和显示大 小, 并一次性将选中的所有应用程序添加到主屏幕的显示窗口中。 The adding the higher priority background application to the home screen is: the terminal operates according to the manner of adding the application selected by the user, if the manner of adding the application selected by the user is increased one by one on the home screen The displayed application prompts the user to select the display scale, and then adds the background application to the main screen window in order of the display scale and the priority of the application running in the background, until the foreground is displayed. The number of applications reaches the upper limit of the foreground display application; If the user selects the method of adding the application to display multiple applications on the main screen at one time, according to the multi-window upper limit value of the preset display application, the priority is selected from high to low. You can add the application on the main screen of the foreground, and then calculate the display area and display size of the window of the application added to the main screen at one time according to the preset display ratio, and add all the selected applications to the application at one time. The main screen is in the display window.
上述步驟 106 中, 所述将新增的应用程序添加在主屏幕的一个显示窗 口, 具体包括以下步驟:  In the foregoing step 106, the adding the application to the display window of the main screen includes the following steps:
步驟 a:终端根据预置的优先级更新策略将该新增的应用程序的优先级 设为默认优先级。  Step a: The terminal sets the priority of the newly added application as the default priority according to the preset priority update policy.
步驟 b: 终端提示用户选择显示窗口的显示比例,接收用户选定显示窗 口的显示比例。  Step b: The terminal prompts the user to select the display ratio of the display window, and receives the display ratio of the display window selected by the user.
这里, 所述显示窗口的显示比例为: 根据实际需求预置的比例值, 比 如, 可以预置为 50%和 25%两种。  Here, the display ratio of the display window is: a preset value preset according to an actual demand, for example, may be preset to be 50% and 25%.
步驟 c:终端根据用户选定的显示窗口的显示比例判断是否需要替换前 台应用程序, 如果需要, 则执行步驟 d; 如果不需要, 则执行步驟 e。  Step c: The terminal determines whether the front-end application needs to be replaced according to the display ratio of the display window selected by the user, and if necessary, performs step d; if not, performs step e.
这里, 所述判断是否需要替换前台应用程序为: 按照用户选定的显示 比例计算出新增的应用程序所需要的显示窗口的显示大小, 根据新增的应 用程序所需要的显示窗口的显示大小, 判断添加了新增的应用程序后其他 前台应用程序是否能使用不低于预置的最小显示比例显示, 如果能, 则不 需要替换前台应用程序; 如果不能, 则需要替换前台应用程序。  Here, the determining whether it is necessary to replace the foreground application is: calculating the display size of the display window required by the newly added application according to the display ratio selected by the user, and displaying the display size of the display window according to the newly added application If it is determined, the other foreground applications can be displayed with a minimum display ratio that is not lower than the preset. If it is, you do not need to replace the foreground application; if not, you need to replace the foreground application.
步驟 d: 终端选出当前优先级最低的前台应用程序, 将该前台应用程序 切换为后台应用程序, 然后调整剩余的前台应用程序的显示窗口的显示区 域和显示大小, 按照用户选定的显示窗口的显示比例、 计算出新增的应用 程序的显示窗口的显示区域和显示大小后, 按照计算出的显示区域和显示 大小将新增的应用程序添加在主屏幕的显示窗口中, 终端根据预置的优先 级更新策略将该新增的应用程序的优先级设为当前所有运行的应用程序的 优先级中的最大值加一, 并保存新增的应用程序的名称、 业务类型、 显示 区域、 显示大小及该新增的应用程序的优先级。 Step d: The terminal selects the foreground application with the lowest priority, switches the foreground application to the background application, and then adjusts the display area and display size of the display window of the remaining foreground application according to the display window selected by the user. After displaying the scale, calculating the display area and display size of the display window of the newly added application, adding the newly added application to the display window of the main screen according to the calculated display area and display size, the terminal according to the preset Priority The level update policy sets the priority of the newly added application to the maximum value of the priority of all currently running applications, and saves the newly added application name, service type, display area, display size, and The priority of this new application.
这里, 所述调整剩余的前台应用程序的显示窗口的显示区域和显示大 小为: 终端查看切换到后台的应用程序的原显示窗口的显示区域和显示大 小, 与计算出的显示新增的应用程序所需的显示区域和显示大小比较, 如 果前者小于后者, 则终端将剩余的前台应用程序的显示窗口调整为最小显 示比例; 如果前者不小于后者, 则不调整剩余的前台应用程序的显示窗口 的显示区域和显示大小, 直接将新增的应用程序添加到切换到后台的应用 程序的原显示窗口中。  Here, the display area and the display size of the display window of the remaining foreground application are adjusted as follows: the terminal views the display area and the display size of the original display window of the application switched to the background, and the newly added application with the calculated display The required display area is compared with the display size. If the former is smaller than the latter, the terminal adjusts the display window of the remaining foreground application to the minimum display ratio; if the former is not smaller than the latter, the display of the remaining foreground applications is not adjusted. The display area and display size of the window directly add the newly added application to the original display window of the application switched to the background.
步驟 e:终端调整剩余的前台应用程序的显示窗口的显示区域和显示大 小, 将新增的应用程序按照用户选定的显示比例添加在前台显示窗口中, 终端根据预置的优先级更新策略将该新增的应用程序的优先级设为当前所 有运行的应用程序的优先级中的最大值加一, 并保存该新增的应用程序的 名称、 业务类型、 显示区域、 显示大小及优先级。  Step e: The terminal adjusts the display area and the display size of the display window of the remaining foreground application, and adds the newly added application to the foreground display window according to the display ratio selected by the user, and the terminal updates the policy according to the preset priority. The priority of the newly added application is set to the maximum value of the priority of all currently running applications, and the name, service type, display area, display size and priority of the newly added application are saved.
如图 2所示, 本发明还提供了一种终端, 包括: 实时更新模块 21和 显示交互模块 22; 其中,  As shown in FIG. 2, the present invention further provides a terminal, including: a real-time update module 21 and a display interaction module 22;
实时更新模块 21 , 设置为根据优先级更新策略周期性更新运行中的应 序, 通知显示交互模块 22多窗口显示前台应用程序;  The real-time update module 21 is configured to periodically update the running response according to the priority update policy, and notify the display interaction module 22 to display the foreground application in multiple windows;
显示交互模块 22 ,设置为根据实时更新模块 21发来的通知多窗口显示 前台应用程序。  The display interaction module 22 is configured to display the foreground application according to the notification multi-window sent by the real-time update module 21.
所述实时更新模块 21 , 还设置为保存用户预置的优先级更新策略, 包 括:  The real-time update module 21 is further configured to save a user-preset priority update policy, including:
当调用新增的应用程序时, 先将该应用程序的优先级设为默认优先级, 比如, 可以将默认优先级置为一; When calling a new application, first set the priority of the application to the default priority. For example, you can set the default priority to one;
每次调用正在运行的应用程序时, 将该应用程序的优先级加一; 将用户正在操作的应用程序的优先级设置为当前所有运行的应用程序 的优先级中的最大值加一, 比如, 当前所有运行的应用程序的优先级中的 最大值为二十一, 则将用户正在操作的应用程序的优先级设置为二十二; 周期性检测所有运行的应用程序, 若有应用程序使用到音 /视频功能, 则将该应用程序的优先级设为当前所运行应用程序中优先级的最大值加 一, 比如, 本地音乐、 在线音乐、 本地视频、 流媒体视频等应用程序; 周期性检测所有运行的应用程序, 若有应用程序使用到通讯功能, 则 将该应用程序的优先级设为当前所运行应用程序中优先级的最大值加一, 比如, 视频电话、 语音电话等应用程序;  Each time a running application is called, the priority of the application is incremented by one; the priority of the application that the user is operating is set to the maximum of the priority of all currently running applications, for example, The maximum value of the priority of all currently running applications is 21, and the priority of the application that the user is operating is set to 22; Periodically detect all running applications, if any application is used The audio/video function sets the priority of the application to the maximum value of the priority in the currently running application, for example, local music, online music, local video, streaming video, etc.; periodic detection For all running applications, if the application uses the communication function, the priority of the application is set to the maximum value of the priority in the currently running application plus one, for example, an application such as a video call or a voice call;
周期性检测所有运行的应用程序, 若有应用程序使用到移动网络, 且 当移动网络信号强时, 该应用程序的优先级设为当前所有应用程序中优先 级的次大值, 当移动网络信号弱时, 该应用程序的优先级设置为当前所运 行的应用程序中优先级的最小值; 其中, 所述移动网络信号强及所述移动 网络信号弱为利用已有技术可以获取的移动网络信号测量结果, 这里不做 赘述;  Periodically detect all running applications, if an application uses the mobile network, and when the mobile network signal is strong, the application's priority is set to the next highest priority value of all current applications, when the mobile network signal When the time is weak, the priority of the application is set to the minimum value of the priority in the currently running application; wherein the mobile network signal is strong and the mobile network signal is weak as a mobile network signal that can be acquired by using the prior art. The measurement results are not described here;
周期性的检测终端自身电量, 若自身电量低时, 对于所运行的应用程 序中与用户交互数量少的应用程序, 将该应用程序的优先级设置为当前所 运行的应用程序中优先级的最小值; 其中, 所述自身电量低, 可以根据预 置的电量过低预警门限来确定, 比如, 当终端电量低于该电量过低预警门 限时, 则终端自身电量低;  Periodically detecting the power of the terminal itself. If the power is low, set the priority of the application to the minimum priority of the currently running application for the application that has less interaction with the user in the running application. The value of the terminal itself is low, and may be determined according to the preset low battery early warning threshold. For example, when the terminal power is lower than the low battery warning threshold, the terminal itself has low power;
若存在优先级相同的应用程序, 则对先启动的应用程序的操作优先于 对后启动的应用程序的操作。  If there is an application with the same priority, the operation of the application that is started first takes precedence over the operation of the application that is started later.
所述终端, 还包括: 状态监控模块 23和通讯模块 24; 所述状态监控模块 23 , 设置为周期性监控终端的网络信号强弱状态和 电量状态, 并将网络信号强弱状态和电量状态发送给实时更新模块 21 ; 所述通讯模块 24,设置为周期性向实时更新模块 21提供使用到通讯功 能的应用程序的名称; The terminal further includes: a status monitoring module 23 and a communication module 24; The status monitoring module 23 is configured to periodically monitor the network signal strength status and the power status of the terminal, and send the network signal strength status and the power status to the real-time update module 21; the communication module 24 is set to periodically The real-time update module 21 provides a name of an application that uses the communication function;
相应的, 所述实时更新模块 21 ,设置为接收状态监控模块 23和通讯模 块 24发来的网络信号强弱状态、 电量状态和通讯功能的应用程序的名称, 根据网络信号强弱状态、 电量状态和通讯功能的应用程序的名称、 及优先 级更新策略, 周期性更新运行中的应用程序的优先级。  Correspondingly, the real-time update module 21 is configured to receive the network signal strength state, the power state, and the application name of the communication function sent by the state monitoring module 23 and the communication module 24, according to the network signal strength state, the power state And the name of the application for the communication function, and the priority update policy, which periodically updates the priority of the running application.
所述显示交互模块 22, 还设置为根据用户对任意一个应用程序的调用 操作, 向实时更新模块 21发送对任意一个应用程序的调用指令; 相应的, 所述实时更新模块 21,还设置为实时判断是否接收到显示交互模块 22发来 的对任意一个应用程序的调用指令, 如果接收到, 则判断用户调用的应用 程序为新增的应用程序还是正在运行的应用程序; 如果没有接收到, 则继 所述实时更新模块 21 , 设置为利用调用指令中的所要调用的应用程序 的标识, 与当前在运行的所有应用程序的标识进行比对, 如果当前运行的 所有应用程序的标识均与调用指令中的所要调用的应用程序的标识不同, 则判定用户调用的应用程序为新增的应用程序; 否则, 判定用户调用的应 用程序为正在运行的应用程序。  The display interaction module 22 is further configured to send a call instruction to any one of the application programs to the real-time update module 21 according to a call operation of the user to any one of the applications; correspondingly, the real-time update module 21 is also set to be real-time. Determining whether a call instruction for any application sent by the display interaction module 22 is received, and if received, determining whether the application invoked by the user is a new application or a running application; if not, Following the real-time update module 21, configured to use the identifier of the application to be invoked in the call instruction to compare with the identifiers of all applications currently running, if the identifiers of all currently running applications and the call instructions In the case where the identifier of the application to be called is different, it is determined that the application called by the user is a newly added application; otherwise, it is determined that the application called by the user is a running application.
所述实时更新模块 21 , 还设置为当判定用户调用的应用程序是新增的 应用程序时, 判断当前正在运行的应用程序的总数量是否小于可运行应用 程序的上限数量值, 当判定用户调用的应用程序是正在运行的应用程序时, 通知显示交互模块 22高亮显示该用户调用的应用程序的窗口; 相应的, 所 述显示交互模块 22,还设置为根据实时更新模块 21发来的通知, 高亮显示 用户调用的应用程序的窗口。 所述实时更新模块 21 , 设置为当判定正在运行的应用程序的总数量小 于可运行应用程序的上限数量值时, 判断当前显示应用程序的窗口数是否 小于显示窗口上限值。 The real-time update module 21 is further configured to: when it is determined that the application invoked by the user is a newly added application, determine whether the total number of currently running applications is less than an upper limit quantity of the executable application, when determining that the user invokes When the application is a running application, the notification display interaction module 22 highlights the window of the application invoked by the user; correspondingly, the display interaction module 22 is further configured to send a notification according to the real-time update module 21. , highlights the window of the application called by the user. The real-time update module 21 is configured to determine whether the number of windows of the currently displayed application is less than a display window upper limit when it is determined that the total number of running applications is less than the upper limit quantity of the executable application.
所述实时更新模块 21 , 设置为当判定正在运行的应用程序的总数量不 小于可运行应用程序的上限数量值时, 则通知显示交互模块 22提示用户无 法新增应用程序; 相应的, 所述显示交互模块 22, 还设置为根据实时更新 模块 21发来的通知提示用户无法新增应用程序。  The real-time update module 21 is configured to notify the display interaction module 22 that the user is unable to add an application when determining that the total number of running applications is not less than the upper limit quantity of the executable application; The display interaction module 22 is further configured to prompt the user to not add an application according to the notification sent by the real-time update module 21.
所述实时更新模块 21 , 设置为当判定当前显示应用程序的窗口数小于 显示窗口上限值时, 将新增的应用程序添加在显示交互模块 22的主屏幕的 一个显示窗口中, 否则, 将一个前台应用程序切换到后台, 将新增的应用 程序添加在显示交互模块 22的该前台应用程序的原显示窗口中。  The real-time update module 21 is configured to add a new application to a display window of the main screen of the display interaction module 22 when it is determined that the number of windows of the currently displayed application is less than the upper limit of the display window, otherwise, A foreground application switches to the background, and the newly added application is added to the original display window of the foreground application displaying the interaction module 22.
所述终端还包括: 存储模块 25 ,设置为保存实时更新模块 21发来的应 用程序的名称、 业务类型、 显示区域、 显示大小及优先级, 以及为实时更 新模块 21提供已保存的应用程序的名称、 业务类型、 显示区域、 显示大小 及优先级;  The terminal further includes: a storage module 25 configured to save the name, service type, display area, display size, and priority of the application sent by the real-time update module 21, and provide the saved application for the real-time update module 21 Name, business type, display area, display size, and priority;
相应的, 所述实时更新模块 21 , 设置为当确定用户调用的应用程序为 新增的应用程序、 且当前显示应用程序的窗口数不小于显示窗口上限值时, 根据预置的优先级更新策略将该新增的应用程序的优先级设为默认优先 级, 选出一个当前的前台应用程序中优先级最低的应用程序, 将该应用程 序切换到后台执行、 且通知显示交互模块 22取消显示该应用程序, 然后利 用该取消显示的应用程序的名称, 从存储模块 25中提取出该应用程序对应 的显示区域和显示大小作为新增的应用程序的显示区域和显示大小, 通知 显示交互模块 22使用指定的新增的应用程序的显示区域和显示大小显示新 增的应用程序, 根据预置的优先级更新策略将该新增的应用程序的优先级 设为当前所有运行的应用程序的优先级中的最大值加一, 将新增的应用程 序的名称、 业务类型、 显示区域、 显示大小及优先级保存到存储模块 25; 所述显示交互模块 22,设置为接收实时更新模块 21发来指令,根据指 令取消显示应用程序, 然后使用指定的新增的应用程序的显示区域和显示 大小显示新增的应用程序。 Correspondingly, the real-time update module 21 is configured to update according to the preset priority when it is determined that the application invoked by the user is a newly added application, and the number of windows of the currently displayed application is not less than the upper limit of the display window. The policy sets the priority of the newly added application as the default priority, selects the application with the lowest priority among the current foreground applications, switches the application to the background execution, and notifies the display interaction module 22 to cancel the display. The application then extracts the display area and the display size corresponding to the application from the storage module 25 as the display area and display size of the newly added application by using the name of the undisplayed application, and notifies the display interaction module 22 Display the newly added application with the display area and display size of the specified new application, and set the priority of the newly added application to the priority of all currently running applications according to the preset priority update policy. Add the maximum value in one, the new application will be added The name of the sequence, the service type, the display area, the display size, and the priority are saved to the storage module 25; the display interaction module 22 is configured to receive the instruction sent by the real-time update module 21, cancel the display application according to the instruction, and then use the specified The newly added application's display area and display size show the newly added application.
所述实时更新模块 21 , 设置为当确定用户调用的应用程序为正在运行 的应用程序时, 根据优先级更新测量, 将调用的正在运行的应用程序的优 先级加一, 判断该应用程序为前台应用程序还是后台应用程序, 如果是前 台应用程序, 则向显示交互模块 22发出高亮显示该前台应用程序的窗口的 指令, 且根据优先级更新策略将该应用程序的优先级设置为当前所有运行 的应用程序的优先级中的最大值加一, 以及将该应用程序的名称、 业务类 型、 显示区域、 显示大小及优先级发送给存储模块 25; 如果是后台应用程 序, 则选取一个前台应用程序, 将该前台应用程序切换到后台运行, 则向 显示交互模块 22发出取消显示切换到后台运行的原前台应用程序的指令, 再将用户调用的该后台应用程序切换成前台运行状态, 显示窗口的显示区 域和显示大小与切换到后台运行的应用程序相同, 且向显示交互模块 22发 出高亮显示该应用程序的窗口的指令, 根据优先级更新策略将该应用程序 的优先级设置为当前所有运行的应用程序的优先级中的最大值加一, 及通 知存储模块 25保存该应用程序的名称、 业务类型、 显示区域、 显示大小及 优先级。  The real-time update module 21 is configured to, when determining that the application invoked by the user is a running application, update the measurement according to the priority, increase the priority of the called running application by one, and determine that the application is the foreground. The application is also a background application, and if it is a foreground application, an instruction to highlight the window of the foreground application is issued to the display interaction module 22, and the priority of the application is set to all current operations according to the priority update policy. The maximum value of the application's priority plus one, and send the application's name, business type, display area, display size and priority to the storage module 25; if it is a background application, select a foreground application When the foreground application is switched to run in the background, the display interaction module 22 issues an instruction to cancel the display of the original foreground application that is switched to the background, and then switches the background application invoked by the user to the foreground running state, and displays the window. Display area and display size and Switching to the application running in the background is the same, and issuing an instruction to the display interaction module 22 to highlight the window of the application, setting the priority of the application to the priority of all currently running applications according to the priority update policy. The maximum value in the plus one, and the notification storage module 25 saves the name, service type, display area, display size, and priority of the application.
所述实时更新模块 21 , 设置为根据优先级更新策略周期性更新当前运 行的应用程序的优先级之后, 检测是否有任意一个后台应用程序的优先级 高于任意一个前台应用程序, 及前台应用程序个数是否 d、于系统设置前台 显示应用程序的上限值。  The real-time update module 21 is configured to periodically check whether the priority of the currently running application is higher than any of the foreground applications, and the foreground application after the priority of the currently running application is periodically updated according to the priority update policy. Whether the number is d or not, the upper limit of the application is displayed in the foreground of the system setting.
所述实时更新模块 21 , 设置为当检测到有任意一个后台应用程序的优 先级高于任意一个前台应用程序时, 通知显示交互模块 22取消显示原前台 应用程序、 使用原前台应用程序的显示窗口的显示区域和显示大小显示优 先级高于前台应用程序的后台应用程序, 且根据优先级更新策略更新该调 整至前台的应用程序的优先级, 以及通知存储模块 25保存该应用程序的名 称、 业务类型、 显示区域、 显示大小及优先级。 The real-time update module 21 is configured to notify the display interaction module 22 to cancel the display of the original foreground when it is detected that any of the background applications has a higher priority than any of the foreground applications. The application, the display area and the display size of the display window using the original foreground application display a background application having a higher priority than the foreground application, and the priority of the application adjusted to the foreground is updated according to the priority update policy, and the notification The storage module 25 saves the name, service type, display area, display size, and priority of the application.
所述实时更新模块 21 ,设置为当检测到显示交互模块 22的主屏幕上当 前显示的应用程序个数小于系统设置前台显示应用程序的上限值时, 将优 先级较高的后台应用程序添加到显示交互模块 22的主屏幕中, 且根据优先 级更新策略更新该调整至前台的应用程序的优先级, 以及通知存储模块 25 保存该应用程序的名称、 业务类型、 显示区域、 显示大小及优先级。  The real-time update module 21 is configured to add a background application with a higher priority when it is detected that the number of applications currently displayed on the main screen of the display interaction module 22 is less than the upper limit of the system setting foreground display application. Going to the main screen of the display interaction module 22, and updating the priority of the application adjusted to the foreground according to the priority update policy, and notifying the storage module 25 to save the name, service type, display area, display size, and priority of the application. level.
所述实时更新模块 21 , 设置为根据用户选定的添加应用程序的方式进 行操作, 若用户选定的添加应用程序的方式为逐一增加在主屏幕上显示的 应用程序, 则提示用户选定显示比例, 再按照显示比例、 及按照后台运行 的应用程序的优先级从高到低的顺序, 依次将后台应用程序添加到显示交 互模块 22的主屏幕窗口中, 直至前台显示应用程序的数量达到前台显示应 用程序的上限值; 若用户选定的添加应用程序的方式为一次性增加在主屏 幕上显示多个应用程序, 则根据预置的显示应用程序的多窗口上限值, 按 照优先级从高到低的顺序选出可以添加在前台主屏幕上的应用程序, 再根 据预置的显示比例, 计算出一次性添加在主屏幕的应用程序的窗口的显示 区域和显示大小, 并一次性将选中的所有应用程序添加到显示交互模块 22 的主屏幕的显示窗口中。  The real-time update module 21 is configured to operate according to a manner of adding an application selected by the user. If the manner of adding the application selected by the user is to increase the application displayed on the main screen one by one, the user is prompted to select the display. Proportion, and then add the background application to the main screen window of the display interaction module 22 in order according to the display ratio and the priority of the application running in the background, until the number of applications displayed in the foreground reaches the foreground. Display the upper limit of the application; if the user selects the method of adding the application as a one-time increase to display multiple applications on the main screen, according to the preset multi-window upper limit of the display application, according to the priority Select the application that can be added to the main screen of the foreground from the highest to the lowest order, and then calculate the display area and display size of the window of the application added to the main screen at one time according to the preset display ratio, and one time Add all selected applications to the display window of the home screen displaying the interaction module 22 In the mouth.
所述实时更新模块 21 , 设置为当确认用户调用的应用程序为新增的应 用程序、 且当前显示应用程序的窗口数小于显示窗口上限值时, 根据预置 的优先级更新策略将该新增的应用程序的优先级设为默认优先级, 通过显 示交互模块 22提示用户选择显示窗口的显示比例, 接收显示交互模块 22 返回的用户选定显示窗口的显示比例, 根据显示窗口的显示比例判断是否 需要替换前台应用程序。 The real-time update module 21 is configured to: when it is confirmed that the application invoked by the user is a newly added application, and the number of windows of the currently displayed application is less than the upper limit of the display window, the new update policy according to the preset priority The priority of the added application is set as the default priority. The display interaction module 22 prompts the user to select the display scale of the display window, and receives the display ratio of the user selected display window returned by the display interaction module 22, and determines according to the display ratio of the display window. Whether Need to replace the foreground application.
所述实时更新模块 21 , 设置为按照用户选定的显示比例计算出新增的 应用程序所需要的显示窗口的显示大小, 根据新增的应用程序所需要的显 示窗口的显示大小, 判断添加了新增的应用程序后其他前台应用程序是否 能使用不低于预置的最小显示比例显示, 如果能, 则不需要替换前台应用 程序; 如果不能, 则需要替换前台应用程序。  The real-time update module 21 is configured to calculate the display size of the display window required by the newly added application according to the display ratio selected by the user, and determine the added according to the display size of the display window required by the newly added application. After the new application, other foreground applications can display the minimum display ratio not lower than the preset. If you can, you do not need to replace the foreground application; if not, you need to replace the foreground application.
所述实时更新模块 21 , 设置为当判定需要替换前台应用程序时, 选出 当前优先级最低的前台应用程序, 将该前台应用程序切换为后台应用程序, 然后调整剩余的前台应用程序的显示窗口的显示区域和显示大小, 按照用 户选定的显示窗口的显示比例、 计算出新增的应用程序的显示窗口的显示 区域和显示大小后, 按照计算出的显示区域和显示大小将新增的应用程序 添加在主屏幕的显示窗口中, 根据预置的优先级更新策略将该新增的应用 程序的优先级设为当前所有运行的应用程序的优先级中的最大值加一, 并 通知存储模块 25保存新增的应用程序的名称、 业务类型、 显示区域、 显示 大小及优先级。  The real-time update module 21 is configured to: when determining that the foreground application needs to be replaced, select the foreground application with the lowest priority, switch the foreground application to the background application, and then adjust the display window of the remaining foreground applications. Display area and display size, according to the display ratio of the display window selected by the user, calculate the display area and display size of the display window of the newly added application, the newly added application according to the calculated display area and display size The program is added in the display window of the main screen, and the priority of the newly added application is set to the maximum value among the priorities of all currently running applications according to the preset priority update policy, and the storage module is notified. 25 Save the name, business type, display area, display size, and priority of the newly added application.
所述实时更新模块 21 , 设置为查看切换到后台的应用程序的原显示窗 口的显示区域和显示大小, 与计算出的显示新增的应用程序所需的显示区 域和显示大小比较, 如果前者小于后者, 则将剩余的前台应用程序的显示 窗口调整为最小显示比例; 如果前者不小于后者, 则不调整剩余的前台应 用程序的显示窗口的显示区域和显示大小, 直接将新增的应用程序添加到 切换到后台的应用程序的原显示窗口中。  The real-time update module 21 is configured to view a display area and a display size of the original display window of the application switched to the background, and compare with the calculated display area and display size required for displaying the newly added application, if the former is smaller than In the latter case, the display window of the remaining foreground application is adjusted to the minimum display scale; if the former is not smaller than the latter, the display area and display size of the display window of the remaining foreground application are not adjusted, and the newly added application is directly added. The program is added to the original display window of the application switched to the background.
所述实时更新模块 21 , 设置为当判定不需要替换前台应用程序时, 调 整剩余的前台应用程序的显示窗口的显示区域和显示大小, 将新增的应用 程序按照用户选定的显示比例添加在前台显示窗口中, 根据预置的优先级 更新策略将该新增的应用程序的优先级设为当前所有运行的应用程序的优 先级中的最大值加一, 并通知存储模块 25保存新增的应用程序的名称、 业 务类型、 显示区域、 显示大小及优先级。 The real-time update module 21 is configured to adjust a display area and a display size of a display window of the remaining foreground application when it is determined that the foreground application does not need to be replaced, and add the newly added application according to a display ratio selected by the user. In the foreground display window, the priority of the newly added application is set to the priority of all currently running applications according to the preset priority update policy. The maximum value in the first level is incremented by one, and the storage module 25 is notified to save the name, service type, display area, display size, and priority of the newly added application.
以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的保 护范围。  The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention.

Claims

1、 一种多窗口显示应用程序的方法, 该方法包括:
Figure imgf000021_0001
1. A method of displaying an application in a multi-window, the method comprising:
Figure imgf000021_0001
且所述终端多窗口显示前台应用程序。 And the terminal multi-window displays the foreground application.
2、 根据权利要求 1所述的方法, 其中, 所述优先级更新策略为: 根据 应用程序的运行状况及应用程序所要使用到的终端的其他功能, 设定运行 中的应用程序的优先级的规则。  2. The method according to claim 1, wherein the priority update policy is: setting a priority of a running application according to an operating condition of the application and other functions of the terminal to be used by the application. rule.
3、 根据权利要求 1所述的方法, 其中, 所述终端根据优先级更新策略 周期性更新运行中的应用程序的优先级, 包括: 终端实时判断是否接收到 对应用程序的调用指令, 如果接收到, 则判断用户调用的应用程序为新增 的应用程序还是正在运行的应用程序; 如果没有接收到, 则继续根据优先  The method according to claim 1, wherein the terminal periodically updates the priority of the running application according to the priority update policy, including: the terminal determines in real time whether the call instruction to the application is received, if the receiving To, determine whether the application called by the user is a new application or a running application; if not received, continue to be based on the priority
4、 根据权利要求 1所述的方法, 其中, 所述终端多窗口显示前台应用 程序, 包括: 当终端要显示的前台应用程序为新增的应用程序时, 若终端 主屏幕中的已有显示窗口数量小于显示窗口上限值, 则终端根据指定的显 示比例添加显示所述前台应用程序的显示窗口; 若终端主屏幕中的显示窗 口数量不小于显示窗口上限值, 则终端使用切换到后台的应用程序的原显 示窗口显示新增的应用程序; 4. The method according to claim 1, wherein the terminal multi-window displays the foreground application, comprising: when the foreground application to be displayed by the terminal is a newly added application, if the existing display in the main screen of the terminal If the number of windows is less than the upper limit of the display window, the terminal adds a display window for displaying the foreground application according to the specified display scale; if the number of display windows in the main screen of the terminal is not less than the upper limit of the display window, the terminal uses the switch to the background. The original display window of the application displays the newly added application;
当终端要显示的前台应用程序为正在运行的应用程序时, 高亮所述应 用程序的显示窗口。  When the foreground application to be displayed by the terminal is a running application, the display window of the application is highlighted.
5、 根据权利要求 1所述的方法, 其中, 所述根据应用程序的优先级切 换前台应用程序及后台应用程序, 包括: 当有后台应用程序的优先级高于 前台应用程序时, 将该后台应用程序切换到前台显示, 显示窗口的显示区 域和显示大小与切换到后台运行的应用程序相同; 当主屏幕上当前显示的 应用程序个数小于系统设置前台显示应用程序的上限值时, 将优先级较高 的后台应用程序切换为前台应用程序。 5. The method according to claim 1, wherein the switching the foreground application and the background application according to the priority of the application comprises: when the priority of the background application is higher than the foreground application, the background is The application switches to the foreground display, and the display area and display size of the display window are the same as those of the application that is switched to the background; when the main screen is currently displayed When the number of applications is less than the upper limit of the system setting foreground display application, the background application with higher priority is switched to the foreground application.
6、 根据权利要求 1或 5所述的方法, 其中, 所述根据应用程序的优先 级切换前台应用程序及后台应用程序之后, 该方法还包括: 保存作出调整 的应用程序的名称、 业务类型、 显示区域、 显示大小及优先级。  The method according to claim 1 or 5, wherein after the foreground application and the background application are switched according to the priority of the application, the method further includes: saving the name of the application that makes the adjustment, the type of the service, Display area, display size, and priority.
7、 根据权利要求 1所述的方法, 其中, 所述终端根据优先级更新策略 周期性更新运行中的应用程序的优先级, 包括: 终端根据网络信号强弱状 态、 电量状态和通讯功能的应用程序的名称、 及优先级更新策略更新运行 中的应用程序的优先级。  The method according to claim 1, wherein the terminal periodically updates the priority of the running application according to the priority update policy, including: the application of the terminal according to the network signal strength state, the power state, and the communication function The name of the program, and the priority update policy update the priority of the running application.
8、 一种终端, 该终端包括: 实时更新模块和显示交互模块; 其中,  8. A terminal, the terminal comprising: a real-time update module and a display interaction module; wherein
通知显示交互模块多窗口显示前台应用程序; The notification display interaction module multi-window displays the foreground application;
显示交互模块, 设置为根据实时更新模块发来的通知多窗口显示前台 应用程序。  The interactive module is displayed, and is set to display the foreground application according to the notification multi-window sent by the real-time update module.
9、 根据权利要求 8所述的终端, 其中,  9. The terminal according to claim 8, wherein
所述实时更新模块, 还设置为保存根据应用程序的运行状况及应用程 序所要使用到的终端的其他功能, 设定运行中的应用程序的优先级的规则 组成的优先级更新策略。  The real-time update module is further configured to save a priority update policy composed of rules for setting the priority of the running application according to the running status of the application and other functions of the terminal to be used by the application.
10、 根据权利要求 8所述的终端, 其中,  10. The terminal according to claim 8, wherein
所述实时更新模块, 还设置为实时判断是否接收到对应用程序的调用 指令, 如果接收到, 则判断用户调用的应用程序为新增的应用程序还是正 在运行的应用程序; 如果没有接收到, 则继续根据优先级更新策略周期性 更新运行中的应用程序的优先级。  The real-time update module is further configured to determine in real time whether a call instruction to the application is received, and if received, determine whether the application invoked by the user is a new application or a running application; if not received, The priority of the running application is then periodically updated according to the priority update policy.
11、 根据权利要求 8所述的终端, 其中, 所述实时更新模块, 设置为当判定要显示的前台应用程序为新增的应 用程序, 若显示交互模块的主屏幕中的已有显示窗口数量小于显示窗口上 限值, 则根据指定的显示比例在显示交互模块中添加显示所述前台应用程 序的显示窗口, 若主屏幕中的显示窗口数量不小于显示窗口上限值, 则使 用切换到后台的应用程序的原显示窗口在显示交互模块中显示新增的应用 程序, 当要显示的前台应用程序为正在运行的应用程序时, 通知显示交互 模块高亮所述应用程序的显示窗口。 11. The terminal according to claim 8, wherein The real-time update module is configured to determine that the foreground application to be displayed is a newly added application, and if the number of existing display windows in the main screen of the interactive module is less than the upper limit of the display window, according to the specified display ratio Adding a display window for displaying the foreground application in the display interaction module. If the number of display windows in the main screen is not less than the upper limit of the display window, the original display window of the application switched to the background is displayed in the display interaction module. The newly added application, when the foreground application to be displayed is a running application, the notification display interaction module highlights the display window of the application.
12、 根据权利要求 8所述的终端, 其中,  12. The terminal according to claim 8, wherein
所述实时更新模块, 设置为当判定有后台应用程序的优先级高于前台 应用程序时, 在显示交互模块中取消显示该前台应用程序, 将该后台应用 程序切换到前台由显示交互模块显示, 显示窗口的显示区域和显示大小与 切换到后台运行的应用程序相同; 当判定主屏幕上当前显示的应用程序个 数小于系统设置前台显示应用程序的上限值时, 将优先级较高的后台应用 程序添加到显示交互模块的主屏幕中切换为前台应用程序进行显示。  The real-time update module is configured to cancel display of the foreground application in the display interaction module when the priority of the background application is determined to be higher than that of the foreground application, and switch the background application to the foreground by the display interaction module. The display area and display size of the display window are the same as those of the application that is switched to the background. When it is determined that the number of applications currently displayed on the main screen is less than the upper limit of the system setting foreground display application, the background with higher priority will be displayed. The application is added to the main screen of the display interaction module to switch to the foreground application for display.
13、 根据权利要求 8所述的终端, 其中, 所述终端, 还包括: 存储模 块, 设置为保存实时更新模块发来的应用程序的名称、 业务类型、 显示区 域、 显示大小及优先级;  The terminal according to claim 8, wherein the terminal further comprises: a storage module, configured to save an application name, a service type, a display area, a display size, and a priority sent by the real-time update module;
相应的, 所述实时更新模块, 设置为将作出调整的应用程序的名称、 业务类型、 显示区域、 显示大小及优先级保存到存储模块。  Correspondingly, the real-time update module is configured to save the name, service type, display area, display size, and priority of the adjusted application to the storage module.
14、 根据权利要求 8所述的终端, 其中, 所述终端, 还包括: 状态监 控模块和通讯模块;  The terminal according to claim 8, wherein the terminal further comprises: a status monitoring module and a communication module;
所述状态监控模块, 设置为周期性监控终端的网络信号强弱状态和电 量状态, 并将网络信号强弱状态和电量状态发送给实时更新模块;  The status monitoring module is configured to periodically monitor the network signal strength state and the power state of the terminal, and send the network signal strength state and the power state to the real-time update module;
所述通讯模块, 设置为周期性向实时更新模块提供使用到通讯功能的 应用程序的名称; 相应的, 所述实时更新模块, 还设置为接收状态监控模块和通讯模块 发来的网络信号强弱状态、 电量状态和通讯功能的应用程序的名称, 根据 网络信号强弱状态、 电量状态和通讯功能的应用程序的名称、 及优先级更 新策略更新运行中的应用程序的优先级。 The communication module is configured to periodically provide a real-time update module with a name of an application that uses the communication function; Correspondingly, the real-time update module is further configured to receive a network signal strength state, a power state, and a communication function application name sent by the state monitoring module and the communication module, according to the network signal strength state, the power state, and the communication The name of the functional application, and the priority update policy update the priority of the running application.
PCT/CN2012/071256 2011-12-08 2012-02-17 Method and terminal for displaying application in multiple windows WO2013082886A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110406432.9 2011-12-08
CN201110406432.9A CN103164269B (en) 2011-12-08 2011-12-08 Method and terminal achieving multi-window display of application programs

Publications (1)

Publication Number Publication Date
WO2013082886A1 true WO2013082886A1 (en) 2013-06-13

Family

ID=48573534

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/071256 WO2013082886A1 (en) 2011-12-08 2012-02-17 Method and terminal for displaying application in multiple windows

Country Status (2)

Country Link
CN (1) CN103164269B (en)
WO (1) WO2013082886A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105843616A (en) * 2016-03-22 2016-08-10 乐视网信息技术(北京)股份有限公司 Menu information updating method and apparatus

Families Citing this family (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104571781B (en) * 2013-10-18 2018-01-26 北大方正集团有限公司 More application widget display methods and counter management apparatus in Android system
CN106897077B (en) * 2013-12-02 2020-11-10 海信视像科技股份有限公司 Application program control method
CN104834553B (en) * 2014-02-12 2020-04-17 中兴通讯股份有限公司 Service concurrent processing method of user terminal and user terminal
CN103838630A (en) * 2014-03-03 2014-06-04 联想(北京)有限公司 Information processing method, system and electronic equipment
CN104050035B (en) * 2014-05-14 2018-05-25 小米科技有限责任公司 The processing method and processing device of application program
CN104598100B (en) * 2014-12-22 2019-06-25 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN105988662B (en) * 2015-03-06 2020-06-23 阿里巴巴集团控股有限公司 Display method and system of multiple application windows on mobile terminal
CN107783833B (en) * 2016-08-25 2020-04-28 华为技术有限公司 Management method and device for terminal background application program
CN106339268B (en) * 2016-09-12 2018-01-16 广东欧珀移动通信有限公司 application control method and intelligent terminal
CN108614697B (en) * 2016-12-13 2021-03-30 华为技术有限公司 Background Dex compiling control method and device
CN106528298A (en) * 2016-12-29 2017-03-22 努比亚技术有限公司 Resource distribution method and device
CN107133031B (en) * 2017-03-31 2021-01-01 武汉斗鱼网络科技有限公司 Information display method and device
CN108874109A (en) * 2017-05-16 2018-11-23 复旦大学 The method for cleaning and device of background application
WO2019084783A1 (en) * 2017-10-31 2019-05-09 深圳市云中飞网络科技有限公司 Service scheduling method and apparatus, computer device, and computer readable storage medium
CN109271074A (en) 2018-09-05 2019-01-25 Oppo广东移动通信有限公司 A kind of window regulation method, window adjusting means and mobile terminal
CN109726000A (en) * 2018-12-29 2019-05-07 苏州思必驰信息科技有限公司 The management method of more application views, for more application views management device and operating method
WO2020133408A1 (en) * 2018-12-29 2020-07-02 深圳市欢太科技有限公司 Application program priority level adjustment method and apparatus, and storage medium and electronic device
CN111913750B (en) * 2019-05-10 2022-04-22 华为技术有限公司 Application program management method, device and equipment
CN110209479A (en) * 2019-05-16 2019-09-06 珠海格力电器股份有限公司 Method and device for switching application programs, terminal equipment and storage medium
JP7287235B2 (en) * 2019-10-08 2023-06-06 富士フイルムビジネスイノベーション株式会社 Information processing device and information processing program
CN113806030A (en) * 2020-07-24 2021-12-17 荣耀终端有限公司 Application scheduling method and electronic equipment
CN112416277B (en) * 2020-11-04 2024-09-03 上海郡码智能科技有限公司 Multi-screen display method and device of vehicle-mounted system, vehicle-mounted system and storage medium
CN113094158B (en) * 2021-03-15 2024-07-02 国政通科技有限公司 Service drive calling method, calling device, electronic equipment and storage medium
US11934850B2 (en) 2021-08-06 2024-03-19 Samsung Electronics Co., Ltd Electronic device for displaying execution screen of application, operating method thereof, and storage medium
CN113703903A (en) * 2021-09-10 2021-11-26 广州朗国电子科技股份有限公司 Split screen display method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1345170A (en) * 2000-09-27 2002-04-17 日本电气株式会社 Portable telephone set and window switching control method
CN1499354A (en) * 2002-11-11 2004-05-26 �ձ�������ʽ���� Multi-window displaying appts, and multi-window management method
CN101315603A (en) * 2007-05-31 2008-12-03 株式会社Ntt都科摩 Information processing device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102063261A (en) * 2011-01-19 2011-05-18 宇龙计算机通信科技(深圳)有限公司 Starting method of application program and mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1345170A (en) * 2000-09-27 2002-04-17 日本电气株式会社 Portable telephone set and window switching control method
CN1499354A (en) * 2002-11-11 2004-05-26 �ձ�������ʽ���� Multi-window displaying appts, and multi-window management method
CN101315603A (en) * 2007-05-31 2008-12-03 株式会社Ntt都科摩 Information processing device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105843616A (en) * 2016-03-22 2016-08-10 乐视网信息技术(北京)股份有限公司 Menu information updating method and apparatus
WO2017161763A1 (en) * 2016-03-22 2017-09-28 乐视控股(北京)有限公司 Menu information updating method and device

Also Published As

Publication number Publication date
CN103164269A (en) 2013-06-19
CN103164269B (en) 2017-05-03

Similar Documents

Publication Publication Date Title
WO2013082886A1 (en) Method and terminal for displaying application in multiple windows
US11049499B2 (en) Communication method, server, and device
US10754520B2 (en) Method and apparatus for managing an application being executed in a portable terminal
CN106201409B (en) Processing method and system for application program operation interface
KR101907182B1 (en) Application program control method and related apparatus
US9485364B2 (en) Method of displaying icons according to service usage states and mobile terminal supporting the same
CN104461724A (en) Method and device for controlling split screens of terminal
WO2020259354A1 (en) Queue adjustment method, apparatus and device, and computer-readable storage medium
CN106201249B (en) Display method and display device of notification information
US20160291837A1 (en) Application Icon Adaptive Adjustment Method and Terminal
WO2017181490A1 (en) Application program performance prompting method and system
WO2021169497A1 (en) Network selection method and electronic device
EP3641303B1 (en) Method for controlling multimedia conference terminal, and multimedia conference server
WO2012152035A1 (en) Method and mobile terminal for handling concurrent services
WO2016095416A1 (en) Network switching terminal, method, and system
WO2022012617A1 (en) Message display method and apparatus, and electronic device and storage medium
JP2023020696A5 (en)
CN104506732B (en) System switching method and device based on contact person
WO2015096076A1 (en) Display processing method for transient interface, and terminal
US20160274955A1 (en) Method and Device for Activating and Controlling Application in Multi-Screen System, and Mobile Terminal
JP6310910B2 (en) COMMUNICATION PROCESSING METHOD, DEVICE, PROGRAM, AND RECORDING MEDIUM
EP3691261A1 (en) Method and device for locating video service fault, and storage medium
WO2019000291A1 (en) Intelligent terminal test method, device, and system
WO2015101064A1 (en) Application program shortcut operation method, device and terminal
CN103685984A (en) Video signal source automatic switching method and television

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12854824

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12854824

Country of ref document: EP

Kind code of ref document: A1