WO2024007760A1 - 界面显示方法、装置、电子设备及存储介质 - Google Patents

界面显示方法、装置、电子设备及存储介质 Download PDF

Info

Publication number
WO2024007760A1
WO2024007760A1 PCT/CN2023/096343 CN2023096343W WO2024007760A1 WO 2024007760 A1 WO2024007760 A1 WO 2024007760A1 CN 2023096343 W CN2023096343 W CN 2023096343W WO 2024007760 A1 WO2024007760 A1 WO 2024007760A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
display
interface
background
task
Prior art date
Application number
PCT/CN2023/096343
Other languages
English (en)
French (fr)
Inventor
王利国
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2024007760A1 publication Critical patent/WO2024007760A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Definitions

  • the present application relates to the field of display technology, and in particular to an interface display method, device, electronic equipment and storage medium.
  • the recent task list is used to display the background surviving applications of electronic devices, making it easier for users to switch applications and clean up the application background.
  • the electronic device uses the desktop image as the background image of the recent task list, and both the current application and the background surviving application are displayed in the recent task list in the form of task cards. In this way, when the user returns to the current application after switching applications in the recent task list or clearing the application background, the current application will be restarted, which degrades the user experience.
  • This application proposes an interface display method, device, electronic device and storage medium to prevent the current application from restarting when returning to the current application from a recent task.
  • embodiments of the present application provide an interface display method.
  • the method includes: displaying an application interface of a foreground application currently running in the foreground; in response to a first triggering operation, in a partial area of the application interface
  • the task identification corresponding to the target application is superimposed and displayed in the middle, and the target application includes at least part of the background application that was running in the background before receiving the first triggering operation.
  • an interface display device which includes: an interface display module and an operation response module.
  • the interface display module is used to display the application interface of the foreground application currently running in the foreground;
  • the operation response module is used to respond to the first trigger operation and superimpose and display tasks corresponding to the target application in part of the application interface.
  • the target application program includes at least part of the background application program that was running in the background before receiving the first triggering operation.
  • embodiments of the present application provide an electronic device, including: one or more processors; a memory; and one or more programs, wherein the one or more programs are stored in the memory and configured For execution by the one or more processors, the one or more programs are configured to perform the above-described method.
  • embodiments of the present application provide a computer-readable storage medium, the computer-readable storage medium stores program code, and the program code can be called by a processor to execute the above method.
  • Figure 1 shows a schematic interface diagram of the application interface of the current application provided by an embodiment of the present application.
  • Figure 2 shows a schematic interface diagram of recent tasks provided by an embodiment of the present application.
  • Figure 3 shows a schematic flowchart of an interface display method provided by an embodiment of the present application.
  • Figure 4 shows a schematic interface diagram of recent tasks provided by another embodiment of the present application.
  • FIG. 5 shows a schematic flowchart of sub-steps of step S120 in FIG. 3 in some embodiments.
  • Figure 6 shows a schematic diagram of the life cycle of Activity in the Android system provided by an embodiment of the present application.
  • Figure 7 shows a schematic flowchart of visibility and life cycle changes when a foreground application enters a recent task provided by an embodiment of the present application.
  • Figure 8 shows a schematic flowchart of an interface display method provided by another embodiment of the present application.
  • Figure 9 shows a schematic interface diagram of recent tasks provided by another embodiment of the present application.
  • Figure 10 shows a schematic flowchart of an interface display method provided by yet another embodiment of the present application.
  • Figure 11 shows an operational schematic diagram of the second triggering operation in a recent task provided by an embodiment of the present application.
  • Figure 12 shows a schematic flowchart of an interface display method provided by yet another embodiment of the present application.
  • Figure 13 shows a schematic interface diagram of recent tasks provided by another embodiment of the present application.
  • Figure 14 shows an operational schematic diagram of the third triggering operation in a recent task provided by an embodiment of the present application.
  • Figure 15 shows a schematic interface diagram of recent tasks provided by another embodiment of the present application.
  • Figure 16 shows a schematic interface diagram of recent tasks provided by yet another embodiment of the present application.
  • Figure 17 shows a schematic interface diagram of recent tasks provided by yet another embodiment of the present application.
  • Figure 18 shows a schematic flowchart of an interface display method provided by yet another embodiment of the present application.
  • Figure 19 shows a schematic interface diagram of recent tasks provided by another embodiment of the present application.
  • Figure 20 shows a schematic interface diagram of recent tasks provided by yet another embodiment of the present application.
  • Figure 21 shows a schematic interface diagram of recent tasks provided by yet another embodiment of the present application.
  • Figure 22 is a block diagram of an interface display device provided according to an embodiment of the present application.
  • FIG. 23 is a block diagram of an electronic device used to perform an interface display method according to an embodiment of the present application.
  • Figure 24 is a storage unit used to save or carry the program code for implementing the interface display method according to the embodiment of the present application.
  • the setting application is the current application
  • the interface 101 is the application interface of the current application.
  • Figure 2 shows the display interface for entering recent tasks from the setting application.
  • the interface 201 is The background image of the desktop is used as the background interface
  • the zoom interface 202 of the setting application is the first task card in the recent tasks
  • the zoom interface 203 of the online mall application is the second task card, wherein the zoom interface 202 and The zoom interface 203 is superimposed and displayed on the background interface 201.
  • the inventor proposes an interface display method, device, electronic device and storage medium.
  • the task identifier corresponding to the target application is superimposed and displayed in a partial area of the application interface of the foreground application.
  • the interface display method provided by the embodiment of the present application is described in detail below.
  • FIG. 3 is a schematic flowchart of an interface display method provided by an embodiment of the present application.
  • the interface display method provided by the embodiment of the present application will be described in detail below with reference to FIG. 3 .
  • the interface display method may include the following steps:
  • Step S110 Display the application interface of the foreground application currently running in the foreground.
  • the foreground application can be understood as an application that is visible on the screen of the electronic device and that the user can interact with, such as running game applications, instant messaging applications, shopping applications, and settings. application, etc.; correspondingly, the first interface is the application interface currently displayed by the foreground application.
  • the foreground application as the settings application as an example, please refer to Figure 1, which shows the application interface of the settings application.
  • electronic devices include but are not limited to smartphones, tablet computers, e-book readers, laptop computers, car computers, desktop computers, smart TVs, wearable devices, etc.
  • Step S120 In response to the first trigger operation, superimpose and display the task identifier corresponding to the target application program in a partial area of the application interface.
  • the target application program includes at least part of the program that was running in the background before receiving the first trigger operation. Background application.
  • the electronic device responds to the first trigger operation and displays recent tasks. Displays recent tasks
  • the display can be specifically performed by overlaying and displaying the task identifier corresponding to the target application in some areas of the application interface.
  • the task identification includes at least one or more of an interface screenshot of the history display interface of the application program, an application icon, an application name, and content information of the history display interface. In this way, the user can select the background application he wants to view or the background application to be cleared based on the task identification, which improves the convenience of operation.
  • recent tasks can be understood as applications that have been launched within a specified time period.
  • the specified time period can be a time period before the current time and a specified period of time away from the current time.
  • the specified period of time can be the default period of the electronic device, for example, 2 hour, 3 hours, etc.; of course, the user can also adjust the default duration according to actual needs.
  • the electronic device can provide a corresponding duration setting interface, and the user can adjust the specified duration in the duration setting interface.
  • the above-mentioned target application is at least part of the background application that has been started and is running in the background during the specified time period before responding to the first triggering operation. That is to say, the electronic device can display recent tasks in response to the first trigger operation, that is, superimpose and display task identifiers corresponding to background applications that have been launched within a specified time period and are running in the background in some areas of the application interface.
  • the above-mentioned target application only includes the background application before receiving the first trigger operation. Specifically, when determining the target application, You can call the loadTasksInBackground method to filter out foreground applications and determine only the background application before the first trigger operation as the target application.
  • the above target application includes at least part of the background application. Applications, of course, when the number of background applications is small, the target application can also include all background applications.
  • the above-mentioned first triggering operation includes but is not limited to: sliding operation, click operation, or long press operation, etc.
  • the area responding to the above sliding operation can be a certain control, or a certain area specified on the screen or on the edge.
  • the sliding direction can be from left to right, from right to left, from top to bottom, or from bottom to Up, 45 degree direction or 30 degree direction, etc.
  • controls can refer to components that provide or implement user interface functions. Components encapsulate data and methods. Components can have their own properties and methods.
  • the control may be displayed on the lower edge, upper edge, left edge, or right edge of the interface. Of course, the above control can also be displayed at any position such as the middle area of the interface.
  • the embodiment of the present application does not limit the specific position of the above control in the interface.
  • the click operation may be a single click operation, a double click operation, etc.
  • the area that responds to a click operation can be a control, an area specified on the screen or at the edge, or a physical button, such as the "home" button.
  • a long press operation may refer to an operation on the screen that exceeds a preset duration.
  • the preset duration may be a preset duration, such as 2 seconds.
  • the area that responds to the long press operation may be a certain control, a certain area specified on the screen or at the edge, or it may be a physical button, such as the "home” button, which is not limited in this embodiment.
  • Figure 4 shows that the history corresponding to the target application is overlaid and displayed in some areas of the application interface 401 of the settings application.
  • Interface screenshots of the display interface wherein the overlaid displayed interface screenshots include the history display interface 402 of the online mall application function program and the history chat interface 403 of the instant messaging application.
  • the application interface 401 is used as the display background image of the recent task, and the interface screenshot of the history display interface of the target application in the recent task is reduced and then superimposed and displayed on the application interface in the form of a slidingly selectable task card. 401 on.
  • step S120 may include the contents of steps S121 to S122:
  • Step S121 In response to the first trigger operation, call a preset pause function to control the foreground application to enter a pause state.
  • each display interface is a separate Activity.
  • Activity is an application component that provides a screen on which the user can Interact with an electronic device on a screen to complete a task.
  • Figure 6 shows a schematic diagram of the life cycle of Activity in the Android system.
  • Each Activity can respond to onCreate(), onStart(), onResume(), onPause(), onStop( when switching between foreground and background. ), onDestory() and other function calls make each Activity in a different running state by calling different functions.
  • onCreate() indicates that the Activity is being created, which is the first method of the life cycle. In this method, you can do some initialization work, such as calling setContentView to load page layout resources, initializing the data required by the Activity, etc.
  • onStart() indicates that the Activity is being started and is about to start. At this time, the Activity is already visible, but it has not yet appeared in the foreground and cannot interact with the user yet. At this time, it can actually be understood that the Activity has been displayed, but we cannot see it yet.
  • onResume() means that the Activity is already visible, appears in the foreground and starts to be active. At this time, the Activity must be at the top of the return stack and in a running state.
  • onStart and onResume indicate that the Activity is already visible, but the Activity is still in the background during onStart, and the Activity is only displayed in the foreground during onResume.
  • onPause() indicates that the Activity is being paused. You can do some work such as storing data, stopping animations, etc., but it cannot be too time-consuming because it will affect the display of the new Activity.
  • onPause() must be executed first before the new Activity's onResume will be executed.
  • implement. onStop() indicates that the Activity is about to stop, and you can do some heavyweight recycling work, which should not be too time-consuming.
  • onDestory() indicates that the Activity is about to be destroyed. This is the last callback of the Activity life cycle.
  • onRestart() indicates that the Activity is being restarted. Under normal circumstances, onRestart() will be called when the current Activity changes from invisible to visible again. This situation is usually caused by user behavior. For example, the user presses the Home button to switch to the desktop or the user opens a new Activity. At this time, the current Activity will be suspended, that is, onPause() and onStop() are executed. This situation will occur when the user returns to this Activity.
  • onStop() In the above Activity life cycle, the main difference between onStop() and onPause() is that if the new Activity started is a dialog-type Activity, that is, when the new Activity does not completely cover the currently displayed Activity, onPause() will be called function without calling the onStop() function. Among them, after calling the onPause() function, the suspended Activity will still remain active (that is, keep all states, member information, and remain connected to the window manager), and will only be forcibly terminated when the system memory is extremely low. ; After calling the onStop() function, when memory is needed elsewhere, the stopped Activity may be recycled by the system. That is to say, when there is insufficient memory, the system will give priority to recycling stopped activities.
  • the AppToOverviewAnimationProvider window animation is deleted, that is, the window scaling animation for the foreground application is not executed, and the application interface of the foreground application is always displayed directly as the background of the recent tasks. , that is, always visible. Therefore, when receiving the first trigger operation, the preset pause function (ie, onPause() function) will be called to control the Activity corresponding to the foreground application to enter the pause state. In other words, during the process of displaying recent tasks, the life cycle of the foreground application will only reach the paused state, but will not enter the next stop state.
  • the preset pause function ie, onPause() function
  • Step S122 Superimpose and display the task identifier corresponding to the target application program in a partial area of the application interface.
  • a new Activity corresponding to the recent task can be created, and the task identifier corresponding to the target application is the new Activity.
  • the system will automatically call the onCreate() function to create a new Activity, and call the OnStart() function to start the new Activity.
  • the OnResume() function will be called to make the new Activity appear in the foreground and be visible and interactive. .
  • ApplicationActivity1 is the application interface of the foreground application
  • LauncherActivity is the new interface.
  • the electronic device may call a preset recovery function to control the foreground application in the suspended state to resume the foreground running state, and switch the current display interface to the foreground.
  • the application's display interface is a real-time display interface determined based on the actual information to be displayed at the current moment when the foreground application resumes from the suspended state to the foreground running state; the sixth triggering operation may be to click on the application interface of the foreground application. Any visible area can be used to return to the foreground application from recent tasks.
  • the operation is simple and fast, and avoids the need in related technologies for users to slide back to the task card corresponding to the foreground application after sliding the task card of the recent task. Click the task card corresponding to the foreground application to return to the tedious operations of the foreground application.
  • the sixth trigger operation may also be a sliding operation or a long press operation.
  • the specific operation method please refer to the aforementioned description of the first trigger operation, which will not be described again here.
  • LauncherActivity is the display interface of recent tasks
  • ApplicationActivity1 is the new interface, that is, the application interface of the foreground application. It can be seen that when the user returns to the foreground application when there is no operation in recent tasks, the OnResume() function is directly called to promptly control the foreground application to restore the foreground running state, and switch the current display interface to the real-time display interface of the foreground application. That is, the foreground application will not be restarted, so that the user will not be aware of the foreground application currently being used when entering and exiting recent tasks, which improves the user experience.
  • the recent task display method in related technologies will cause the front-end When the application is restarted, that is, when the user returns to the foreground application from a recent task, he or she needs to refill the personal information that was filled in before entering the recent task, which greatly reduces the user experience. It can be seen that the display method of recent tasks in this embodiment is more friendly and convenient for user operations than the display method of recent tasks in the prior art.
  • the current display interface can be switched to the display interface of the application program corresponding to the task identification selected by the program switching operation; it is detected that the application interface is in the selected state.
  • call the preset stop function to control the foreground application to enter the stop state. That is to say, the user can select any task identifier from the task identifiers corresponding to the target application in a partial area of the application interface through the program switching operation.
  • the electronic device switches the current display interface to the program switching operation. The display interface of the application corresponding to the selected task ID.
  • LauncherActivity is the display interface of recent tasks
  • ApplicationActivity2 is any application in the target application.
  • Figure 7 shows the visibility and life cycle of the foreground application when entering the recent task in this embodiment.
  • Schematic diagram of the change process During the display of recent tasks, the foreground application has always been in the visible foreground state, causing the foreground application to be in a paused state instead of entering a stopped state, causing the system to directly release resources, thus allowing the user to enter from the foreground application.
  • Recent tasks and returning to the foreground application from recent tasks become insensitive. At the same time, it can also avoid the occurrence of problems such as the front-end application that may have its own logic problems and call the destroy() function to destroy itself when it is in a stopped state.
  • the application interface of the foreground application is always displayed as the background image of recent tasks, rather than being displayed in the form of a task card like other background applications, it avoids irregular operations by third-party developers, such as incorrect configuration and use.
  • the ExcludeFormRecents attribute causes problems such as the task card of the foreground application not being displayed in recent tasks, and the user being unable to return to the foreground application from recent tasks.
  • the application interface of the foreground application currently running in the foreground is displayed; in response to the first triggering operation for triggering the display of recent tasks, the display target is superimposed in part of the application interface of the current foreground application.
  • FIG. 8 is a schematic flowchart of an interface display method provided by another embodiment of the present application.
  • the interface display method provided by the embodiment of the present application will be described in detail below with reference to FIG. 8 .
  • the interface display method may include the following steps:
  • Step S210 Display the application interface of the foreground application currently running in the foreground.
  • step S210 for the specific implementation of step S210, reference can be made to the content in the foregoing implementation, and details will not be described again here.
  • Step S220 In response to the first triggering operation, obtain the time information when each background application in the plurality of background applications enters background running, and obtain the first time corresponding to each background application.
  • the number of background applications that are running in the background before responding to the first trigger operation is generally multiple.
  • the screen size of the electronic device is limited, and the task identifiers of all background applications may not be displayed at the same time.
  • the time information when each background application enters the background running can be obtained as the first time corresponding to each background application.
  • the display order of each background application can be determined based on the first time, making it easier for users to switch applications in recent tasks.
  • the multiple background applications may be applications in the background running state that have been launched within a specified period of time before the current time, or they may be all applications in the background running state that have been launched before the current time. In this embodiment There are no restrictions on this.
  • Step S230 Obtain the duration between the first time corresponding to each background application program and the current time, and obtain the first duration corresponding to each background application program.
  • Step S240 Sort the plurality of background applications based on the first duration in ascending order to obtain the first display order.
  • Step S250 Based on the first display order corresponding to multiple background applications, obtain the task identifiers corresponding to the first N background application applications in the first display order, where N is a positive integer, and the first display order is Determined based on the time each background application enters the background.
  • the electronic device can obtain the task identifiers corresponding to the first N background applications in the first display order, where N can be a system default value of the electronic device, for example, 4 or 5, etc.; of course, the user can also adjust this value according to his or her actual needs, which is not limited in this embodiment.
  • step S250 it is also possible to first determine whether the number of multiple background applications is greater than the value of N. If it is greater, perform the content of step S250; if it is not greater, directly display the multiple background applications in the first display order.
  • the task identification corresponding to the program is superimposed and displayed on some areas of the application interface.
  • Step S260 Superimpose and display the task identifiers corresponding to the first N background applications on a partial area of the application interface according to the first display order.
  • the task identifier may include an interface screenshot of the history display interface of the application and the application icon.
  • the interface screenshot of the history display interface corresponding to each background application is reduced according to the preset reduction parameters to obtain each background application. Thumbnail screenshots corresponding to the program; and then according to the first display order, the thumbnail screenshots corresponding to the first N background applications are superimposed and displayed in the first part of the application interface in the preset direction, and the thumbnail screenshots of the first K background applications are superimposed and displayed in the preset direction.
  • the application icon is also superimposed and displayed in a second partial area of the application interface in a preset direction, where the second partial area is an area other than the first partial area, and the value of K is greater than or equal to N.
  • the first partial area and the second partial area may be default areas of the electronic device.
  • the display positions of the first partial area and the second partial area may also be adjusted by the user according to their own viewing requirements.
  • the preset direction may be from left to right, from right to left, from top to bottom, from bottom to top, etc., which is not limited in this embodiment. In this way, the user can intuitively learn the display content in the history display interface of the background application through the thumbnail screenshot, and the task icon can more concisely and intuitively inform the user which background applications currently exist.
  • Figure 9 shows that according to the first display order, the thumbnail screenshots 901 of N background applications are superimposed and displayed in the direction from right to left on the application interface 903 of the setting application. A part of the area and the application icons 902 of the K background applications are superimposed and displayed on the second part of the application interface 903 of the setting application.
  • the N background applications include online mall applications and instant messaging applications
  • the application icons of the K background applications include online mall applications, instant messaging applications, browser applications, and address book applications. icon.
  • the first display order is determined based on the time when each background application enters the background operation, and the task identifiers corresponding to each background application in the multiple background applications are sequentially superimposed and displayed on the application interface.
  • FIG. 10 is a schematic flowchart of an interface display method provided by yet another embodiment of the present application.
  • the interface display method provided by the embodiment of the present application will be described in detail below with reference to FIG. 10 .
  • the interface display method may include the following steps:
  • Step S310 Display the application interface of the foreground application currently running in the foreground.
  • Step S320 In response to the first triggering operation, obtain the first display based on the first display order corresponding to multiple background applications.
  • the task identifiers corresponding to the first N background application programs in the sequence, where N is a positive integer, and the first display order is determined based on the time when each background application program enters the background running time.
  • Step S330 Superimpose and display the task identifiers corresponding to the first N background application applications on a partial area of the application interface according to the first display order.
  • Step S340 In response to the second triggering operation for the designated application program, stop running the designated application program, where the designated application program is any application program among the target applications.
  • the electronic device can respond to the second trigger operation for the designated application, stop running the designated application, that is, end the designated application.
  • the application runs in the background.
  • the second triggering operation may be a long press operation, a double-click operation, a sliding operation, etc. for a specified application.
  • the second trigger operation as a sliding operation, please refer to Figure 11.
  • Figure 11 includes an application interface 111 of the foreground application, a task identifier 112 of the online mall application, and a task identifier 113 of the instant messaging application. , the user presses and slides upward the task icon 112 of the online mall application to end the background operation of the online mall application.
  • Step S350 Obtain device parameters of the current electronic device.
  • the device parameters of the electronic device can be obtained, and the first display sequence can be updated according to the device parameters, so that the user can quickly find the task cards of the recent tasks displayed based on the updated first display sequence. Ends background running programs.
  • the device parameters refer to status parameters related to the device status of the electronic device.
  • the device parameters may include at least one or more of the remaining power value, processor occupancy rate and flow consumption value of the electronic device.
  • Step S360 Update the first display sequence according to the device parameters.
  • the device parameter is the remaining power value of the electronic device. If the remaining power value is less than a preset power threshold, the device is removed based on the power consumption of the application in descending order.
  • the plurality of background applications after the designated application are sorted to obtain the updated first display order. Understandably, when the user ends the designated application in a recent task, if the remaining power value is obtained to be less than the preset power threshold, it indicates that the current power of the current electronic device is too low, and the user has a very good purpose of ending the designated application. Perhaps in order to save the power consumption of electronic devices, subsequent users may also end the background running of other background applications to reduce the power consumption of electronic devices.
  • the electronic device can sort multiple background applications after removing the specified application according to the order of power consumption of the applications from large to small, and obtain the first display order after the update; and according to the first updated order
  • the task identifiers corresponding to the first N background applications among the plurality of background applications after the specified application is removed are superimposed and displayed on a partial area of the application interface.
  • the background applications that consume more power are displayed higher in the display order, which in turn allows the user to open the background applications cleared by recent tasks as applications that consume more power, thereby ending the background applications as few times as possible.
  • it can also greatly reduce the power consumption rate of electronic devices.
  • the device parameter is the processor occupancy rate of the electronic device. If the processor occupancy rate is greater than the preset occupancy rate, the processor occupancy rate of the application program is ordered from large to small, Sort the plurality of background applications after removing the designated application to obtain the updated first display order. Understandably, when the user ends the designated application in a recent task, if the processor occupancy rate is obtained to be greater than the preset occupancy rate, it indicates that the current processor of the current electronic device is under great pressure, and the user ends the designated application. It may be that the processor occupancy rate of the electronic device is too high, causing problems such as lagging in the foreground application. In order to improve the running speed of the foreground application, subsequent users may end the background running of other background applications to improve the efficiency of the electronic device.
  • the processing speed of the device Based on this, the electronic device can sort the multiple background applications after removing the specified application according to the order of the application's processor occupancy from large to small, and obtain the updated first display order; and according to the updated In the first display sequence, the task identifiers corresponding to the first N background applications among the plurality of background applications after removing the specified application are superimposed and displayed on a partial area of the application interface. In this way, the background applications with greater processor usage are displayed higher in the display order, which in turn causes the background applications cleared by the user to open recent tasks to be applications with greater processor usage, thereby ending the process in as little time as possible. While running background applications, it can also greatly increase the processing speed of electronic devices.
  • device parameters of the electronic device can also be obtained at the same time, and multiple background tasks in recent tasks can be adjusted according to the device parameters.
  • the display order of the application's task identifiers makes the recent task list after adjusting the display order more convenient for users to operate and improves user experience.
  • FIG. 12 is a flow diagram of an interface display method provided by yet another embodiment of the present application.
  • the interface display method provided by the embodiment of the present application will be described in detail below with reference to FIG. 12 .
  • the interface display method may include the following steps:
  • Step S410 Display the application interface of the foreground application currently running in the foreground.
  • step S410 for the specific implementation of step S410, reference can be made to the content in the foregoing implementation, and details will not be described again here.
  • Step S420 In response to the first triggering operation, in a partial area of the reduced application interface, tasks corresponding to the first M background applications in the second display order are superimposed and displayed according to the second display order.
  • the M is a positive integer
  • the second display order is determined based on the time when each background application enters the background running time.
  • the electronic device in response to the first triggering operation, uses the desktop picture as the display background of the recent task, superimposes and displays the reduced-size application interface on the designated area of the desktop picture, and at the same time, displays the reduced-size application interface
  • the task identification corresponding to the background application located first among the first M background applications is superimposed and displayed in some areas of the reduced-size application interface, and in accordance with the preset direction
  • the task identifiers corresponding to other background applications among the first M background applications in the second display order are displayed in sequence.
  • the size reduction can be carried out according to preset reduction parameters, and the preset direction can be from right to left, from left to right, from top to bottom or from bottom to top, which is not limited in this embodiment.
  • the preset direction can be from right to left, from left to right, from top to bottom or from bottom to top, which is not limited in this embodiment.
  • the first M background applications include online shopping mall applications and instant messaging applications, which are ranked first among the top M background applications.
  • the task identification 132 of the online shopping mall application is superimposed and displayed on part of the application interface 133 of the reduced-size setting application, and the previous items in the second display order are sequentially displayed in the background interface 131 from right to left.
  • the task identifiers corresponding to other background applications among the M background applications are, that is, the task identifier 134 of the instant messaging application function program is displayed on the left side of the online mall application.
  • the background interface 131 may use a desktop picture as a background, or may use other preset pictures as a background, which is not limited in this embodiment.
  • Step S430 In response to the third triggering operation, according to the second display sequence, the current superimposed image in the partial area of the application interface is The displayed task identification is updated, and the third triggering operation is used to switch the currently displayed task identification.
  • the user can view the task identifiers corresponding to other background applications in recent tasks by inputting a third trigger operation for switching the currently displayed task identifier.
  • the electronic device responds to the third trigger operation and performs the task in accordance with The second display sequence is to update the task identification currently superimposed and displayed in some areas of the application interface.
  • the third triggering operation may be a sliding operation.
  • Figure 14 includes a background interface 141 for recent tasks, an application interface 143 for a foreground application, a task identifier 142 for an online shopping mall application, and an instant messaging application. Task ID 144 of the program. The user can slide right on the screen of the electronic device.
  • the electronic device responds to the right slide operation and updates the task identifier 142 currently displayed superimposed in a partial area of the application interface 143 according to the second display sequence.
  • Figure 15 shows that the user swipes right on the screen in Figure 14 to update the recent task display interface after the task identification is updated, so that the task identification 142 of the online mall application is overwritten, and the instant messaging The task identification 144 of the application is superimposed and displayed on the application interface 143 of the setting application, where the task identification 145 is the task identification of the background application located behind the instant messaging application in the second display order.
  • the electronic device may respond to the first triggering operation, use the desktop picture as the display background of the recent task, and display the reduced-size application interface in the first area of the screen of the electronic device.
  • the task identifiers corresponding to the first M background applications in the second display order are displayed according to the second display order; further, the user can input a third trigger operation in the second area to Instruct the electronic device to update the task identification displayed in the second area. That is to say, the application interface of the foreground application is always displayed independently from the task identifier of the background application in recent tasks.
  • the foreground application is a settings application.
  • the electronic device responds to the first trigger operation.
  • the first M background applications are instant messaging applications and photo album applications.
  • the reduced size is
  • the application interface 163 of the setting application is displayed in the first area 161
  • the task identification 165 corresponding to the instant messaging application and the task identification 164 corresponding to the photo album application are displayed in the second area 162 according to the second display order; based on this, the third
  • the operation may be a sliding operation in the second area, and the sliding direction may be from right to left or from left to right.
  • the specific sliding direction is determined by the display direction of the task identification according to the second display order. .
  • the front-end application is a settings application.
  • the electronic device responds to the first trigger operation.
  • the first M background applications are instant messaging applications and photo album applications.
  • the application interface 173 of the settings application is displayed in the first area 171, and the task identification 175 corresponding to the instant messaging application and the task identification 174 corresponding to the photo album application are displayed in the second area 172 according to the second display order; based on this, the
  • the third operation may be a sliding operation in the second area.
  • the sliding direction may be from top to bottom or from bottom to top.
  • the specific sliding direction is determined by the display direction of the task identification according to the second display order. .
  • the electronic device enters the recent task from the foreground application.
  • the application interface of the foreground application is always displayed on the designated area of the desktop background, that is, the display area is fixed and is used to switch the currently displayed task identifier.
  • the third trigger operation can only slide the task identifier corresponding to the background application, but cannot slide the application interface of the foreground application. That is to say, the application interface of the foreground application always remains partially visible in recent tasks and is not completely covered.
  • FIG. 18 is a schematic flowchart of an interface display method provided by yet another embodiment of the present application.
  • the interface display method provided by the embodiment of the present application will be described in detail below with reference to FIG. 18 .
  • the interface display method may include the following steps:
  • Step S510 Display the application interface of the foreground application currently running in the foreground.
  • Step S520 In response to the first triggering operation, superimpose and display the task identification corresponding to the target application program in a partial area of the application interface.
  • step S510 to step S520 for the specific implementation of step S510 to step S520, reference can be made to the content in the foregoing implementation, and details will not be described again here.
  • Step S530 In response to a fourth trigger operation, superimpose and display the task identifier of the preset application program that is not running in a partial area of the application interface, and the fourth trigger operation is used to switch the currently displayed task identifier.
  • the above-mentioned default application program that is not in the running state refers to the default application program that is neither in the foreground running state nor in the background running state.
  • the default application program that is not in the running state can be It is an application that has never been started, or it can be an application that is in a running state (background running state or foreground running state) that is manually ended by the user or automatically ended by the electronic device.
  • a first page number identifier 191 and a second page number identifier 192 may also be displayed.
  • the electronic device superimposes and displays the task identifier corresponding to the target application in the display page corresponding to the first page number identifier 191 , that is, displays the recent task in the display page corresponding to the first page number identifier 191 .
  • the electronic device responds to the fourth trigger operation, in the application interface.
  • the task IDs of preset applications that are not running are overlaid in some areas.
  • the fourth triggering operation may be to click the second page number mark 192, or to switch the current display page to a display interface corresponding to the second page number mark 192 through a sliding operation.
  • Figure 20 shows that on the application interface 193 corresponding to the setting application program, the overlay display is switched to the display interface 195 corresponding to the second page number identification 192. In this display interface 195, the overlay display is not in a running state.
  • the task ID of the default application In this way, users can find applications that need to be switched and stopped running in the background without exiting recent tasks.
  • Step S540 In response to the fifth triggering operation for the task identification of the preset application program, run the preset application program.
  • Step S550 Display the reduced application interface in the first display area of the electronic device, and display the running interface of the default application program in the second display area of the electronic device.
  • the second display area Be other display areas except the first display area.
  • the user can select the task identifier of the preset application program by inputting the fifth trigger operation.
  • the electronic device responds to the fifth trigger operation and runs the task identifier selected by the fifth trigger operation. of preset applications.
  • the reduced-size application interface is displayed in the first display area of the electronic device, and the running interface of the default application program is displayed in the second display area of the electronic device. It can be understood that in the recent task, the user realizes the split-screen operation by inputting the fifth trigger operation, so that the electronic device can simultaneously display the application interface of another application for the user without affecting the foreground operation of the foreground application. Interactive operations improve the diversity and convenience of user operations.
  • the fifth triggering operation may be an operation of dragging any task identification to the split-screen area, or may be an operation of double-clicking or multiple-clicking any task identification.
  • the fifth triggering operation please refer to the previous embodiment. The content will not be repeated here.
  • the fifth trigger operation selects the task identifier corresponding to the photo album application in Figure 20.
  • the electronic device runs the photo album application, and the display size is reduced in the first display area 212 of the electronic device.
  • the running interface 214 of the photo album application is displayed in the second display area 211 of the electronic device.
  • background applications and preset applications that are not running in the background are displayed in pages, making it easier for the user to switch to the required application in recent tasks.
  • the user can trigger the split-screen display directly from the recent task through the fifth trigger operation, so that the electronic device can simultaneously display the application interface of another application for the user to interact without affecting the foreground operation of the foreground application, improving It improves the diversity and convenience of user operations.
  • FIG. 22 shows a structural block diagram of an interface display device 600 provided by an embodiment of the present application.
  • the device 600 may include: an interface display module 610 and a recent task display module 620.
  • the interface display module 610 is used to display the application interface of the foreground application currently running in the foreground.
  • the recent task display module 620 is configured to, in response to the first triggering operation for triggering the display of recent tasks, superimpose and display the task identifier corresponding to the target application in a partial area of the application interface, and the target application includes a response to receiving the At least part of the background application was running in the background before the first triggering operation.
  • the recent task display module 620 may include: a task identification acquisition unit and a task identification display unit.
  • the task identification obtaining unit may be used to obtain the task identification corresponding to the first N background application applications in the first display order based on the first display order corresponding to the plurality of background applications, where the N is a positive integer, so The first display order is determined based on the time when each background application enters the background running.
  • the task identification display unit may be configured to superimpose and display the task identifications corresponding to the first N background application programs on a partial area of the application interface according to the first display order.
  • the interface display device 600 may also include: a time acquisition module, a duration acquisition module, and a sorting module.
  • the time acquisition module may be used to obtain the plurality of task identifiers corresponding to the first N background application applications in a partial area of the application interface in a superimposed display according to the first display order.
  • the time information of each background application when it enters the background is obtained, and the first time corresponding to each background application is obtained.
  • the duration acquisition module may be used to obtain the duration from the first time corresponding to each background application program to the current moment, and obtain the first duration corresponding to each background application program.
  • the sorting module may be used to sort the plurality of background applications based on the first duration in ascending order to obtain the first display order.
  • the interface display device 600 may also include: a program stopping module, a parameter acquisition module, and a sorting update module.
  • the program stopping module may be configured to superimpose and display the task identifiers corresponding to the first N background application programs on a partial area of the application interface according to the first display order, and respond to the specified
  • the second triggering operation of the application program is to stop running the specified application program, and the specified application program is any application program among the target applications.
  • the parameter acquisition module may be used to acquire device parameters of the current electronic device.
  • the sorting update module may be configured to update the first display order according to the device parameters.
  • the device parameter is the remaining power value of the electronic device
  • the sorting and updating module can be specifically used to rank the power consumption from large to small based on the application if the remaining power value is less than the preset power threshold.
  • the plurality of background applications after removing the specified application are sorted to obtain the updated first display order.
  • the device parameter is the processor occupancy rate of the electronic device.
  • the sorting update module can be specifically used to increase the processor occupancy rate based on the application if the processor occupancy rate is greater than the preset occupancy rate. Sort the plurality of background applications after removing the specified application in order of smallest order to obtain the updated first display order.
  • the recent task display module 620 may be specifically configured to, in response to the first triggering operation, overlay and display the second display in a second display order in a partial area of the reduced application interface.
  • the task identifiers corresponding to the first M background applications in the sequence, where M is a positive integer, and the second display order is determined based on the time when each background application enters the background running time.
  • the interface display device 600 may further include: a logo update module.
  • the logo update module may be used to superimpose and display the task logos corresponding to the first M background applications in the second display sequence in a partial area of the reduced application interface according to the second display sequence,
  • the task identifiers currently displayed superimposed in the partial area of the application interface are updated according to the second display sequence, and the third triggering operation is used to switch the currently displayed task identifiers.
  • the recent task display module 620 may be specifically configured to superimpose and display the tasks corresponding to the target application in a partial area of the application interface in response to the first triggering operation for triggering the display of recent tasks.
  • the task identification of the preset application program that is not in the running state is superimposed and displayed in a partial area of the application interface, and the fourth triggering operation is used to switch the currently displayed task identification;
  • the fifth trigger operation for the task identification of the default application program run the default application program; display the reduced application interface in the first display area of the electronic device, and display the application interface in the first display area of the electronic device.
  • the second display area displays the running interface of the preset application program, and the second display area is a display area other than the first display area.
  • the recent task display module 620 may include: a function calling unit and a display unit.
  • the function calling unit may be configured to, in response to the first triggering operation, call a preset pause function to control the foreground application to enter a pause state.
  • the display unit may be used to superimpose and display the task identification corresponding to the target application program in a partial area of the application interface.
  • the function calling unit may also be specifically configured to overlay and display the task identifier corresponding to the target application program in a partial area of the application interface, and then in response to the program switching operation, switch the current display interface to the program switching operation.
  • the display interface of the application program corresponding to the selected task identification; detecting that the application interface is in a completely covered state, calling the preset stop function to control the front The application enters a stopped state.
  • the function calling unit may also be specifically configured to superimpose and display the task identifier corresponding to the target application program in a partial area of the application interface, and then in response to the sixth triggering operation, call a preset recovery function to control the suspended state.
  • the foreground application restores the foreground running state, and switches the current display interface to the display interface of the foreground application.
  • the task identification includes at least one or more of an interface screenshot of the history display interface of the application program, an application icon, an application name, and content information of the history display interface.
  • the coupling between modules may be electrical, mechanical or other forms of coupling.
  • each functional module in each embodiment of the present application can be integrated into one processing module, or each module can exist physically alone, or two or more modules can be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or software function modules.
  • the application interface of the foreground application currently running in the foreground is displayed; in response to the first trigger operation, the application interface of the current foreground application is superimposed and displayed in a partial area
  • a program restart occurs, which makes the user's operations from the foreground application to recent tasks and from recent tasks to the foreground application insensitive; at the same time, the application identification corresponding to the target application is superimposed and displayed on the application of the foreground application.
  • the interface also makes it easier for users to exit from recent tasks and return to the foreground application, reducing the cumbersome operations of returning from recent tasks to the foreground application and improving the user experience.
  • Figure 23 shows a structural block diagram of an electronic device 700 provided by an embodiment of the present application.
  • the above method provided by an embodiment of the present application can be executed by the electronic device 700, where the electronic device 700 can be a smart phone, Electronic devices such as tablet computers, smart bracelets, smart watches, laptops, or desktop computers may, of course, also be physical servers or cloud servers, which are not limited in this embodiment.
  • the electronic device 700 in the embodiment of the present application may include one or more of the following components: a processor 701, a memory 702, and one or more application programs, where one or more application programs may be stored in the memory 702 and configured. For execution by one or more processors 701, one or more programs are configured to perform the method as described in the preceding method embodiments.
  • Processor 701 may include one or more processing cores.
  • the processor 701 uses various interfaces and lines to connect various parts of the entire electronic device 700, and executes by running or executing instructions, programs, code sets or instruction sets stored in the memory 702, and calling data stored in the memory 702.
  • Various functions and processing data of electronic device 700 can use at least one of digital signal processing (Digital Signal Processing, DSP), field-programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA).
  • DSP Digital Signal Processing
  • FPGA Field-Programmable Gate Array
  • PLA programmable logic array
  • the processor 701 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processor (Graphics Processing Unit, GPU), a modem, etc.
  • CPU Central Processing Unit
  • GPU Graphics Processing Unit
  • modem etc.
  • the CPU mainly handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the display content; and the modem is used to handle wireless communications. It can be understood that the above modem can also be integrated into the processor 701 and implemented by a separate communication chip.
  • the memory 702 may include random access memory (RAM) or read-only memory (Read-Only Memory). Memory 702 may be used to store instructions, programs, codes, sets of codes, or sets of instructions.
  • the memory 702 may include a program storage area and a data storage area, where the program storage area may store instructions for implementing an operating system and instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.) , instructions for implementing each of the following method embodiments, etc.
  • the storage data area can also store data created during use of the electronic device 700 (such as the various corresponding relationships mentioned above), etc.
  • the coupling or direct coupling or communication connection between the modules shown or discussed may be through some interfaces, and the indirect coupling or communication connection of the devices or modules may be electrical, mechanical or other form.
  • each functional module in each embodiment of the present application can be integrated into one processing module, or each module can exist physically alone, or two or more modules can be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or software function modules.
  • Figure 24 shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application.
  • Program code is stored in the computer-readable medium 800, and the program code can be called by the processor to execute the method described in the above method embodiment.
  • Computer-readable storage medium 800 may be electronic memory such as flash memory, EEPROM (electrically erasable programmable read-only memory), EPROM, hard disk, or ROM.
  • the computer-readable storage medium 800 includes non-transitory computer-readable storage medium.
  • the computer-readable storage medium 800 has storage space for program code 810 that performs any method steps in the above-described methods. These program codes can be read from or written into one or more computer program products.
  • Program code 810 may, for example, be compressed in a suitable form.
  • a computer program product or computer program includes computer instructions stored in a computer-readable storage medium.
  • the processor of the electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device performs the steps in the above method embodiments.

Landscapes

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

Abstract

本申请公开了一种界面显示方法、装置、电子设备及存储介质,涉及显示技术领域。该方法包括:显示当前处于前台运行状态的前台应用程序的应用界面;响应于第一触发操作,在所述应用界面的部分区域中叠加显示目标应用程序对应的任务标识,所述目标应用程序包括接收所述第一触发操作之前处于后台运行状态的至少部分后台应用程序。如此,在展示部分后台应用程序的任务标识的过程中,前台应用程序的应用界面的部分区域一直处于可见的前台状态,使得前台应用程序处于暂停状态,而不会进入停止状态导致系统直接释放资源,进而使得用户在从前台应用程序进入到近期任务以及从近期任务返回至前台应用程序的操作变得无感。

Description

界面显示方法、装置、电子设备及存储介质
相关申请的交叉引用
本申请要求于2022年7月06日提交的申请号为202210799372.X的中国申请的优先权,其在此出于所有目的通过引用将其全部内容并入本文。
技术领域
本申请涉及显示技术领域,尤其涉及一种界面显示方法、装置、电子设备及存储介质。
背景技术
近期任务列表用于展示电子设备的后台存活应用,便于用户进行应用切换和清理应用后台。
在相关技术中,用户从当前应用进入近期任务列表时,电子设备以桌面图片作为近期任务列表的背景图片,且当前应用与后台存活应用均通过任务卡片的形式展示在近期任务列表中。如此,用户在近期任务列表中进行应用切换或清理应用后台后返回当前应用时,当前应用会发生重新启动,降低用户体验。
发明内容
本申请提出了一种界面显示方法、装置、电子设备及存储介质,以避免从近期任务中返回至当前应用程序时,当前应用程序发生重新启动。
第一方面,本申请实施例提供了一种界面显示方法,所述方法包括:显示当前处于前台运行状态的前台应用程序的应用界面;响应于第一触发操作,在所述应用界面的部分区域中叠加显示目标应用程序对应的任务标识,所述目标应用程序包括接收所述第一触发操作之前处于后台运行状态的至少部分后台应用程序。
第二方面,本申请实施例提供了一种界面显示装置,所述装置包括:界面显示模块以及操作响应模块。界面显示模块,用于显示当前处于前台运行状态的前台应用程序的应用界面;操作响应模块,用于响应于第一触发操作,在所述应用界面的部分区域中叠加显示目标应用程序对应的任务标识,所述目标应用程序包括接收所述第一触发操作之前处于后台运行状态的至少部分后台应用程序。
第三方面,本申请实施例提供了一种电子设备,包括:一个或多个处理器;存储器;一个或多个程序,其中所述一个或多个程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行上述的方法。
第四方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有程序代码,所述程序代码可被处理器调用执行上述的方法。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1示出了本申请一实施例提供的当前应用的应用界面的界面示意图。
图2示出了本申请一实施例提供的近期任务的界面示意图。
图3示出了本申请一实施例提供的界面显示方法的流程示意图。
图4示出了本申请另一实施例提供的近期任务的界面示意图。
图5示出了图3中步骤S120在一些实施方式中的子步骤的流程示意图。
图6示出了本申请一实施例提供的Android系统中Activity的生命周期的示意图。
图7示出了本申请一实施例提供的前台应用程序进入近期任务时的可见性以及生命周期变化的流程示意图。
图8示出了本申请另一实施例提供的界面显示方法的流程示意图。
图9示出了本申请另一实施例提供的近期任务的界面示意图。
图10示出了本申请又一实施例提供的界面显示方法的流程示意图。
图11示出了本申请一实施例提供的近期任务中的第二触发操作的操作示意图。
图12示出了本申请再又一实施例提供的界面显示方法的流程示意图。
图13示出了本申请另一实施例提供的近期任务的界面示意图。
图14示出了本申请一实施例提供的近期任务中的第三触发操作的操作示意图。
图15示出了本申请另一实施例提供的近期任务的界面示意图。
图16示出了本申请又一实施例提供的近期任务的界面示意图。
图17示出了本申请再一实施例提供的近期任务的界面示意图。
图18示出了本申请又另一实施例提供的界面显示方法的流程示意图。
图19示出了本申请另一实施例提供的近期任务的界面示意图。
图20示出了本申请再一实施例提供的近期任务的界面示意图。
图21示出了本申请又一实施例提供的近期任务的界面示意图。
图22是根据本申请一实施例提供的一种界面显示装置的框图。
图23是本申请实施例的用于执行根据本申请实施例的界面显示方法的电子设备的框图。
图24是本申请实施例的用于保存或者携带实现根据本申请实施例的界面显示方法的程序代码的存储单元。
具体实施方式
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。
在相关技术中,从当前应用内进入近期任务,背景都展示桌面的背景图片,当前应用的应用界面缩放为近期任务的一张Task任务卡片。如图1所示,设置应用程序为当前应用,界面101即为当前应用的应用界面,图2示出了从设置应用程序进入近期任务的显示界面,在近期任务的显示界面中,界面201为以桌面的背景图片作为背景界面,以设置应用程序的缩放界面202为近期任务中的第一张任务卡片,线上商城应用程序的缩放界面203为第二张任务卡片,其中,缩放界面202和缩放界面203均叠加显示在背景界面201。用户想要切换应用,需要通过滑动操作才能切换。当用户进入近期任务无操作时退出近期任务或者打开原来的应用时,当前应用会发生重新启动,影响用户的使用体验。
发明人提出一种界面显示方法、装置、电子设备及存储介质,响应于第一触发操作,在前台应用程序的应用界面的部分区域中叠加显示目标应用程序对应的任务标识。下面对本申请实施例提供的界面显示方法进行详细描述。
请参照图3,图3为本申请一实施例提供的一种界面显示方法的流程示意图。下面将结合图3对本申请实施例提供的界面显示方法进行详细阐述。该界面显示方法可以包括以下步骤:
步骤S110:显示当前处于前台运行状态的前台应用程序的应用界面。
在本实施例中,前台应用程序可以理解为在电子设备的屏幕中,可见的且用户能进行交互操作的应用程序,例如,正在运行的游戏应用程序、即时通信应用程序、购物应用程序以及设置应用程序等;对应地,第一界面即为前台应用程序当前显示的应用界面。仍以前台应用程序为设置应用程序为例,请参阅图1,图1示出了设置应用程序的应用界面。
其中,电子设备包括但不限于智能手机、平板电脑、电子书阅读器、膝上型便携计算机、车载电脑、台式计算机、智能电视机、可穿戴设备等等。
步骤S120:响应于第一触发操作,在所述应用界面的部分区域中叠加显示目标应用程序对应的任务标识,所述目标应用程序包括接收所述第一触发操作之前处于后台运行状态的至少部分后台应用程序。
基于此,用户若想要查看后台应用程序、切换前台应用程序或者清除后台应用程序,可以输入第一触发操作,对应地,电子设备则响应于第一触发操作,并展示近期任务,展示近期任务可以具体通过在应用界面的部分区域中叠加显示目标应用程序对应的任务标识的方式来进行展示。其中,任务标识至少包括应用程序的历史显示界面的界面截图、应用图标、应用名称、历史显示界面的内容信息中的一种或多种。如此,用户可以根据任务标识,选择其想要查看后台应用程序或者待清除的后台应用程序,提高了操作的便捷性。
其中,近期任务可以理解为在指定时间段内启动过的应用程序,指定时间段可以是当前时间之前且与当前时间相距指定时长的时间段,该指定时长可以是电子设备默认的时长,例如2小时、3小时等;当然,用户也可以根据实际需求对该默认时长进行调整,例如,电子设备可以提供相应的时长设置界面,用户可以在该时长设置界面内对指定时长进行调整。对应地,上述目标应用程序即为响应第一触发操作之前的指定时间段内,启动过且处于后台运行状态的至少部分后台应用程序。也就是说,电子设备可以响应于第一触发操作,展示近期任务,即在应用界面的部分区域中叠加显示指定时间段内启动过且处于后台运行状态的后台应用程序对应的任务标识。
其中,由于在响应第一触发操作之后,前台应用程序也会进入后台运行状态,因此,上述目标应用程序仅包括接收第一触发操作之前的后台应用程序,具体地,在确定目标应用程序时,可以调用loadTasksInBackground方法,过滤掉前台应用程序,仅确定第一触发操作之前的后台应用程序作为目标应用程序。在实际应用中,由于电子设备的屏幕尺寸的限制,当后台应用程序的数量过多时,电子设备无法一次性将所有的后台应用程序的任务标识同时显示,因此,上述目标应用程序包括至少部分后台应用程序,当然,在后台应用程序数量较少时,目标应用程序也可以包括所有的后台应用程序。
可选地,上述第一触发操作包括但不限于:滑动操作、或者点击操作、或者长按操作等。其中,响应于上述滑动操作的区域可以是某个控件、也可以是屏幕中或者边缘指定的某一区域,滑动方向可以是从左到右、从右到左、从上到下、从下到上、45度方向或者30度方向等。其中,控件可以指提供或实现用户界面功能的组件,组件是对数据和方法的封装,组件可以有自己的属性和方法。在实际应用中,可以在界面的下边缘、上边缘、左边缘、或者右边缘显示所述控件。当然,也可以在界面的中间区域等任意位置显示上述控件,本申请实施例对于上述控件在界面中的具体位置不加以限制。点击操作可以是单击操作、或者双击操作等。响应单击操作的区域可以是某个控件、也可以是屏幕中、边缘指定的某一区域或者是物理按键,例如“home”按键。长按操作可以指对屏幕的操作时长超过预设时长的操作,预设时长可以是预先设置的时长,例如2秒等。响应长按操作的区域可以是某个控件、也可以是屏幕中或者边缘指定的某一区域、或者还可以是物理按键,例如“home”按键,本实施例对此不作限制。
请参阅图4,以任务标识为应用程序的历史显示界面,前台应用程序为设置应用程序为例,图4示出了设置应用程序的应用界面401的部分区域中叠加显示目标应用程序对应的历史显示界面的界面截图,其中,叠加显示的界面截图包括线上商城应用功能程序的历史显示界面402和即时通信应用程序的历史聊天界面403。也可以理解为,以应用界面401作为近期任务的显示背景图片,将近期任务中的目标应用程序的历史显示界面的界面截图进行缩小后,以可滑动选择的任务卡片的形式叠加显示在应用界面401上。
在一些实施方式中,请参阅图5,步骤S120可以包括步骤S121至步骤S122中的内容:
步骤S121:响应于所述第一触发操作,调用预设暂停函数控制所述前台应用程序进入暂停状态。
在本实施例中,以电子设备为安卓(Android)系统为例,对于Android程序来说,每个显示界面都是一个单独的Activity,Activity是一个应用程序组件,提供一个屏幕,用户可以在该屏幕上与电子设备进行交互来完成某项任务。请参阅图6,图6示出了Android系统中Activity的生命周期的示意图,其中,每个Activity在前后台切换时可以对onCreate()、onStart()、onResume()、onPause()、onStop()、onDestory()等函数调用,通过调用不同的函数,使得每个Activity处于不同的运行状态。
其中,onCreate()表示Activity正在被创建,这是生命周期的第一个方法。在这个方法中,可以做一些初始化工作,比如调用setContentView去加载页面布局资源,初始化Activity所需数据等。onStart()表示Activity正在被启动,即将开始,这时Activity已经可见,但是还没有出现在前台,还无法和用户交互。这个时候其实可以理解为Activity已经显示出来了,但是我们还看不到。onResume()表示Activity已经可见,出现在前台并且开始活动,此时的Activity一定位于返回栈的栈顶,并且处于运行状态。onStart和onResume都表示Activity已经可见,但是onStart的时候Activity还在后台,onResume的时候Activity才显示到前台。onPause()表示Activity正在暂停,可以做一些存储数据、停止动画等工作,但是不能太耗时,因为会影响到新的Activity的显示,onPause()必须先执行完,新的Acitivty的onResume才会执行。onStop()表示Activity即将停止,可以做一些稍微重量级的回收工作,同样不能太耗时。onDestory()表示Activity即将被销毁,这是Activity生命周期的最后一个回调,在这个方法中,可以做一些回收工作和最终的资源释放。onRestart()表示Activity正在重新启动。一般情况下,在当前的Activity从不可见重新变成可见状态时,onRestart()就会被调用。这种情形一般时用户行为所致,比如用户按Home键切换到桌面或者用户打开了一个新的Activity,这个时候当前的Activity就会暂停,也就是onPause()和onStop()被执行了,该用户又回到这个Activity,就会出现这种情况。
在上述Activity生命周期中,onStop()和onPause()的主要区别在于,如果启动的新Activity是一个对话框式的Activity,即新Activity没有完全覆盖当前显示的Activity时,则会调用onPause()函数,而不会调用onStop()函数。其中,在调用onPause()函数后,处于暂停状态的Activity依然保持活力(即保持所有的状态,成员信息,和窗口管理器保持连接),仅会在系统内存极端低下的时候将被强行终止掉;而在调用onStop()函数后,当其他地方需要内存时,处于停止状态的Activity有可能会被系统回收。也就是说,当内存不足时,系统会优先回收处于停止状态的Activity。
基于此,由于本实施例中电子设备在展示近期任务时,删除AppToOverviewAnimationProvider窗口动画,即不不执行针对前台应用程序的窗口缩放动画,直接以前台应用程序的应用界面始终作为近期任务的背景进行显示,即始终可见的状态。因此,在接收到第一触发操作时,会调用预设暂停函数(即onPause()函数)控制前台应用程序对应的Activity进入暂停状态。也就是说,在展示近期任务的过程中,前台应用程序的生命周期仅会走到暂停状态,而不会进入到下一步的停止状态,
步骤S122:在所述应用界面的部分区域中叠加显示目标应用程序对应的任务标识。
进一步地,在暂停前台应用程序对应的Activity之后,可以创建近期任务对应的新的Activity,上述目标应用程序对应的任务标识即为新的Activity。具体地,系统则会自动调用onCreate()函数创建新的Activity,并调用OnStart()函数启动新的Activity,最后,调用OnResume()函数使得新的Activity出现在前台运行,处于可见且可交互状态。
具体地,从前台应用程序进入近期任务的函数调用流程可以表示如下:
ApplicationActivity1.onPause()->LauncherActivity.onCreate()->Launchertivity.OnStart()->Launchertivity.OnResume()
其中,ApplicationActivity1为前台应用程序的应用界面,LauncherActivity为新界面。
在一些实施方式中,在步骤S122之后,电子设备可以响应于第六触发操作,调用预设恢复函数控制所述暂停状态的前台应用程序恢复前台运行状态,并将当前显示界面切换为所述前台应用程序的显示界面。其中,前台应用程序的显示界面为前台应用程序从暂停状态恢复至前台运行状态时,根据当前时刻的实际待显示信息确定的实时显示界面;第六触发操作可以是点击前台应用程序的应用界面的任一可见区域,即可实现从近期任务返回至前台应用程序,操作简便快捷,避免了相关技术中用户在滑动了近期任务的任务卡片后,需要再滑动回前台应用程序对应的任务卡片处,再点击前台应用程序对应的任务卡片才能返回至前台应用程序的繁琐操作。当然,第六触发操作也可以是滑动操作或长按操作等,具体的操作方式可以参阅前述对第一触发操作的描述,在此不再赘述。
其中,从近期任务返回至前台应用程序的函数调用流程可以表示如下:
LauncherActivity.onPause()->ApplicationActivity1.OnResume()->LauncherActivity.onStop()
其中,LauncherActivity为近期任务的显示界面,ApplicationActivity1为新界面,即前台应用程序的应用界面。由此可见,用户进入近期任务无操作时返回至前台应用程序时,直接调用OnResume()函数,及时控制前台应用程序恢复前台运行状态,并将当前显示界面切换为前台应用程序的实时显示界面,即前台应用程序不会重新启动,进而实现用户在进入退出近期任务对当前正在使用的前台应用程序无感,提高了用户使用体验。
而在相关技术中,例如图2中的近期任务展示界面中,当用户向右滑动后,前台应用程序的应用界面则会变为不可见,即此时,前台应用程序则会调用onstop()函数,若用户用进入近期任务无操作时返回至前台应用程序时,则会调用onRestart()函数、onstart()函数以及OnResume()函数,相当于重启了前台应用程序,导致用户从近期任务返回至前台应用程序时,无法查看到在进入近期任务前该前台应用程序的应用界面。例如,若用户在前台应用程序填写个人信息,需要通过近期任务中查看网上银行应用程序中的银行卡号码,再返回至前台应用程序进行填写,相关技术中的近期任务显示方式,则会导致前台应用程序重新启动,即用户在从近期任务返回至前台应用程序时,又需要重新填写进入近期任务前已填写过的个人信息,大大降低了用户体验。由此可见,本实施例的近期任务的显示方式相较于现有技术中的近期任务的显示方式,对用户操作来说更为友好和便捷。
在另一些实施方式中,在步骤S122之后,可以响应于程序切换操作,将当前显示界面切换为所述程序切换操作选择的任务标识对应的应用程序的显示界面;检测到所述应用界面处于被完全覆盖的状态,调用预设停止函数控制所述前台应用程序进入停止状态。也就是说,用户可以通过程序切换操作,从应用界面的部分区域中叠加显示目标应用程序对应的任务标识中,任选一个任务标识,对应地,电子设备则将当前显示界面切换为程序切换操作选择的任务标识对应的应用程序的显示界面。可以通俗地理解为,用户将近期任务中的任一后台应用程序切换至前台运行时,当前应用程序的应用界面才会被切换至前台运行的后台应用程序的应用界面完全覆盖,此时,才会调用预设停止函数控制前台应用程序进入停止状态。具体地,从近期任务进入其他后台应用的函数调用流程可以表示如下:
LauncherActivity.onPause()->ApplicationActivity2.onRestart()->ApplicationActivity2.Start()->Applicatio nActivity2.OnResume()->LauncherActivity.onStop()
其中,LauncherActivity为近期任务的显示界面,Applic ationActivity2为目标应用程序中的任一应用程序。
基于此,请参阅图7,图7示出了本实施例中前台应用程序在进入近期任务时的可见性以及生命周 期变化的流程示意图。前台应用程序在近期任务的展示过程中,一直处于可见的前台状态,使得前台应用程序进会处于暂停状态,而不会进入停止状态导致系统直接释放资源,进而使得用户在从前台应用程序进入到近期任务以及从近期任务返回至前台应用程序的操作变得无感。同时,也能避免前台应用程序可能存在自身逻辑问题,在处于停止状态时,调用destroy()函数销毁掉自身等问题的发生。再者,由于前台应用程序的应用界面始终是作为近期任务的背景图片显示,而不是同其他后台应用程序一样以任务卡片的形式展示,避免了因三方开发者不规范操作,例如错误配置和使用ExcludeFormRecents属性,导致的近期任务中不显示前台应用程序的任务卡片,用户无法从近期任务中返回至前台应用程序等问题的发生。
在本实施例中,显示当前处于前台运行状态的前台应用程序的应用界面;响应于用于触发展示近期任务的第一触发操作,在当前的前台应用程序的应用界面的部分区域中叠加显示目标应用程序对应的任务标识,其中,目标应用程序包括响应第一触发操作之前处于后台运行状态的至少部分后台应用程序。也就是说,前台应用程序在近期任务的展示过程中,一直处于可见的前台状态,使得前台应用程序处于暂停状态,而不会进入停止状态导致系统直接释放资源,以及重新返回至前台应用程序时不会发生程序重启,进而使得用户在从前台应用程序进入到近期任务以及从近期任务返回至前台应用程序的操作变得无感;同时,将目标应用程序对应的应用标识叠加显示在前台应用程序的应用界面上,也更方便用户从近期任务退出并返回至前台应用程序的操作,减少了从近期任务返回至前台应用程序的繁琐操作,提高了用户体验。
请参照图8,图8为本申请另一实施例提供的一种界面显示方法的流程示意图。下面将结合图8对本申请实施例提供的界面显示方法进行详细阐述。该界面显示方法可以包括以下步骤:
步骤S210:显示当前处于前台运行状态的前台应用程序的应用界面。
在本实施例中,步骤S210的具体实施方式可以参阅前述实施方式中的内容,在此不再赘述。
步骤S220:响应于第一触发操作,获取所述多个后台应用程序中每个后台应用程序进入后台运行时的时间信息,得到每个后台应用程序对应的第一时间。
在本实施例中,响应第一触发操作之前处于后台运行状态的后台应用程序的数量一般为多个,同时,电子设备的屏幕大小有限,可能无法同时显示所有的后台应用程序的任务标识。考虑到用户进入近期任务一般是要进行应用切换,而离当前时刻越近的后台应用程序被用户选择作为应用切换的几率越大。因此,可以获取每个后台应用程序进入后台运行时的时间信息,作为每个后台应用程序对应的第一时间。进而,可以根据第一时间确定每个后台应用程序的显示顺序,更便于用户在近期任务中进行应用切换。
其中,多个后台应用程序可以是距离当前时刻之前的指定时长内启动过的处于后台运行状态的应用程序,也可以是当前时刻之前所有的启动过的处于后台运行状态的应用程序,本实施例对此不作限制。
步骤S230:获取所述每个后台应用程序对应的第一时间距离当前时刻的时长,得到所述每个后台应用程序对应的第一时长。
步骤S240:基于所述第一时长的从小到大的顺序,对所述多个后台应用程序进行排序,得到所述第一显示顺序。
其中,第一时长越小,表征其对应的后台应用程序上一次被使用的时刻距离当前时刻最近,被用户选作用于切换前台应用程序的几率越大。
步骤S250:基于多个后台应用程序对应的第一显示顺序,获取所述第一显示顺序中前N个后台应运用程序对应的任务标识,所述N为正整数,所述第一显示顺序是基于每个后台应用程序进入后台运行时的时间确定得到。
进一步地,在确定出第一显示顺序之后,电子设备可以获取第一显示顺序中前N个后台应运用程序对应的任务标识,其中,N可以是电子设备的系统默认的数值,例如,4或5等;当然,也可以由用户根据自身实际需求,对该数值进行调整,本实施例对此不作限制。
在一些实施方式中,也可以先判断多个后台应用程序的数量是否大于N的数值,若大于,执行步骤S250的内容;若不大于,则直接按照第一显示顺序,将多个后台应运用程序对应的任务标识,叠加显示在所述应用界面的部分区域。
步骤S260:按照所述第一显示顺序,将所述前N个后台应用程序对应的任务标识,叠加显示在所述应用界面的部分区域。
在一些实施方式中,任务标识可以包括应用程序的历史显示界面的界面截图以及应用图标,将每个后台应用程序对应的历史显示界面的界面截图按照预设缩小参数进行缩小,得到每个后台应用程序对应的缩略截图;再根据第一显示顺序,将前N个后台应用程序对应的缩略截图按照预设方向叠加显示在应用界面的第一部分区域,并且,将前K个后台应用程序的应用图标也按照预设方向叠加显示在应用界面的第二部分区域,其中,第二部分区域为除第一部分区域之外的其他区域,K的取值大于或等于N。其中,第一部分区域以及第二部分区域可以是电子设备默认的区域,当然,也可以由用户根据自身的查看需求,对第一部分区域以及第二部分区域的显示位置进行调整。预设方向可以是从左至右、从右至左、从上至下、从下至上等方向,本实施例对此不作限制。如此,用户可以通过缩略截图直观地获知到后台应用程序的历史显示界面中的显示内容,以及通过任务图标更为简洁直观地告知用户当前存在哪些后台应用程序。
示例性地,请参阅图9,图9示出了根据第一显示顺序,将N个后台应用程序的缩略截图901按照从右至左的方向叠加显示在设置应用程序的应用界面903的第一部分区域,以及K个后台应用程序的应用图标902叠加显示在设置应用程序的应用界面903的第二部分区域。其中,N个后台应用程序包括线上商城应用程序以及即时通信应用程序,K个后台应用程序的应用图标包括线上商城应用程序、即时通信应用程序、浏览器应用程序以及通讯录应用程序的应用图标。
在本实施例中,根据基于每个后台应用程序进入后台运行时的时间确定得到第一显示顺序,将多个后台应用程序中的每个后台应用程序对应的任务标识,依次叠加显示于应用界面的部分区域,更便于用户在近期任务中进行应用切换。并且,在显示近期任务时,前台应用程序的应用界面始终可见,避免了在近期任务中前台应用程序被停止,导致从近期任务返回至前台应用程序时发生应用重启等问题的发生,使得用户从近期任务返回至前台应用程序的操作变得无感,提高了用户体验。
请参照图10,图10为本申请又一实施例提供的一种界面显示方法的流程示意图。下面将结合图10对本申请实施例提供的界面显示方法进行详细阐述。该界面显示方法可以包括以下步骤:
步骤S310:显示当前处于前台运行状态的前台应用程序的应用界面。
步骤S320:响应于第一触发操作,基于多个后台应用程序对应的第一显示顺序,获取所述第一显示 顺序中前N个后台应运用程序对应的任务标识,所述N为正整数,所述第一显示顺序是基于每个后台应用程序进入后台运行时的时间确定得到。
步骤S330:按照所述第一显示顺序,将所述前N个后台应运用程序对应的任务标识,叠加显示在所述应用界面的部分区域。
在本实施例中,步骤S310至步骤S330的具体实施方式可以参阅前述实施方式中的内容,在此不再赘述。
步骤S340:响应于针对指定应用程序的第二触发操作,停止运行所述指定应用程序,所述指定应用程序为所述目标应用程序中的任一应用程序。
在实际应用中,用户触发展示近期任务的目的是为了结束部分后台应用程序的后台运行,对应地,电子设备可以响应于针对指定应用程序的第二触发操作,停止运行指定应用程序,即结束指定应用程序的后台运行。其中,第二触发操作,可以是针对指定应用程序进行长按操作、双击操作、滑动操作等,操作的具体内容可以参阅前述实施例中的内容,在此不再赘述。示例性地,以第二触发操作为滑动操作为例,请参阅图11,图11中包括前台应用程序的应用界面111、线上商城应用程序的任务标识112以及即时通信应用程序的任务标识113,用户按住线上商城应用程序的任务标识112向上滑动,即可结束线上商城应用程序的后台运行。
步骤S350:获取当前所述电子设备的设备参数。
可以理解地,用户结束后台应用程序的后台运行,可能是因为后台应用程序耗电量过大,导致电子设备掉电过快;也可能是因为后台应用程序的处理器占用率过大,导致当前的前台应用程序运行卡顿;还可能是因为后台应用程序的流量消耗过大,导致电子设备消耗的流量可能超过流量套餐中的流量上限等等。因此,可以获取电子设备的设备参数,并根据设备参数对第一显示顺序进行更新,进而使得用户可以基于更新后的第一显示顺序所展示的近期任务的任务卡片,更快地找到其想要结束后台运行的后台运行程序。其中,设备参数指的是与电子设备的设备状态相关的状态参数,可选地,设备参数可以至少包括电子设备的剩余电量值、处理器占用率以及流量消耗值中的一种或多种。
步骤S360:根据所述设备参数,对所述第一显示顺序进行更新。
在一些实施方式中,所述设备参数为所述电子设备的剩余电量值,若所述剩余电量值小于预设电量阈值,基于应用程序的耗电量从大至小的顺序,对去除所述指定应用程序后的所述多个后台应用程序进行排序,得到更新后所述第一显示顺序。可以理解地,当用户于近期任务中结束掉指定应用程序的同时,若获取到剩余电量值小于预设电量阈值,表征当前电子设备的当前电量过低,用户结束掉指定应用程序的目的极有可能是为了节省电子设备的耗电量,后续用户可能还会结束其他后台应用程序的后台运行,以减少电子设备的耗电速度。基于此,电子设备可以根据应用程序的耗电量从大至小的顺序,对去除指定应用程序后的多个后台应用程序进行排序,得到更新后第一显示顺序;并按照更新后的第一显示顺序,将去除所述指定应用程序后的所述多个后台应用程序中的前N个后台应用程序对应的任务标识,叠加显示在所述应用界面的部分区域。如此,使得耗电量更大的后台应用程序显示顺序更靠前,进而使得用户打开近期任务所清除掉的后台应用程序为耗电量更多的应用程序,实现在尽可能少地结束后台应用程序的同时,也能大幅度降低电子设备的耗电速度。
在另一些实施方式中,所述设备参数为所述电子设备的处理器占用率,若所述处理器占用率大于预设占用率,基于应用程序的处理器占用率从大至小的顺序,对去除所述指定应用程序后的所述多个后台应用程序进行排序,得到更新后的所述第一显示顺序。可以理解地,当用户于近期任务中结束掉指定应用程序的同时,若获取到处理器占用率大于预设占用率,表征当前电子设备的当前处理器压力较大,用户结束掉指定应用程序极有可能是因为电子设备的处理器占用率过大,导致前台应用程序出现卡顿等问题,为了提高前台应用程序的运行速度,后续用户可能还会结束其他后台应用程序的后台运行,以提高电子设备的处理速度。基于此,电子设备可以根据应用程序的处理器占用率从大至小的顺序,对去除指定应用程序后的多个后台应用程序进行排序,得到更新后的第一显示顺序;并按照更新后的第一显示顺序,将去除所述指定应用程序后的所述多个后台应用程序中的前N个后台应用程序对应的任务标识,叠加显示在所述应用界面的部分区域。如此,使得处理器占用率更大的后台应用程序显示顺序更靠前,进而使得用户打开近期任务所清除掉的后台应用程序为处理器占用率更多的应用程序,实现在尽可能少地结束后台应用程序的同时,也能大幅度提高电子设备的处理速度。
在本实施例中,在响应于针对指定应用程序的第二触发操作,停止运行所述指定应用程序之后,还可以同时获取电子设备的设备参数,并根据设备参数调整近期任务中的多个后台应用程序的任务标识的显示顺序,使得调整显示顺序后的近期任务列表,更便于用户进行操作,提高用户体验。
请参照图12,图12为本申请再又一实施例提供的一种界面显示方法的流示意图。下面将结合图12对本申请实施例提供的界面显示方法进行详细阐述。该界面显示方法可以包括以下步骤:
步骤S410:显示当前处于前台运行状态的前台应用程序的应用界面。
在本实施例中,步骤S410的具体实施方式可以参阅前述实施方式中的内容,在此不再赘述。
步骤S420:响应于所述第一触发操作,在缩小尺寸后的所述应用界面中的部分区域,按照第二显示顺序叠加显示所述第二显示顺序中的前M个后台应用程序对应的任务标识,所述M为正整数,所述第二显示顺序是基于每个后台应用程序进入后台运行时的时间确定得到。
在本实施例中,电子设备响应于第一触发操作,以桌面图片作为近期任务的显示背景,将缩小尺寸后的应用界面叠加显示在桌面图片的指定区域,同时,在缩小尺寸后的应用界面中的部分区域,根据第二显示顺序,位于前M个后台应用程序中的第一位的后台应用程序对应的任务标识叠加显示在缩小尺寸后的应用界面中的部分区域,并按照预设方向依次显示第二显示顺序中的前M个后台应用程序中其他后台应用程序对应的任务标识。其中,尺寸缩小可以按照预设缩小参数进行缩小,预设方向可以是从右至左、从左至右、从上至下或者从下至上,本实施例对此不作限制。具体如何叠加显示任务标识可以参阅前述实施例中的内容,在此不再赘述。
示例性地,请参阅图13,以设置应用程序为前台应用程序为例,前M个后台应用程序包括线上商城应用程序以及即时通信应用程序,位于前M个后台应用程序中的第一位的线上商城应用程序的任务标识132叠加显示在缩小尺寸后的设置应用程序的应用界面133中的部分区域,按照从右至左的方向在背景界面131中依次显示第二显示顺序中的前M个后台应用程序中其他后台应用程序对应的任务标识,即在线上商城应用程序的左侧显示即时通信应用功能程序的任务标识134。其中,背景界面131可以是以桌面图片作为背景,也可以是以其他预先设置的图片作为背景,本实施例对此不作限制。
步骤S430:响应于第三触发操作,按照所述第二显示顺序,对所述应用界面的部分区域中当前叠加 显示的任务标识进行更新,所述第三触发操作用于切换当前显示的任务标识。
在该方式下,用户可以通过输入用于切换当前显示的任务标识第三触发操作,查看近期任务中的其他后台应用程序对应的任务标识,对应地,电子设备响应于第三触发操作,并按照第二显示顺序,对应用界面的部分区域中当前叠加显示的任务标识进行更新。其中,第三触发操作可以是滑动操作,例如,请参阅图14,图14中包括近期任务的背景界面141、前台应用程序的应用界面143、线上商城应用程序的任务标识142和即时通信应用程序的任务标识144。用户可以在电子设备的屏幕上向右滑动,对应地,电子设备则响应于右滑操作,并按照第二显示顺序,对应用界面143的部分区域中当前叠加显示的任务标识142进行更新。例如,请参阅图15,图15示出了用户在图14的屏幕中通过右滑操作,更新任务标识后的近期任务的显示界面,使得线上商城应用程序的任务标识142被覆盖,即时通信应用程序的任务标识144叠加显示在设置应用程序的应用界面143,其中,任务标识145为第二显示顺序中位于即时通信应用程序后面的后台应用程序的任务标识。
在一些实施方式中,电子设备可以响应于第一触发操作,以桌面图片为近期任务的显示背景,将缩小尺寸后的所述应用界面显示在电子设备的屏幕的第一区域,在除第一区域之外的第二区域中,按照第二显示顺序显示所述第二显示顺序中的前M个后台应用程序对应的任务标识;进一步地,用户可以在第二区域输入第三触发操作,以指示电子设备对第二区域中显示的任务标识进行更新。也就是说,前台应用程序的应用界面始终独立于近期任务中的后台应用程序的任务标识进行显示,即前台应用程序的应用界面中在展示近期任务中,始终全部可见,也能避免在近期任务中前台应用程序的应用界面因被完全覆盖而进入停止状态,导致从近期任务返回至前台应用程序时发生应用重启等问题的发生。同时,在该方式中,近期任务相当于分屏显示,即用户可以在看到前台应用程序的内容的同时,也能翻阅近期任务中的后台应用程序。
例如,请参阅图16,以前台应用程序为设置应用程序为例,电子设备响应于第一触发操作,前M个后台应用程序为即时通信应用程序和相册应用程序为例,将缩小尺寸后的设置应用程序的应用界面163显示在第一区域161,以及按照第二显示顺序显示即时通信应用程序对应的任务标识165和相册应用程序对应的任务标识164在第二区域162;基于此,第三操作可以是在第二区域中的滑动操作,滑动方向可以是从右至左,也可以从左至右,具体的滑动方向是由按照第二显示顺序对任务标识进行显示的显示方向所确定的。
又例如,请参与图17,以前台应用程序为设置应用程序为例,电子设备响应于第一触发操作,前M个后台应用程序为即时通信应用程序和相册应用程序为例,将缩小尺寸后的设置应用程序的应用界面173显示在第一区域171,以及按照第二显示顺序显示即时通信应用程序对应的任务标识175和相册应用程序对应的任务标识174在第二区域172;基于此,第三操作可以是在第二区域中的滑动操作,滑动方向可以是从上至下,也可以从下至上,具体的滑动方向是由按照第二显示顺序对任务标识进行显示的显示方向所确定的。
在本实施例中,电子设备由前台应用程序进入近期任务中,前台应用程序的应用界面始终是显示在桌面背景的指定区域上,即显示区域固定不变,且用于切换当前显示的任务标识的第三触发操作仅能滑动后台应用程序对应的任务标识,无法滑动前台应用程序的应用界面。也就是说,前台应用程序的应用界面在近期任务中始终保持部分区域可见,未被完全覆盖,因此,避免了在近期任务中前台应用程序的应用界面因被完全覆盖而进入停止状态,导致从近期任务返回至前台应用程序时发生应用重启等问题的发生,使得用户从近期任务返回至前台应用程序的操作变得无感,提高了用户体验。
请参照图18,图18为本申请又另一实施例提供的一种界面显示方法的流程示意图。下面将结合图18对本申请实施例提供的界面显示方法进行详细阐述。该界面显示方法可以包括以下步骤:
步骤S510:显示当前处于前台运行状态的前台应用程序的应用界面。
步骤S520:响应于第一触发操作,在所述应用界面的部分区域中叠加显示目标应用程序对应的任务标识。
在本实施例中,步骤S510至步骤S520的具体实施方式可以参阅前述实施方式中的内容,在此不再赘述。
步骤S530:响应于第四触发操作,在所述应用界面的部分区域中叠加显示未处于运行状态的预设应用程序的任务标识,所述第四触发操作用于切换当前显示的任务标识。
在本实施例中,上述未处于运行状态的预设应用程序指既未处于前台运行状态也未处于后台运行状态的预设应用程序,在实际应用中,未处于运行状态的预设应用程序可以是从未启动过的应用程序,也可以是被用户手动结束或电子设备自动结束的处于运行状态(后台运行状态或前台运行状态)的应用程序。请参阅图19,除了在应用界面193的部分区域中叠加显示目标应用程序对应的任务标识194之外,还可以显示第一页码标识191和第二页码标识192。可以理解地,用户切换至近期任务一般是想要进行应用切换,但是,在实际应用中,处于后台运行状态的后台应用程序可能会因为运行前台应用程序的内存不足,而被停止运行,因此,近期任务中可能没有完全包含用户近期启动过的应用程序,导致用户在近期任务中可能无法找到其需要切换的后台应应用程序。因此,电子设备在第一页码标识191对应的显示页面中,叠加显示目标应用程序对应的任务标识,即在第一页码标识191对应的显示页面中显示近期任务。
进一步地,若用户无法从第一页码标识191对应的显示页面中查找到待切换的后台应用程序,则可以通过输入第四触发操作,对应地,电子设备响应于第四触发操作,在应用界面的部分区域中叠加显示未处于运行状态的预设应用程序的任务标识。其中,第四触发操作可以是点击第二页码标识192,也可以是在通过滑动操作,将当前显示页面切换至显示第二页码标识192对应的显示界面。请参阅图20,图20中示出了在设置应用程序对应的应用界面193上,叠加显示切换至第二页码标识192对应的显示界面195,在该显示界面195中,叠加显示未处于运行状态的预设应用程序的任务标识。如此,用户可以在无需退出近期任务的前提也,也查找到待切换被停止后台运行的应用程序。
步骤S540:响应于针对所述预设应用程序的任务标识的第五触发操作,运行所述预设应用程序。
步骤S550:于所述电子设备的第一显示区域显示尺寸缩小后的所述应用界面,于所述电子设备的第二显示区域显示所述预设应用程序的运行界面,所述第二显示区域为除所述第一显示区域之外的其他显示区域。
在实际应用中,用户进入到近期任务中,可能是想同步打开其他后台应用程序。例如,当前应用程序为视频应用程序,若视频应用程序正在播放广告,但是用户并不想观看,同时,用户想在播放广告的时间段的同时,浏览线上商城。此时,若直接切换至线上商城应用程序,则会导致视频应用程序的运行 被中断,用户由线上商城应用程序返回至视频应用程序时,视频应用程序仍会继续播放广告或者重头播放广告。如此,则会大大降低用户的使用体验。
基于此,在本实施例中,用户可以通过输入第五触发操作,选择预设应用程序的任务标识,对应地,电子设备响应于第五触发操作,运行第五触发操作所选择的任务标识对应的预设应用程序。并且,于电子设备的第一显示区域显示尺寸缩小后的应用界面,于电子设备的第二显示区域显示预设应用程序的运行界面。可以理解为,用户在近期任务中,通过输入第五触发操作,实现分屏操作,使得在电子设备在不影响前台应用程序的前台运行的基础上,同时显示另一个应用程序的应用界面供用户交互操作,提高了用户操作的多样性和便捷性。其中,第五触发操作可以是拖动任一任务标识至分屏区域的操作,也可以是双击或者多次点击任一任务标识的操作,具体如何设置第五触发操作可以参阅前述实施例中的内容,在此不再赘述。
示例性地,请参阅图21,第五触发操作选择了图20中的相册应用程序对应的任务标识,对应地,电子设备则运行相册应用程序,于电子设备的第一显示区域212显示尺寸缩小后的设置应用程序的应用界面213,于电子设备的第二显示区域211显示相册应用程序的运行界面214。如此,若相册里存储有包含局域网的登录密码的照片,用户在设置应用程序中输入局域网密码时,可以通过将相册应用程序进行分屏,更方便查看相册中包含有局域网的登录密码的照片,进而更为快速且便捷的在设置应用程序的应用界面中完成对局域网的登录。
在本实施例中,将后台应用程序和未处于后台运行状态的预设应用程序进行分页显示,更便于用户在近期任务中切换到所需要的应用程序。以及,用户可以通过第五触发操作,直接从近期任务触发分屏显示,使得电子设备在不影响前台应用程序的前台运行的基础上,同时显示另一个应用程序的应用界面供用户交互操作,提高了用户操作的多样性和便捷性。
请参照图22,其中示出了本申请一实施例提供的一种界面显示装置600的结构框图。该装置600可以包括:界面显示模块610和近期任务显示模块620。
界面显示模块610用于显示当前处于前台运行状态的前台应用程序的应用界面。
近期任务显示模块620用于响应于用于触发展示近期任务的第一触发操作,在所述应用界面的部分区域中叠加显示目标应用程序对应的任务标识,所述目标应用程序包括响应接收所述第一触发操作之前处于后台运行状态的至少部分后台应用程序。
在一些实施方式中,近期任务显示模块620可以包括:任务标识获取单元以及任务标识显示单元。其中,任务标识获取单元可以用于基于多个后台应用程序对应的第一显示顺序,获取所述第一显示顺序中前N个后台应运用程序对应的任务标识,所述N为正整数,所述第一显示顺序是基于每个后台应用程序进入后台运行时的时间确定得到。任务标识显示单元可以用于按照所述第一显示顺序,将所述前N个后台应运用程序对应的任务标识,叠加显示在所述应用界面的部分区域。
在该方式下,界面显示装置600还可以包括:时间获取模块、时长获取模块以及排序模块。其中,时间获取模块可以用于在所述按照所述第一显示顺序,将所述前N个后台应运用程序对应的任务标识,叠加显示在所述应用界面的部分区域之前,获取所述多个后台应用程序中每个后台应用程序进入后台运行时的时间信息,得到每个后台应用程序对应的第一时间。时长获取模块可以用于获取所述每个后台应用程序对应的第一时间距离当前时刻的时长,得到所述每个后台应用程序对应的第一时长。排序模块可以用于基于所述第一时长的从小到大的顺序,对所述多个后台应用程序进行排序,得到所述第一显示顺序。
在一些实施方式中,界面显示装置600还可以包括:程序停止模块、参数获取模块以及排序更新模块。其中,程序停止模块可以用于在所述按照所述第一显示顺序,将所述前N个后台应运用程序对应的任务标识,叠加显示在所述应用界面的部分区域之后,响应于针对指定应用程序的第二触发操作,停止运行所述指定应用程序,所述指定应用程序为所述目标应用程序中的任一应用程序。参数获取模块可以用于获取当前所述电子设备的设备参数。排序更新模块可以用于根据所述设备参数,对所述第一显示顺序进行更新。
在该方式下,所述设备参数为所述电子设备的剩余电量值,排序更新模块可以具体用于若所述剩余电量值小于预设电量阈值,基于应用程序的耗电量从大至小的顺序,对去除所述指定应用程序后的所述多个后台应用程序进行排序,得到更新后所述第一显示顺序。
在该方式下,所述设备参数为所述电子设备的处理器占用率,排序更新模块可以具体用于若所述处理器占用率大于预设占用率,基于应用程序的处理器占用率从大至小的顺序,对去除所述指定应用程序后的所述多个后台应用程序进行排序,得到更新后的所述第一显示顺序。
在一些实施方式中,近期任务显示模块620可以具体用于响应于所述第一触发操作,在缩小尺寸后的所述应用界面中的部分区域,按照第二显示顺序叠加显示所述第二显示顺序中的前M个后台应用程序对应的任务标识,所述M为正整数,所述第二显示顺序是基于每个后台应用程序进入后台运行时的时间确定得到。在该方式中,界面显示装置600还可以包括:标识更新模块。其中,标识更新模块可以用于在在缩小尺寸后的所述应用界面中的部分区域,按照第二显示顺序叠加显示所述第二显示顺序中的前M个后台应用程序对应的任务标识之后,响应于第三触发操作,按照所述第二显示顺序,对所述应用界面的部分区域中当前叠加显示的任务标识进行更新,所述第三触发操作用于切换当前显示的任务标识。
在一些实施方式中,近期任务显示模块620还可以具体用于在所述响应于用于触发展示近期任务的第一触发操作,在所述应用界面的部分区域中叠加显示目标应用程序对应的任务标识之后,响应于第四触发操作,在所述应用界面的部分区域中叠加显示未处于运行状态的预设应用程序的任务标识,所述第四触发操作用于切换当前显示的任务标识;应于针对所述预设应用程序的任务标识的第五触发操作,运行所述预设应用程序;于所述电子设备的第一显示区域显示尺寸缩小后的所述应用界面,于所述电子设备的第二显示区域显示所述预设应用程序的运行界面,所述第二显示区域为除所述第一显示区域之外的其他显示区域。
在一些实施方式中,近期任务显示模块620可以包括:函数调用单元以及显示单元。其中,函数调用单元可以用于响应于所述第一触发操作,调用预设暂停函数控制所述前台应用程序进入暂停状态。显示单元可以用于在所述应用界面的部分区域中叠加显示目标应用程序对应的任务标识。
在该方式下,函数调用单元还可以具体用于在所述应用界面的部分区域中叠加显示目标应用程序对应的任务标识之后,响应于程序切换操作,将当前显示界面切换为所述程序切换操作选择的任务标识对应的应用程序的显示界面;检测到所述应用界面处于被完全覆盖的状态,调用预设停止函数控制所述前 台应用程序进入停止状态。
在该方式下,函数调用单元还可以具体用于在所述应用界面的部分区域中叠加显示目标应用程序对应的任务标识之后,响应于第六触发操作,调用预设恢复函数控制所述暂停状态的前台应用程序恢复前台运行状态,并将当前显示界面切换为所述前台应用程序的显示界面。
在一些实施方式中,所述任务标识至少包括应用程序的历史显示界面的界面截图、应用图标、应用名称、历史显示界面的内容信息中的一种或多种。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,模块相互之间的耦合可以是电性,机械或其它形式的耦合。
另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。
综上所述,本申请实施例提供的方案中,显示当前处于前台运行状态的前台应用程序的应用界面;响应于第一触发操作,在当前的前台应用程序的应用界面的部分区域中叠加显示目标应用程序对应的任务标识,其中,目标应用程序包括接收第一触发操作之前处于后台运行状态的至少部分后台应用程序。也就是说,前台应用程序的应用界面的部分区域一直处于可见的前台状态,使得前台应用程序处于暂停状态,而不会进入停止状态导致系统直接释放资源,以及重新返回至前台应用程序时不会发生程序重启,进而使得用户在从前台应用程序进入到近期任务以及从近期任务返回至前台应用程序的操作变得无感;同时,将目标应用程序对应的应用标识叠加显示在前台应用程序的应用界面上,也更方便用户从近期任务退出并返回至前台应用程序的操作,减少了从近期任务返回至前台应用程序的繁琐操作,提高了用户体验。
下面将结合图23对本申请提供的一种电子设备进行说明。
参照图23,图23示出了本申请实施例提供的一种电子设备700的结构框图,本申请实施例提供的上述方法可以由该电子设备700执行,其中,电子设备700可以是智能手机、平板电脑、智能手环、智能手表、笔记本电脑或台式电脑等电子设备,当然,也可以是物理服务器或云服务器,本实施例对此不作限制。
本申请实施例中的电子设备700可以包括一个或多个如下部件:处理器701、存储器702、以及一个或多个应用程序,其中一个或多个应用程序可以被存储在存储器702中并被配置为由一个或多个处理器701执行,一个或多个程序配置用于执行如前述方法实施例所描述的方法。
处理器701可以包括一个或者多个处理核。处理器701利用各种接口和线路连接整个电子设备700内的各个部分,通过运行或执行存储在存储器702内的指令、程序、代码集或指令集,以及调用存储在存储器702内的数据,执行电子设备700的各种功能和处理数据。可选地,处理器701可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器701可集成中央处理器(Central Processing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以集成到处理器701中,单独通过一块通信芯片进行实现。
存储器702可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器702可用于存储指令、程序、代码、代码集或指令集。存储器702可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等。存储数据区还可以存储电子设备700在使用中所创建的数据(比如上述的各种对应关系)等。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,所显示或讨论的模块相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或模块的间接耦合或通信连接,可以是电性,机械或其它的形式。
另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。
请参考图24,其示出了本申请实施例提供的一种计算机可读存储介质的结构框图。该计算机可读介质800中存储有程序代码,所述程序代码可被处理器调用执行上述方法实施例中所描述的方法。
计算机可读存储介质800可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质800包括非瞬时性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质800具有执行上述方法中的任何方法步骤的程序代码810的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码810可以例如以适当形式进行压缩。
在一些实施例中,提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。电子设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该电子设备执行上述各方法实施例中的步骤。
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。

Claims (20)

  1. 一种界面显示方法,其特征在于,应用于电子设备,所述方法包括:
    显示当前处于前台运行状态的前台应用程序的应用界面;
    响应于第一触发操作,在所述应用界面的部分区域中叠加显示目标应用程序对应的任务标识,所述目标应用程序包括接收所述第一触发操作之前处于后台运行状态的至少部分后台应用程序。
  2. 根据权利要求1所述的方法,其特征在于,所述在所述应用界面的部分区域中叠加显示目标应用程序对应的任务标识,包括:
    基于多个后台应用程序对应的第一显示顺序,获取所述第一显示顺序中前N个后台应运用程序对应的任务标识,所述N为正整数,所述第一显示顺序是基于每个后台应用程序进入后台运行时的时间确定得到;
    按照所述第一显示顺序,将所述前N个后台应运用程序对应的任务标识,叠加显示在所述应用界面的部分区域。
  3. 根据权利要求2所述的方法,其特征在于,在所述按照所述第一显示顺序,将所述前N个后台应运用程序对应的任务标识,叠加显示在所述应用界面的部分区域之前,所述方法还包括:
    获取所述多个后台应用程序中每个后台应用程序进入后台运行时的时间信息,得到每个后台应用程序对应的第一时间;
    获取所述每个后台应用程序对应的第一时间距离当前时刻的时长,得到所述每个后台应用程序对应的第一时长;
    基于所述第一时长的从小到大的顺序,对所述多个后台应用程序进行排序,得到所述第一显示顺序。
  4. 根据权利要求2所述的方法,其特征在于,在所述按照所述第一显示顺序,将所述前N个后台应运用程序对应的任务标识,叠加显示在所述应用界面的部分区域之后,所述方法还包括:
    响应于针对指定应用程序的第二触发操作,停止运行所述指定应用程序,所述指定应用程序为所述目标应用程序中的任一应用程序;
    获取当前所述电子设备的设备参数;
    根据所述设备参数,对所述第一显示顺序进行更新。
  5. 根据权利要求4所述的方法,其特征在于,所述设备参数为所述电子设备的剩余电量值,所述根据所述设备参数,对所述第一显示顺序进行更新,包括:
    若所述剩余电量值小于预设电量阈值,基于应用程序的耗电量从大至小的顺序,对去除所述指定应用程序后的所述多个后台应用程序进行排序,得到更新后所述第一显示顺序。
  6. 根据权利要求4所述的方法,其特征在于,所述设备参数为所述电子设备的处理器占用率,所述根据所述设备参数,对所述第一显示顺序进行更新,包括:
    若所述处理器占用率大于预设占用率,基于应用程序的处理器占用率从大至小的顺序,对去除所述指定应用程序后的所述多个后台应用程序进行排序,得到更新后的所述第一显示顺序。
  7. 根据权利要求4所述的方法,其特征在于,所述设备参数至少包括所述电子设备的剩余电量值、处理器占用率以及流量消耗值中的一种或多种。
  8. 根据权利要求4-7任一项所述的方法,其特征在于,在所述根据所述设备参数,对所述第一显示顺序进行更新之后,所述方法还包括:
    按照更新后的所述第一显示顺序,将去除所述指定应用程序后的所述多个后台应用程序中的前N个后台应用程序对应的任务标识,叠加显示在所述应用界面的部分区域。
  9. 根据权利要求2-8任一项所述的方法,其特征在于,所述任务标识包括应用程序的历史显示界面的界面截图以及应用图标,所述按照所述第一显示顺序,将所述前N个后台应运用程序对应的任务标识,叠加显示在所述应用界面的部分区域,包括:
    将每个后台应用程序对应的历史显示界面的界面截图按照预设缩小参数进行缩小,得到每个后台应用程序对应的缩略截图;
    根据所述第一显示顺序,将所述前N个后台应用程序对应的缩略截图按照预设方向叠加显示在所述应用界面的第一部分区域;
    将前K个所述后台应用程序的应用图标按照所述预设方向叠加显示在所述应用界面的第二部分区域,其中,所述第二部分区域为所述应用界面中除所述第一部分区域之外的其他区域,所述K大于或等于所述N。
  10. 根据权利要求2-9任一项所述的方法,其特征在于,在所述基于多个后台应用程序对应的第一显示顺序,获取所述第一显示顺序中前N个后台应运用程序对应的任务标识之前,所述方法还包括:
    获取距离当前时刻之前的指定时长内启动过的处于后台运行状态的应用程序,作为所述多个后台应用程序。
  11. 根据权利要求2-9任一项所述的方法,其特征在于,在所述基于多个后台应用程序对应的第一显示顺序,获取所述第一显示顺序中前N个后台应运用程序对应的任务标识之前,所述方法还包括:
    获取距离当前时刻之前所有的启动过的处于后台运行状态的应用程序,作为所述多个后台应用程序。
  12. 根据权利要求1所述的方法,其特征在于,所述响应于用于触发展示近期任务的第一触发操作,在所述应用界面的部分区域中叠加显示目标应用程序对应的任务标识,包括:
    响应于所述第一触发操作,在缩小尺寸后的所述应用界面中的部分区域,按照第二显示顺序叠加显示所述第二显示顺序中的前M个后台应用程序对应的任务标识,所述M为正整数,所述第二显示顺序是基于每个后台应用程序进入后台运行时的时间确定得到;
    在所述在缩小尺寸后的所述应用界面中的部分区域,按照第二显示顺序叠加显示所述第二显示顺序中的前M个后台应用程序对应的任务标识之后,所述方法还包括:
    响应于第三触发操作,按照所述第二显示顺序,对所述应用界面的部分区域中当前叠加显示的任务标识进行更新,所述第三触发操作用于切换当前显示的任务标识。
  13. 根据权利要求1-12任一项所述的方法,其特征在于,所述在所述响应于用于触发展示近期任务的第一触发操作,在所述应用界面的部分区域中叠加显示目标应用程序对应的任务标识之后,所述方法 还包括:
    响应于第四触发操作,在所述应用界面的部分区域中叠加显示未处于运行状态的预设应用程序的任务标识,所述第四触发操作用于切换当前显示的任务标识;
    响应于针对所述预设应用程序的任务标识的第五触发操作,运行所述预设应用程序;
    于所述电子设备的第一显示区域显示尺寸缩小后的所述应用界面,于所述电子设备的第二显示区域显示所述预设应用程序的运行界面,所述第二显示区域为除所述第一显示区域之外的其他显示区域。
  14. 根据权利要求13所述的方法,其特征在于,所述应用界面的部分区域显示第二页码标识,所述响应于第四触发操作,在所述应用界面的部分区域中叠加显示未处于运行状态的预设应用程序的任务标识,包括:
    响应于针对所述第二页码标识的点击操作,在所述应用界面的部分区域中切换显示所述第二页码标识对应的显示页面,所述第二页码标识对应的显示页面中包括未处于运行状态的预设应用程序的任务标识。
  15. 根据权利要求1-14任一项所述的方法,其特征在于,所述响应于用于触发展示近期任务的第一触发操作,在所述应用界面的部分区域中叠加显示目标应用程序对应的任务标识,包括:
    响应于所述第一触发操作,调用预设暂停函数控制所述前台应用程序进入暂停状态;
    在所述应用界面的部分区域中叠加显示目标应用程序对应的任务标识;
    在所述应用界面的部分区域中叠加显示目标应用程序对应的任务标识之后,所述方法还包括:
    响应于程序切换操作,将当前显示界面切换为所述程序切换操作选择的任务标识对应的应用程序的显示界面;
    检测到所述应用界面处于被完全覆盖的状态,调用预设停止函数控制所述前台应用程序进入停止状态。
  16. 根据权利要求15所述的方法,其特征在于,在所述应用界面的部分区域中叠加显示目标应用程序对应的任务标识之后,所述方法还包括:
    响应于第六触发操作,调用预设恢复函数控制所述暂停状态的前台应用程序恢复前台运行状态,并将当前显示界面切换为所述前台应用程序的显示界面。
  17. 根据权利要求1-16任一项所述的方法,其特征在于,所述任务标识至少包括应用程序的历史显示界面的界面截图、应用图标、应用名称、历史显示界面的内容信息中的一种或多种。
  18. 一种界面显示装置,其特征在于,应用于电子设备,所述装置包括:
    界面显示模块,用于显示当前处于前台运行状态的前台应用程序的应用界面;
    近期任务显示模块,用于响应于第一触发操作,在所述应用界面的部分区域中叠加显示目标应用程序对应的任务标识,所述目标应用程序包括接收所述第一触发操作之前处于后台运行状态的至少部分后台应用程序。
  19. 一种电子设备,其特征在于,包括:
    一个或多个处理器;
    存储器;
    一个或多个程序,其中所述一个或多个程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行如权利要求1至17任一项所述的方法。
  20. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有程序代码,所述程序代码可被处理器调用执行如权利要求1至17任一项所述的方法。
PCT/CN2023/096343 2022-07-06 2023-05-25 界面显示方法、装置、电子设备及存储介质 WO2024007760A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210799372.XA CN115237323A (zh) 2022-07-06 2022-07-06 界面显示方法、装置、电子设备及存储介质
CN202210799372.X 2022-07-06

Publications (1)

Publication Number Publication Date
WO2024007760A1 true WO2024007760A1 (zh) 2024-01-11

Family

ID=83671542

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/096343 WO2024007760A1 (zh) 2022-07-06 2023-05-25 界面显示方法、装置、电子设备及存储介质

Country Status (2)

Country Link
CN (1) CN115237323A (zh)
WO (1) WO2024007760A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115237323A (zh) * 2022-07-06 2022-10-25 Oppo广东移动通信有限公司 界面显示方法、装置、电子设备及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105045514A (zh) * 2015-08-27 2015-11-11 广东欧珀移动通信有限公司 一种应用进程管理方法及终端
CN108363524A (zh) * 2018-01-19 2018-08-03 维沃移动通信有限公司 一种应用程序图标显示方法及移动终端
CN109933256A (zh) * 2019-03-22 2019-06-25 网易传媒科技(北京)有限公司 应用程序切换方法、应用程序切换装置、介质和计算设备
CN110602321A (zh) * 2019-09-11 2019-12-20 腾讯科技(深圳)有限公司 应用程序切换方法、装置、电子装置及存储介质
CN115237323A (zh) * 2022-07-06 2022-10-25 Oppo广东移动通信有限公司 界面显示方法、装置、电子设备及存储介质

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104199646A (zh) * 2014-08-15 2014-12-10 小米科技有限责任公司 一种应用程序显示方法、装置及设备
CN110008008A (zh) * 2017-12-29 2019-07-12 广东欧珀移动通信有限公司 应用程序处理方法和装置、电子设备、计算机可读存储介质
CN110209479A (zh) * 2019-05-16 2019-09-06 珠海格力电器股份有限公司 一种切换应用程序的方法、装置、终端设备及存储介质
CN111857513B (zh) * 2020-07-17 2022-04-29 维沃移动通信有限公司 后台程序控制方法、装置和电子设备

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105045514A (zh) * 2015-08-27 2015-11-11 广东欧珀移动通信有限公司 一种应用进程管理方法及终端
CN108363524A (zh) * 2018-01-19 2018-08-03 维沃移动通信有限公司 一种应用程序图标显示方法及移动终端
CN109933256A (zh) * 2019-03-22 2019-06-25 网易传媒科技(北京)有限公司 应用程序切换方法、应用程序切换装置、介质和计算设备
CN110602321A (zh) * 2019-09-11 2019-12-20 腾讯科技(深圳)有限公司 应用程序切换方法、装置、电子装置及存储介质
CN115237323A (zh) * 2022-07-06 2022-10-25 Oppo广东移动通信有限公司 界面显示方法、装置、电子设备及存储介质

Also Published As

Publication number Publication date
CN115237323A (zh) 2022-10-25

Similar Documents

Publication Publication Date Title
CN107748686B (zh) 应用程序的启动优化方法、装置、存储介质及智能终端
US10613701B2 (en) Customizable bladed applications
EP3454197B1 (en) Method, device, and non-transitory computer-readable storage medium for switching pages of applications in a terminal device
US10417018B2 (en) Navigation of immersive and desktop shells
WO2012166184A1 (en) Desktop as immersive application
CN111399959A (zh) 多任务操作方法、装置、电子设备以及存储介质
CN112817676B (zh) 信息处理方法和电子设备
CN112099707A (zh) 显示方法、装置和电子设备
CN112162685B (zh) 属性调节方法、装置和电子设备
EP2715517A1 (en) Display of immersive and desktop shells
WO2024007760A1 (zh) 界面显示方法、装置、电子设备及存储介质
WO2023061280A1 (zh) 应用程序显示方法、装置及电子设备
CN106445956B (zh) 一种购物数据的管理方法及装置
CN111464430A (zh) 一种动态表情展示方法、动态表情创建方法及装置
CN112286612A (zh) 信息显示方法、装置及电子设备
CN112148167A (zh) 控件设置方法、装置和电子设备
CN108549575B (zh) 退出分屏的处理方法、装置、存储介质及电子设备
CN113268182A (zh) 应用图标的管理方法和电子设备
CN111638828A (zh) 界面显示方法及装置
CN115617225A (zh) 应用界面显示方法、装置、电子设备及存储介质
CN114020389A (zh) 应用程序显示方法、装置及电子设备
CN113436297A (zh) 图片处理方法和电子设备
CN111782381A (zh) 任务管理方法、装置、移动终端及存储介质
CN112148406A (zh) 页面切换方法、装置、电子设备和可读存储介质
CN115795190A (zh) 媒体内容缓存方法、装置、计算设备和存储介质

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: 23834534

Country of ref document: EP

Kind code of ref document: A1