CN117784991A - Display method of latest task list and electronic equipment - Google Patents

Display method of latest task list and electronic equipment Download PDF

Info

Publication number
CN117784991A
CN117784991A CN202211183838.XA CN202211183838A CN117784991A CN 117784991 A CN117784991 A CN 117784991A CN 202211183838 A CN202211183838 A CN 202211183838A CN 117784991 A CN117784991 A CN 117784991A
Authority
CN
China
Prior art keywords
application
task list
card
electronic device
interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211183838.XA
Other languages
Chinese (zh)
Inventor
司君杰
王根良
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Device Co Ltd
Original Assignee
Huawei Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Device Co Ltd filed Critical Huawei Device Co Ltd
Priority to CN202211183838.XA priority Critical patent/CN117784991A/en
Publication of CN117784991A publication Critical patent/CN117784991A/en
Pending legal-status Critical Current

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The display method and the electronic device for the latest task list are beneficial to improving the interaction capability of the latest task list and improving the convenience of multi-application operation. The method comprises the following steps: receiving an operation for displaying a recent task list; in response to the operation, a recent task list is displayed, wherein the recent task list comprises a card of the first application which is already running, and the card of the first application is used for dynamically displaying service contents of the first application.

Description

Display method of latest task list and electronic equipment
Technical Field
The present disclosure relates to the field of terminals, and in particular, to a method and an electronic device for displaying a recent task list.
Background
With the continued development of electronic devices, more and more Applications (APP) are developed for use by users. A user may use multiple applications over a period of time, requiring frequent switching between the multiple applications when used.
Currently, a user can switch multiple applications through a recent task list. However, the most recent task list shows a screenshot of the application and does not provide other information. When a user needs to use information or functions provided by different applications, the user needs to repeatedly switch among a plurality of applications, and the operation is complex.
Disclosure of Invention
The display method and the electronic device for the latest task list are beneficial to improving the interaction capability of the latest task list and improving the convenience of multi-application operation.
In a first aspect, a method for displaying a recent task list is provided, and the method is applied to an electronic device, and includes: receiving an operation for displaying a recent task list; in response to the operation, a recent task list is displayed, wherein the recent task list comprises a card of the first application which is already running, and the card of the first application is used for dynamically displaying service contents of the first application.
In the application, the electronic device may trigger to display a recent task list based on a preset operation, where a card of an application that has been recently used by a user is displayed in the recent task list. According to the technical scheme, the latest task list is combined with the application cards, the electronic device centralizes the recently used application cards into one screen for display, when a user needs to use a plurality of applications at the same time, the user does not need to repeatedly switch among different applications, the plurality of applications can be rapidly operated on the latest task list, the interaction performance of the latest task list is improved, and the convenience of the user for simultaneously operating the plurality of applications is improved.
In addition, repeated switching among a plurality of applications requires frequently switching the foreground and background states of the applications, and involves driving of a life cycle, establishment of a window and restoration of an interface, which brings additional power consumption. The application can reduce repeated switching among a plurality of applications, so that the application is beneficial to reducing power consumption caused by switching the foreground and background states of the applications and improving the service performance of the electronic equipment.
With reference to the first aspect, in certain implementations of the first aspect, in response to the operation, displaying the most recent task list includes: responsive to the operation, determining a state of a process of the first application; when the process of the first application runs in the background, determining to display the card of the first application in the latest task list; a recent task list including cards of the first application is displayed.
In the application, the electronic device considers the state of the process of the first application, which can also be understood that the electronic device considers whether the process of the first application survives in the background, and determines to display the card of the first application in the latest task list if the process survives. In this way, the electronic device can display the cards of applications with surviving processes, but not display the cards of applications with finished processes, which is beneficial to reducing the power consumption caused by displaying the cards of too many applications.
With reference to the first aspect, in certain implementations of the first aspect, in response to the operation, displaying the most recent task list includes: in response to the operation, determining whether the first application is configured to be displayed in the form of a card in the recent task list; determining to display a card of the first application in the recent task list when the first application is configured to be displayed in the form of a card in the recent task list; a recent task list including cards of the first application is displayed.
In the present application, whether the application is displayed in the form of a card in the latest task list may be preconfigured by a developer and saved in configuration information of the electronic device. The electronic device may display applications configured to be displayed in the form of a card through the card and applications not configured to be displayed in the form of a card through the card according to the configuration information. Thus, it may be advantageous to reduce power consumption by displaying cards for excessive applications.
It should be understood that the above-mentioned two ways of judging whether to display the first application in the form of a card by the running state of the process of the first application in the background and determining whether the first application is configured in the form of a card by the configuration information may be used alone or in combination.
Optionally, in response to the operation, displaying the most recent task list includes: in response to the operation, determining whether the first application is configured to be displayed in the form of a card in the recent task list; determining a state of a process of the first application when the first application is configured to be displayed in the form of a card in the latest task list; when the process of the first application runs in the background, determining to display the card of the first application in the latest task list; the most recent task list is displayed.
Optionally, in response to the operation, displaying the most recent task list includes: responsive to the operation, determining a state of a process of the first application; when the process of the first application runs in the background, determining whether the first application is configured to be displayed in the form of a card in the latest task list; determining to display a card of the first application in the recent task list when the first application is configured to be displayed in the form of a card in the recent task list; a recent task list including cards of the first application is displayed.
With reference to the first aspect, in certain implementations of the first aspect, after determining to display the card of the first application in the most recent task list, the method further includes: acquiring card information of a first application, wherein the card information comprises the specification of a card and the style of the card; based on the card information, a card of the first application is generated.
With reference to the first aspect, in some implementations of the first aspect, a screenshot of a second application is further included in the recent task list, where the screenshot of the second application is used to display an interface of the second application.
In the application, the electronic device can display the card of the first application in the latest task list or display the screenshot of the second application in the latest task list, so that the interaction modes of the latest task list are more various.
With reference to the first aspect, in certain implementations of the first aspect, the method further includes: responsive to the operation, determining a state of a process of the second application; when the process of the second application has ended, it is determined that a screenshot of the second application is displayed in the most recent task list.
In the application, the electronic device considers the state of the process of the second application, and determines to display the screenshot of the second application in the latest task list when the process of the second application is finished. In this way, the electronic device displays the screenshot of the application whose process has ended, which is beneficial to reducing the power consumption of the electronic device.
With reference to the first aspect, in certain implementations of the first aspect, the method further includes: in response to the operation, determining whether to configure the second application to be displayed in the form of a card; when it is determined that the second application is not configured to be displayed in the form of a card, it is determined that a screenshot of the second application is displayed in the most recent task list.
In the application, the electronic device considers whether the second application is configured to be displayed in the form of a card, and in the case that the second application is determined not to be configured to be displayed in the form of a card, the screenshot of the second application is displayed in the latest task list. In this way, the electronic device displays a screenshot of an application that is not configured to be displayed in the form of a card, which is advantageous for reducing power consumption of the electronic device.
It should be understood that the above-mentioned two ways of judging whether to display the second application in the form of a card by the running state of the process of the second application in the background and determining whether the second application is configured in the form of a card by the configuration information may be used alone or in combination.
Optionally, the method further comprises: in response to the operation, determining whether the second application is configured to be displayed in the form of a card in the most recent task list; determining a state of a process of the second application when the second application is set to be displayed in the form of a card in the latest task list; when the process of the second application has ended, it is determined that a screenshot of the second application is displayed in the most recent task list.
Optionally, the method further comprises: responsive to the operation, determining a state of a process of the second application; determining whether the second application is configured to be displayed in the form of a card in the most recent task list when the process of the second application is running in the background; when the second application is not set to be displayed in the form of a card in the recent task list, it is determined to display a screenshot of the second application in the recent task list.
With reference to the first aspect, in certain implementations of the first aspect, before displaying the most recent task list in response to the operation, the method further includes: and displaying an application interface of the third application. In response to the operation, displaying a recent task list, including: responding to a first operation executed by a user on the application interface, and displaying a latest task list on the application interface; or, in response to a second operation performed by the user at the application interface, displaying the most recent task list in the multi-task interface.
In the application, the user can execute a first operation or a second operation on the application interface currently running in the foreground to trigger the electronic device to display a latest task list comprising cards of the application and/or screenshots of the application.
For example, the first operation may be an operation of sliding left/right from the screen edge of the electronic device, and the second operation may be an operation of sliding up from the bottom of the screen of the electronic device.
With reference to the first aspect, in certain implementations of the first aspect, the operation includes a sliding operation. For example, an operation of sliding left/right on the screen, or an operation of sliding up from the bottom of the screen.
In a second aspect, there is provided an electronic device comprising: for performing the method in any of the possible implementations of the first aspect described above. In particular, the electronic device comprises means for performing the method in any of the possible implementations of the first aspect described above.
In a third aspect, there is provided another electronic device comprising a processor and a memory, the processor being coupled to the memory, the memory being operable to store a computer program, the processor being operable to invoke and execute the computer program in the memory to implement the method of any of the possible implementations of the first aspect.
In a fourth aspect, there is provided a processor comprising: input circuit, output circuit and processing circuit. The processing circuitry is configured to receive signals via the input circuitry and to transmit signals via the output circuitry such that the processor performs the method of any one of the possible implementations of the first aspect described above.
In a specific implementation process, the processor may be a chip, the input circuit may be an input pin, the output circuit may be an output pin, and the processing circuit may be a transistor, a gate circuit, a trigger, various logic circuits, and the like. The input signal received by the input circuit may be received and input by, for example and without limitation, a receiver, the output signal may be output by, for example and without limitation, a transmitter and transmitted by a transmitter, and the input circuit and the output circuit may be the same circuit, which functions as the input circuit and the output circuit, respectively, at different times. The specific implementation of the processor and various circuits is not limited in this application.
In a fifth aspect, a processing device is provided that includes a processor and a memory. The processor is configured to read instructions stored in the memory and to receive signals via the receiver and to transmit signals via the transmitter to perform the method of any one of the possible implementations of the first aspect.
Optionally, the processor is one or more and the memory is one or more.
Alternatively, the memory may be integrated with the processor or the memory may be separate from the processor.
In a specific implementation process, the memory may be a non-transitory (non-transitory) memory, for example, a Read Only Memory (ROM), which may be integrated on the same chip as the processor, or may be separately disposed on different chips, where the type of the memory and the manner of disposing the memory and the processor are not limited in this application.
It should be appreciated that the related data interaction process, for example, transmitting the indication information, may be a process of outputting the indication information from the processor, and the receiving the capability information may be a process of receiving the input capability information by the processor. Specifically, the data output by the processing may be output to the transmitter, and the input data received by the processor may be from the receiver. Wherein the transmitter and receiver may be collectively referred to as a transceiver.
The processing means in the fifth aspect may be a chip, and the processor may be implemented by hardware or by software, and when implemented by hardware, the processor may be a logic circuit, an integrated circuit, or the like; when implemented in software, the processor may be a general-purpose processor, implemented by reading software code stored in a memory, which may be integrated in the processor, or may reside outside the processor, and exist separately.
In a sixth aspect, there is provided a computer program product comprising: computer program code which, when run, causes a computer to perform the method of any one of the possible implementations of the first aspect described above.
In a seventh aspect, a computer readable storage medium is provided, the computer readable storage medium storing a computer program which, when executed, causes a computer to perform the method of any one of the possible implementations of the first aspect.
Drawings
FIG. 1 is a flow diagram of a method of calling up a list of recent tasks;
FIG. 2 is an interface schematic of a recent task list;
FIG. 3 is an interface schematic of another recent task list;
fig. 4 is a schematic structural diagram of an electronic device applicable to an embodiment of the present application;
FIG. 5 is a block diagram of a software architecture of an electronic device suitable for use with embodiments of the present application;
FIG. 6 is a schematic flow chart diagram of a method for displaying a list of recent tasks provided by an embodiment of the present application;
FIG. 7 is a schematic diagram of an interface for a recent task list provided by an embodiment of the present application;
FIG. 8 is an interface schematic of another recent task list provided by an embodiment of the present application;
FIG. 9 is an interface schematic diagram of yet another recent task list provided by an embodiment of the present application;
FIG. 10 is an interface schematic of yet another recent task list provided by an embodiment of the present application;
FIG. 11 is an interface schematic of yet another recent task list provided by an embodiment of the present application;
FIG. 12 is a schematic flow chart diagram of another method for displaying a list of recent tasks provided by an embodiment of the present application;
FIG. 13 is a schematic block diagram of a display device for a recent task list provided by an embodiment of the present application;
fig. 14 is a schematic block diagram of another display device for a recent task list provided by an embodiment of the present application.
Detailed Description
The technical solutions in the present application will be described below with reference to the accompanying drawings.
In order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "first", "second", etc. are used to distinguish the same item or similar items having substantially the same function and effect. It will be appreciated by those of skill in the art that the words "first," "second," and the like do not limit the amount and order of execution, and that the words "first," "second," and the like do not necessarily differ.
In this application, the terms "exemplary" or "such as" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "for example" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
Furthermore, "at least one" means one or more, and "a plurality" means two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a alone, a and B together, and B alone, wherein a, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship. "at least one of" or the like means any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one (one) of a, b, and c may represent: a, b, or c, or a and b, or a and c, or b and c, or a, b and c, wherein a, b and c can be single or multiple.
For some operating systems that may be used in mobile phones, tablets, etc., the most recent task list may display a list of recently opened applications. The screen capture of the interface finally displayed by the application corresponding to the task and the information related to the task can be returned to the desktop management application (hereinafter referred to as desktop for short) through the latest task list, so that the desktop can display the application which is used recently by the user, and the user can conveniently switch the applications when operating multiple applications.
FIG. 1 is a flow diagram of a method 100 of calling up a list of recent tasks. The method 100 comprises the steps of:
s101, responding to the operation of a user, requesting to inquire a latest task list by a desktop;
s102, the component management service receives a query request;
s103, the component management service assembles task information and a task screenshot;
s104, the component management service returns a latest task list to the desktop, wherein the latest task list comprises the screenshot of the recently opened application.
Each time an application is started by the electronic device, a task (task) is imported into the stack of the latest task (task) of the system. When the user exits the application by operating a menu key (home key) or a return key, the application is typically switched from the foreground operation to the background operation. The component management service in the operating system intercepts the interface of the application before exiting, and records the current state information, including specific components. The component management service may save the screenshot under a certain path.
Illustratively, the user may call out the most recent task list by sliding the screen up, sliding the screen left (or right), or clicking the most recent task list key in the navigation key. In addition, the user can call out the latest task list through the function provided by the hover ball or the like. For example, the user may double click on the hover ball to call up the multi-tasking list.
FIG. 2 is an interface schematic of a recent task list. Illustratively, the user may call up the side application bar as shown in FIG. 2 by sliding the screen left at the right edge of the screen, with the recent task list displayed in the side application bar. The most recent task list in FIG. 2 shows a screenshot of the interface of the e-book APP and a screenshot of the interface of the music APP that the user has recently used. It should be understood that the screenshot of the application displayed in the most recent task list is the screenshot of the last displayed interface of the application, which refers to the interface displayed before the application exits from the foreground. When the screenshots of a plurality of applications need to be displayed, the screenshots of the plurality of applications are displayed according to the time sequence of the application exiting the foreground, and the sequencing of the application exiting the foreground is more advanced when the current system time is closer. After clicking the screenshot of an application, the electronic device switches the application from background operation to foreground operation, and displays the interface of the application.
FIG. 3 is an interface schematic of another recent task list. The user may call up the multi-tasking interface as shown in fig. 3 by sliding up from the bottom of the screen, which may also be referred to as a recent tasks interface, for displaying a recent tasks list where the user may view or clear the recent browsing records. Similar to the description for FIG. 2, shown in the most recent task list shown in FIG. 3 is a screenshot of an application, which the user can slide left and right to switch to display a screenshot of a different application.
Examples of common scenarios in which a user uses a recent task list are as follows:
scene 1: the user is getting on the car by using the car-taking APP, at this time, a chat message pops up, the user exits the car-taking APP and enters the chat APP by clicking the popped chat message, or the user returns to the desktop by a menu key (or home key), and then clicks an icon of the chat APP on the desktop to enter the chat APP. When a user enters the chat APP and wants to view the vehicle information in the taxi taking APP, the user can call out a latest task list, click a screenshot of the taxi taking APP in the latest task list, and then re-enter the taxi taking APP.
Scene 2: the user opens the electronic book APP and is watching the novel, and when watching, the user wants to listen to the music, and the user can call out the latest task list to switch between the music APP and the electronic book APP because the user may need to frequently switch to the music APP to perform operations such as music switching and song selection.
Scene 3: the user is sending an express delivery, the information of the sender is in the chat APP, and the user needs to frequently switch back and forth between the express delivery APP and the chat APP to input the information of the sender.
As can be seen from the above description of the scenario, when a user operates a plurality of applications at the same time, the user needs to frequently call up the latest task list to repeatedly switch between the plurality of applications, which is cumbersome to operate, and may cause an operation error when a screenshot of too many applications is displayed in the latest task list. In addition, when a user switches among a plurality of applications, the foreground and background states of the applications need to be frequently switched, and the driving of the lifecycle of the applications, the creation of windows and the restoration of interfaces are involved, which can cause excessive power consumption and poor performance experience. It should be understood that the above-mentioned latest task list displays all screenshot information of the application, and cannot provide other information and functions of the application for the user, for example, chat information of the chat APP; for another example, play information of music APP is provided, and functions of music switching, song selection and the like are performed; for another example, sender information in the express APP is provided, and so on.
In view of this, the embodiment of the application provides a method for displaying a recent task list and an electronic device, where the electronic device centralizes the cards of the recently used applications in one screen for displaying, and can provide more information of the applications in the recent task list, which is favorable for improving the interactive capability of the recent task list, improving the convenience of multi-application operation, and reducing the power consumption caused by switching the foreground and background states of the applications by the electronic device, and improving the usability of the electronic device.
The card of the application according to the embodiment of the present application is a User Interface (UI) element, which may be regarded as an information container, and includes information and operations of a certain content. Based on the content carried, the card design can adjust the card specification (size) for different devices and screens.
The styles (layouts) of cards may be different to support the content categories they contain. In general, the style of card may include one or more of the following components:
(1) Rich media: the card may contain thumbnails to display pictures, illustrations, avatars, logos (logos), icons or graphics.
(2) Title: the title text may contain the names or titles of photo albums or articles.
(3) Description of: text is supported, such as a text summary or a short description.
(4) Action button: the card may contain buttons for operation.
(5) Subheading: the subtitle text may contain detailed descriptions such as the signature of an article or a marked-up job.
(6) The card may contain an operator icon.
Fig. 4 is a schematic structural diagram of an electronic device to which the embodiment of the present application is applicable. As shown in fig. 4, the electronic device 400 may include: processor 110, external memory interface 120, internal memory 121, universal serial bus (universal serial bus, USB) interface 130, charge management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headset interface 170D, sensor module 180, keys 190, motor 191, indicator 192, camera 193, display 194, and subscriber identity module (subscriber identification module, SIM) card interface 195, etc. It is to be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device 400. In other embodiments of the present application, electronic device 400 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, a display processing unit (display process unit, DPU), and/or a neural-network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors. In some embodiments, electronic device 400 may also include one or more processors 110. The processor may be, among other things, the neural and command centers of the electronic device 400. The processor can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution. A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 uses or recycles. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. This avoids repeated accesses, reduces the latency of the processor 110, and thus increases the efficiency of the electronic device 400.
In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a USB interface, among others. The USB interface 130 is an interface conforming to the USB standard, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge the electronic device 400, or may be used to transfer data between the electronic device 400 and a peripheral device. And can also be used for connecting with a headset, and playing audio through the headset.
It should be understood that the interfacing relationship between the modules illustrated in the embodiments of the present application is illustrative, and does not limit the structure of the electronic device 400. In other embodiments of the present application, the electronic device 400 may also use different interfacing manners, or a combination of multiple interfacing manners, as in the above embodiments.
The wireless communication function of the electronic device 400 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like. The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in electronic device 400 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution for wireless communication including 2G/3G/4G/5G, etc., applied to the electronic device 400. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier, etc. The mobile communication module 150 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can amplify the signal modulated by the modem processor, and convert the signal into electromagnetic waves through the antenna 1 to radiate. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be provided in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs sound signals through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional module, independent of the processor 110.
The wireless communication module 160 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN), bluetooth, global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), NFC, infrared (IR), etc. applied to the electronic device 400. The wireless communication module 160 may be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
In some embodiments, antenna 1 and mobile communication module 150 of electronic device 400 are coupled, and antenna 2 and wireless communication module 160 are coupled, such that electronic device 400 may communicate with a network and other devices via wireless communication techniques. The wireless communication techniques may include GSM, GPRS, CDMA, WCDMA, TD-SCDMA, LTE, GNSS, WLAN, NFC, FM, and/or IR techniques, among others. The GNSS may include a global satellite positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a Beidou satellite navigation system (bei dou navigation satellite system, BDS), a quasi zenith satellite system (quasi-zenith satellite system, QZSS) and/or a satellite based augmentation system (satellite based augmentation systems, SBAS).
The electronic device 400 may implement display functionality through a GPU, a display screen 194, an application processor, and the like. The application processor may include an NPU and/or a DPU. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute instructions to generate or change display information. The NPU is a neural-network (NN) computing processor, and can rapidly process input information by referencing a biological neural network structure, for example, referencing a transmission mode between human brain neurons, and can also continuously perform self-learning. Applications such as intelligent awareness of the electronic device 400 may be implemented by the NPU, for example: image recognition, face recognition, speech recognition, text understanding, etc. The DPU is also referred to as a display sub-system (DSS) for adjusting the color of the display screen 194, and may adjust the color of the display screen via a color three-dimensional (3D) look-up table (LUT). The DPU can also perform processes such as scaling, noise reduction, contrast enhancement, backlight brightness management, hdr processing, display parameter Gamma adjustment, and the like on the picture.
The display screen 194 is used to display images, videos, and the like. The display 194 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light emitting diode (AMOLED), a flexible light-emitting diode (FLED), miniled, microLed, micro-OLED, or a quantum dot light-emitting diode (quantum dot light emitting diodes, QLED). In some embodiments, the electronic device 400 may include 1 or N display screens 194, N being a positive integer greater than 1.
Electronic device 400 may implement shooting functionality through an ISP, one or more cameras 193, video codecs, a GPU, one or more display screens 194, an application processor, and the like.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the electronic device 400. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. For example, data files such as music, photos, videos, etc. are stored in an external memory card.
The internal memory 121 may be used to store one or more computer programs, including instructions. The processor 110 may cause the electronic device 400 to execute various functional applications, data processing, and the like by executing the above-described instructions stored in the internal memory 121. The internal memory 121 may include a storage program area and a storage data area. The storage program area can store an operating system; the storage area may also store one or more applications (e.g., gallery, contacts, etc.), and so forth. The storage data area may store data created during use of the electronic device 400 (e.g., photos, contacts, etc.), and so on. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like. In some embodiments, processor 110 may cause electronic device 400 to perform various functional applications and data processing by executing instructions stored in internal memory 121, and/or instructions stored in a memory provided in processor 110.
The electronic device 400 may implement audio functions through the audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone interface 170D, and application processor, etc. Such as music playing, recording, etc. Wherein the audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or a portion of the functional modules of the audio module 170 may be disposed in the processor 110. The speaker 170A, also referred to as a "horn," is used to convert audio electrical signals into sound signals. The electronic device 400 may listen to music, or to hands-free conversations, through the speaker 170A. A receiver 170B, also referred to as a "earpiece", is used to convert the audio electrical signal into a sound signal. When electronic device 400 is answering a telephone call or voice message, voice may be received by placing receiver 170B in close proximity to the human ear. Microphone 170C, also known as a "microphone" or "microphone," is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can sound near the microphone 170C through the mouth, inputting a sound signal to the microphone 170C. The electronic device 400 may be provided with at least one microphone 170C. In other embodiments, the electronic device 400 may be provided with two microphones 170C, and may implement a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 400 may also be provided with three, four, or more microphones 170C to enable collection of sound signals, noise reduction, identification of sound sources, directional recording functions, etc. The earphone interface 170D is used to connect a wired earphone. The earphone interface 170D may be a USB interface 130, or may be a 3.5mm open mobile electronic device platform (open mobile terminal platform, OMTP) standard interface, or may be a american cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
Fig. 5 is a software architecture block diagram of an electronic device to which embodiments of the present application are applicable. The software system of the electronic device 400 may employ a layered architecture that divides the software system of the electronic device 400 into several layers, each layer having distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, the software system of the electronic device includes an application layer (APP) and an application framework layer (application framework).
The application layer may include a series of application packages that run applications by calling an application program interface (application programming interface, API) provided by the application framework layer. As shown in fig. 5, the application package may include desktop, electronic book, music, dictionary, social, camera, calendar, map, phone, bluetooth, video, gallery, navigation, and like applications.
The application framework layer provides APIs and programming frameworks for application programs of the application layer. The application framework layer includes a number of predefined functions. As shown in fig. 5, the application framework layer may include a component management service, a process management service, an application package management service (package manager service, PMS), a card management service, and the like.
The component management service is a system service for coordinating the operation relation of the components and scheduling the life cycle.
The process management service is used for managing the process of the application, including creation, jump, stop, etc. of the application.
The card management service is used to manage addition, deletion, update, visibility, and the like of cards.
The application package management service is used to handle package management related tasks such as managing the installation, uninstallation, parsing, control authority, etc. of the application package of the trace application.
The electronic device in the embodiment of the present application may be a handheld device, an in-vehicle device, or the like with a wireless connection function, and the electronic device may also be referred to as a terminal (terminal), a User Equipment (UE), a Mobile Station (MS), a Mobile Terminal (MT), or the like. Currently, examples of some electronic devices are: mobile phone (mobile phone), tablet, smart tv, notebook, tablet (Pad), palm, mobile internet device (mobile internet device, MID), virtual Reality (VR) device, augmented reality (augmented reality, AR) device, wireless terminal in industrial control (industrial control), wireless terminal in unmanned driving (self driving), wireless terminal in teleoperation (remote medical surgery), wireless terminal in smart grid (smart grid), wireless terminal in transportation security (transportation safety), wireless terminal in smart city (smart home), wireless terminal in smart home (smart home), cellular phone, cordless phone, session initiation protocol (session initiation protocol, SIP) phone, wireless local loop (wireless local loop, WLL) station, personal digital assistant (personal digital assistant, PDA), handheld device with wireless communication function, computing device or other processing device connected to wireless modem, vehicle device, wearable device, electronic device in 5G network or electronic land-based network (37, 36 in future electronic application, etc.), and the specific forms of the present application are not defined by the specific aspects of the present electronic communication system.
By way of example, and not limitation, in embodiments of the present application, the electronic device may also be a wearable device. The wearable device can also be called as a wearable intelligent device, and is a generic name for intelligently designing daily wear by applying wearable technology and developing wearable devices, such as glasses, gloves, watches, clothes, shoes and the like. The wearable device is a portable device that is worn directly on the body or integrated into the clothing or accessories of the user. The wearable device is not only a hardware device, but also can realize a powerful function through software support, data interaction and cloud interaction. The generalized wearable intelligent device includes full functionality, large size, and may not rely on the smart phone to implement complete or partial functionality, such as: smart watches or smart glasses, etc., and focus on only certain types of application functions, and need to be used in combination with other devices, such as smart phones, for example, various smart bracelets, smart jewelry, etc. for physical sign monitoring.
Fig. 6 is a schematic flowchart of a method 600 for displaying a list of recent tasks according to an embodiment of the present application. The steps of method 600 may be performed by an electronic device, which may have a structure as shown in fig. 4 and/or fig. 5, but embodiments of the present application are not limited thereto. The method 600 includes the steps of:
S601, an operation for displaying a latest task list is received.
In some embodiments, this operation may be an operation to display a recent task list for a preset trigger.
S602, responding to the operation, displaying a latest task list, wherein the latest task list comprises cards of the first application, and the cards of the first application are used for dynamically displaying service contents of the first application.
Wherein the operation for displaying the latest task list may include a first operation of sliding left/right on the screen of the electronic device or a second operation of sliding up from the bottom of the screen of the electronic device. Further, the operation for displaying the latest task list may also be an operation of sliding obliquely upward from the lower left/lower right corner of the screen of the electronic apparatus, which is not limited in the embodiment of the present application.
The first application is the most recently running application, it being understood that each time an application is launched by the electronic device, a task is passed into the stack of the most recent tasks of the system. The application corresponding to the task recorded in the stack of the latest task is the application which is running recently. Applications that have been opened by a user in an electronic device may be referred to as recently run applications. For example, when the user opens a chat APP, the chat APP is the most recently running application; for example, when the user opens the music APP and switches the music APP from the pre-process to the background operation, the music APP is also the application that has been recently operated; for example, if the user opens the APP, but then the user manually ends the process of the APP, the APP is also the most recently running application.
In the embodiment of the application, after the electronic device receives the operation input by the user for displaying the latest task list, the electronic device can display the latest task list and dynamically display the card of the application which is recently run by the user. Dynamic display, among other things, may be understood as the presence of a portion of the application's card that may be updated or otherwise interacted with by the user. When the portion is available for the user to click to enter the display interface of the application, it may be to enter other interfaces of the application than the main interface.
The information provided by the application card can be dynamically updated in real time, or the functions provided by the application card can be used by a user, and the operation on a certain function can be completed on the application card. For example, for a translation card, a vocabulary translation function is provided, a user can input a vocabulary to be translated on the translation card for translation, the translation card displays a translation result, and the translation card is dynamically operable for the user and dynamically displays information.
Based on this, under a possible scene, when the user is using the electronic book APP to look at the novel, but in the looking process, the electronic device may call up the latest task list in response to the operation of the user, display the translation card, and the translation card may provide the function of vocabulary translation, so that the user does not need to switch from the electronic book APP to the dictionary APP to perform translation, but can quickly use the function provided by the application card in the latest task list, which is beneficial to improving the interaction performance of the latest task list and improving the convenience of the user to operate a plurality of applications.
In addition, repeated switching between different applications requires frequent switching of foreground and background states of the applications, involving lifecycle driving, window setup, and interface restoration, which can introduce additional power consumption. In the embodiment of the application, the frequent switching among different applications can be reduced, so that the power consumption caused by switching the foreground and background states of the applications is reduced, and the service performance of the electronic equipment is improved.
Interface diagrams of the recent task list according to embodiments of the present application are shown below in conjunction with fig. 7 to 11.
As an alternative embodiment, before displaying the most recent task list in response to the operation for displaying the most recent task list, the method 600 further includes: and displaying an application interface of the third application. In response to an operation for displaying the most recent task list, displaying the most recent task list includes: and responding to a first operation performed by a user on the application interface, and displaying a latest task list on the application interface. See in particular the interface shown in fig. 7 displaying the list of most recent tasks.
In this embodiment of the present application, the electronic device may call out a side application bar on an application interface that is currently being opened by a user, see interface B in fig. 7, where the side application bar may display cards of applications that have been recently used by the user, and the user may also adjust the display order of the cards of the applications in the side application bar. The user may select to operate the card of an application in the sidebar to implement a function of the application or to operate the card of an application to cause the application to open in a widget mode.
Fig. 7 is an interface schematic diagram of a recent task list according to an embodiment of the present application. As shown in the a interface in fig. 7, the scene in which the user is currently located is illustratively: the user calls the vehicle by using the taxi taking APP on the mobile phone, and waits for the arrival of the vehicle at the roadside. Since the vehicle has not arrived for a while, the user opens the e-book APP to see a foreign language novel and opens the music APP to listen to the music. The mid-way user may also open the dictionary APP to query for some words or chat with colleagues using the chat APP.
Under the scene, the user opens applications such as an electronic book APP, a taxi taking APP, a music APP, a dictionary APP, a chat APP and the like. After these applications have been opened, when the sub-device is currently resident on the reading novel interface of the electronic book APP, the third application may be the electronic book APP. Illustratively, the user may call up the most recent task list as shown in the B interface in fig. 7 by sliding from the right side of the screen to the left. As shown in the B interface in fig. 7, the electronic device displays the taxi taking card, the music card, the dictionary card and the chat card in the latest task list in a portrait display manner. It should be understood that the latest task list called up in this way may not display the card of the electronic book APP, so as to avoid that the interface and the card of the same application are displayed on the same screen, and avoid that the user clicks by mistake or clicks by invalidity. The first application in method 600 may be a taxi taking APP, a music APP, a dictionary APP, or a chat APP in an embodiment of the present application.
In other embodiments, when the third application is running in the foreground, the user brings up a recent task list by sliding from the right side of the screen to the left, which may display the cards of the third application.
As shown in the B interface in fig. 7, the electronic device displays the name of the application under the card of each application. It should be understood that the display positions of the names applied in fig. 7 are merely examples, and the directions of the card, such as the top, the side, etc., may also be displayed, which is not limited in the embodiment of the present application.
The taxi taking card is provided with the service content of the taxi taking APP, and the service content of the taxi taking APP can comprise vehicle information such as the distance and the remaining time of a vehicle. The service content of the taxi-taking APP can be dynamically updated on the taxi-taking card in real time, a user does not need to reenter the taxi-taking APP, and the service content of the taxi-taking APP can be checked on the interface of the current reading novel.
The service content of the music APP is displayed on the music card, and can comprise the name of the music currently being played, the switching music and the like, and can also comprise the name of the previous music and/or the name of the next music. The music card comprises a control for pausing/playing music, a control for switching the next piece of music and a control for switching the previous piece of music, so that a user can control the playing of music without entering a music APP.
The dictionary card displays the service content of the dictionary APP, which includes language selection, translation result, and the like. The dictionary card is provided with an input box, and a user can input a word to be translated in the input box for inquiring, so that the user can inquire the word without entering the dictionary APP.
The chat card displays the service content of the chat APP, wherein the service content of the chat APP comprises chat messages of friends with the chat, and the chat messages are displayed in a chat frame of the chat card. When the user reads the novel, the chat messages sent by the colleagues can be displayed in the chat frames on the chat cards, and the user can click the chat frames on the chat cards to input the messages and send the messages.
Illustratively, if the user desires to enter the taxi-taking APP from the B-interface in fig. 7, the user may click on the taxi-taking card to enter the taxi-taking APP.
Illustratively, if the user desires to enter the music APP from the B interface in fig. 7, the user may click on other areas of the music card than the actionable controls to enter the music APP. The way of entering the dictionary APP and chat APP is similar to the way of entering the music APP and will not be described here in detail.
In one possible implementation, the electronic device sorts and displays cards of the plurality of applications in the most recent task list in a time order in which the applications exit the foreground. The closer the time to exit the foreground is to the current system time, the earlier the display order of the application cards in the most recent task list.
For example, the chat APP exits the foreground at 8:00, the dictionary APP exits the foreground at 8:30, the music APP exits the foreground at 9:00, the driving APP exits the foreground at 9:30, the current electronic book APP is running in the foreground, and the electronic device displays a novel reading interface of the electronic book APP. When the electronic equipment responds to the operation of a user and calls out a latest task list from a novel reading interface of the electronic book APP, the taxi taking card, the music card, the dictionary card and the chat card are displayed in the latest task list according to the time sequence of the application exiting the foreground.
For example, if more applications are opened, too many cards cannot be displayed on the screen of the electronic device at the same time, some of the cards of the applications are hidden, and the user may slide the latest task list upward to display the hidden cards.
In one possible implementation, the user may desire to delete cards for certain applications because the cards may be wastefully consuming too much power to dynamically display the service content of the application. For example, after a user sits on a car to a destination, the user desires to delete a card of the car taken. In this case, the user may call up the latest task list, press the taxi-card to slide leftwards or rightwards, and then loosen his hand, so that the taxi-card may be deleted from the latest task list. Or, the user presses the taxi-taking card for a long time until the word or icon representing the deletion appears, and the user can select the word or icon representing the deletion to delete the taxi-taking card on the latest task list.
In fig. 7, a manner of calling up the latest task list by sliding from the right side of the screen to the left is shown, and in addition, the electronic device may be triggered to call up the latest task list by sliding from the lower left corner or the lower right corner of the screen obliquely to the upper side of the screen by the user, which is not limited in the embodiment of the present application.
In the interface B in fig. 7, the electronic device may display cards of multiple applications in the latest task list, so that the cards of the applications that have been used recently are concentrated in one screen to perform interaction, so that the user can quickly complete the interaction of multiple applications on a single interface, thereby improving convenience of performing multi-application operations on the electronic device such as a mobile phone, a tablet, and reducing cost of frequent application switching of the user. The card of the application can dynamically display the service content of the application and refresh the application information in time, so that the information transmission is more timely and effective, and the user can check the recent progress of the application currently in use in time.
An interface diagram for calling up the latest task list in the application interface is described above in connection with fig. 7, and in addition, the user may call up the latest task list on the desktop of the electronic device as shown in fig. 8.
FIG. 8 is an interface diagram of another recent task list provided by an embodiment of the present application. As shown in interface a in fig. 8, the electronic device displays one interface of the desktop application, and the user can slide in the screen from the screen edge to call up the latest task list as shown in interface B in fig. 8. For example, the user may slide into the screen from a preset position at the edge of the screen to call up the most recent task list.
As shown in the interface B in fig. 8, an electronic book card, a taxi taking card, a music card, a dictionary card, and a chat card are displayed in the latest task list, and the user can select one of the cards to enter an application interface corresponding to the card, so that the state of the application is switched from background operation to foreground operation. For example, the user clicks the electronic book APP, and in response to an operation of clicking the electronic book APP by the user, the electronic device displays a novel reading interface of the electronic book APP, where the novel reading interface is an interface displayed before the electronic book APP is switched from the foreground operation to the background operation.
As an alternative embodiment, before displaying the most recent task list in response to the operation for displaying the most recent task list, the method 600 further includes: and displaying an application interface of the third application. In response to an operation for displaying the most recent task list, displaying the most recent task list includes: and in response to a second operation performed by the user on the application interface, displaying a latest task list in the multi-task interface. See in particular the interface shown in fig. 9 displaying the list of most recent tasks.
FIG. 9 is an interface diagram of yet another recent task list provided by an embodiment of the present application. An example of a scenario in which the user is currently located may be referred to the description of fig. 7, and will not be described herein.
As shown in the interface a in fig. 9, the electronic device is currently staying in the interface for reading novels, and the user can call up the multi-tasking interface shown in the interface B in fig. 9 by performing an operation of sliding up from the bottom of the screen, the multi-tasking interface being for displaying applications that have been recently used by the user, i.e., for displaying a recent task list. As shown in interface B in fig. 9, electronic book cards, music cards, dictionary cards, chat cards, and taxi taking cards are displayed in the latest task list. The user can select to operate a card of an application in the multi-task interface to realize a function of the application, or operate the card of the application to enable the application to run in the foreground, and display the interface of the application in a full screen mode.
As shown in the interface B in fig. 9, the electronic book card, the music card, the dictionary card, the chat card, and the taxi taking card may be partially or completely stacked for display, and the current latest task list completely displays the electronic book card on which information of a novel that the user is currently reading is displayed. The icon and the name of the electronic book are displayed above the electronic book card. Other music cards, dictionary cards, chat cards, taxi cards are stacked and displayed below the electronic book card.
For example, when a user desires to control the playing of music, the user may slide the screen to the left so that the music card is displayed entirely on top of the other cards; or the user may click on the area where the music card is visible to cause the music card to be displayed intact on top of the other cards. When the music card is displayed completely on the uppermost side of other cards, the icon and name of the music APP can be displayed above the music card.
FIG. 10 is an interface schematic of yet another recent task list provided by embodiments of the present application. An example of a scenario in which the user is currently located may be referred to the description of fig. 7, and will not be described herein.
As shown in interface a in fig. 10, the electronic device is currently resident in the reading novel interface, and the user can call up the latest task list as shown in interface B in fig. 10 by sliding upward from the bottom of the screen. As shown in the interface B in fig. 10, electronic book cards, music cards, dictionary cards are displayed in the latest task list in a portrait display manner. The recent task list also includes chat cards, taxi taking cards, which are not displayed, and the user can display more application cards by sliding the screen up.
The foregoing shows a possible interface schematic for a list of recent tasks. The following describes a specific implementation manner of displaying the latest task list in the embodiment of the present application.
As an alternative embodiment, the electronic device displays the latest task list in response to an operation for displaying the latest task list, including: responsive to the operation, determining a state of a process of the first application; when the process of the first application runs in the background, determining to display the card of the first application in the latest task list; a recent task list including cards of the first application is displayed.
In the embodiment of the application, the electronic device may determine, according to the running condition of the process of the first application, that the card of the first application is displayed in the latest task list under the running condition of the application. In this way, the electronic device only displays the cards of the applications running in the background, which is beneficial to reducing the power consumption caused by displaying the cards of the excessive applications in the latest task list.
In some embodiments, the application running may include running in the foreground and running in the background, with the electronic device displaying an interface within the application while the application is running in the foreground. After the user switches the application from the foreground run to the background, if the user does not manually close the application or the system cleans up the background to close the application, the application will continue to run in the background.
Referring to the interface B in fig. 7, taking the first application as an example of the taxi taking APP, after receiving an operation for displaying the latest task list, the electronic device first detects the state of the progress of the taxi taking APP, and if the progress of the taxi taking APP runs in the background, the electronic device generates a taxi taking card and displays the taxi taking card in the latest task list. Other implementation logic for displaying music cards, dictionary cards, and chat cards in the recent task list is similar to that for displaying taxi cards, and will not be described again here.
It should be appreciated that typically an electronic device, after opening an application, runs in the background all the time the application's process is running, with enough system resources and without the user manually ending the application's process. However, because the system resources of the electronic device are limited, when the number of applications opened is too large, the system resources cannot meet the requirement of running too many applications in the background at the same time, so that the electronic device can select to end the process of some applications.
For example, if the electronic device detects that the runtime of a certain application is early and the user has not used the application for a long time, the electronic device may end the process of the application.
As an alternative embodiment, the electronic device displays the latest task list in response to an operation for displaying the latest task list, including: in response to the operation, determining whether the first application is configured to be displayed in the form of a card in the recent task list; determining to display a card of the first application in the recent task list when the first application is set to be displayed in the form of a card in the recent task list; a card recent task list including the first application is displayed.
In this embodiment of the present application, the electronic device considers whether the developer of the first application configures the first application to be displayed in the form of a card in the recent task list, and may also understand whether the developer of the first application configures the card that needs to display the first application in the recent task list.
Illustratively, the static configuration information of the first application configured by the developer of the first application includes a first field "isShowCrad", and when the value of the first field is true (true), it indicates that the first application is configured to be displayed in the form of a card in the latest task list.
As an alternative embodiment, the electronic device displays the latest task list in response to an operation for displaying the latest task list, including: responsive to the operation, determining a state of a process of the first application; when the process of the first application runs in the background, determining whether the first application is configured to be displayed in the form of a card in the latest task list; determining to display a card of the first application in the recent task list when the first application is set to be displayed in the form of a card in the recent task list; a recent task list including cards of the first application is displayed.
In the embodiment of the application, the electronic device can detect the state of the process of the first application and detect whether the first application is configured to be displayed in the form of a card in the latest task list. Under the condition that the two conditions are met, the electronic device can display the card of the first application on the latest task list. The state of the process of the first application includes the running state of the process of the first application in the background, which can also be understood as whether the process of the first application is still alive in the background. In this way, the electronic device only displays cards of applications where the process is still running in the background and configured to require the display of cards in the most recent task list, advantageously reducing power consumption by displaying cards of too many applications.
As an alternative embodiment, after determining to display the card of the first application in the recent task list, the electronic device obtains card information of the first application and generates the card of the first application based on the card information. Wherein the card information includes the specification of the card and the style of the card.
In the embodiment of the application, the card information is used for generating the card, and the specification of the card in the card information can also be described as the size of the card. Illustratively, the specifications of the card may include 1×2,2×1,2×2,2×4, and the like.
Alternatively, different card specifications may be configured on different modalities of electronic devices. For example, for a cell phone, the specification of the card may be configured to be 1×2; for tablet computers, the card specification may be configured to be 2 x 1.
The style of a card refers to the entire appearance of the card, and the style of the card is diverse. Illustratively, one card style includes rich media, titles, descriptions. Illustratively, another card style includes a title, a subtitle, an action button.
As an alternative embodiment, the latest task list further includes a screenshot of a second application, where the second application is a recently executed application, and the screenshot of the second application is used to display an interface of the second application.
In the embodiment of the application, the electronic device may display not only the card of the first application but also the screenshot of the second application in the latest task list. The power consumption of the electronic device for displaying the screenshot is small, so that the power consumption is saved. See in particular the interface for the most recent task list as shown in fig. 11.
FIG. 11 is an interface schematic of yet another recent task list provided by embodiments of the present application. For example, in one possible scenario example, a user waits on the road side for a vehicle to call through a taxi taking APP, during waiting the user opens the e-book APP to read novels, and opens the music APP to listen to music. Some time before this scenario, the user has also opened the talk APP.
Illustratively, the user may slide into the screen from a preset position at the edge of the screen to call up the most recent task list as shown in FIG. 11. The taxi taking card and the music card are displayed in the latest task list as shown in fig. 11, and a screenshot of the last display interface of the call APP is also displayed. The second application may include the call APP shown in fig. 11, and the first application may include the taxi taking APP and the music APP shown in fig. 11.
As shown in fig. 11, the electronic device may simultaneously display, on the latest task list, a card of an application whose process is still running in the background and a screenshot of an application whose process ends, so that a user may intuitively see which applications are running in the background and which applications have already ended, and thus, the user may further select to restart the application whose process has ended, or end the process of the application still running in the background, according to his own requirements.
Illustratively, the electronic device ends the chat APP process, but the user may be waiting for a message sent by the buddy. When the user calls the latest task list and discovers that the screenshot of the chat APP is displayed, the user can determine that the process of the chat APP is finished, so that the user can click the screenshot of the chat APP in the latest task list to restart the chat APP and enter the interface of the chat APP.
There are three ways to determine that a screenshot of a second application is displayed in the most recent task list:
in one possible implementation, the electronic device determines a state of a process of the second application in response to an operation for displaying the most recent task list; when the process of the second application has ended, it is determined that a screenshot of the second application is displayed in the most recent task list.
In another possible implementation, the electronic device determines whether to configure the second application to be displayed in the form of a card in response to an operation for displaying the most recent task list; when it is determined that the second application is not configured to be displayed in the form of a card, it is determined that a screenshot of the second application is displayed in the most recent task list.
Illustratively, the static configuration information of the second application configured by the developer of the second application includes a first field "isShowCrad", and when the value of the first field is false (false) or empty, it indicates that the second application is not configured to be displayed in the latest task list in the form of a card.
In yet another possible implementation, the electronic device determines a state of a process of the second application in response to an operation for displaying the most recent task list; when the process of the second application runs in the background, determining whether the second application is configured to be displayed in the form of a card; when it is determined that the second application is not configured to be displayed in the form of a card, it is determined that a screenshot of the second application is displayed in the most recent task list.
In this way, the electronic device detects the state of the process of the second application, i.e. whether the process of the second application is still running in the background, and whether the second application is configured to be displayed in the form of a card in the latest task list, which is advantageous in reducing excessive power consumption caused by excessive card display.
Fig. 12 is a schematic flowchart of another method 1200 for displaying a list of recent tasks according to an embodiment of the present application. The method 1200 may be interactively performed by internal functional modules of an electronic device, primarily involving a desktop, component management service, process management service, application package management service, card management service, as illustrated in fig. 5. The method 1200 includes S1201 to S1212, which specifically includes the following steps:
s1201, the desktop requests the latest task list from the component management service in response to the operation of the user.
The operation of triggering the display of the latest task list is described above and will not be described in detail here.
S1202, the component management service requests the process management service to query the state of the process of the target application based on the request.
In this step, the state of the process includes the running state of the process in the background. The target application includes an electronic device-initiated application recorded in a stack of the most recent tasks of the component management service. Each application has a corresponding name, and the component management service records the name of the target application.
The component management service may send the name of the target application to the process management service when requesting a query from the process management service as to whether the process of the target application survives.
S1203, the process management service determines the state of the process of the target application according to the name of the target application.
In this step, the process management service maintains running state information of the process, where the running state information of the process includes a name of an application that the process is still running in the background. After receiving the name of the target application, the process management service can query the running state information of the process for the name of the target application, if the name is queried, the process for the target application is still running in the background, and if the name is not queried, the process for the target application is finished.
S1204, the process management service returns the running condition of the process of the target application to the component management service.
When the process of the target application is still running, S1205 is executed. When the process of the target application has ended, S1211 is performed.
S1205, the component management service requests the configuration information of the target application from the application package management service under the condition that the process of the target application is still running in the background.
The configuration information of the target application includes a first field "isShowCrad", and when the value of the first field is true (true), it indicates that the target application is configured to be displayed in the form of a card in the latest task list. When the first field is false or empty, it indicates that the target application is not configured to be displayed in the form of a card in the recent task list.
Optionally, the configuration information of the target application further includes a second field, where the second field is used to indicate an identification of the card of the target application. Illustratively, a plurality of card specifications and card patterns are available for selection in the card management service, each card specification and card pattern combination having a corresponding card identification.
For example, the specification of the card corresponding to the identifier 1 is 1×2, and the style includes rich media and titles.
For example, the specification of the card corresponding to the identifier 2 is 2×1, and the style includes title, description and action button.
For example, the specification of the card corresponding to the logo 3 is 2×2, and the style is to include a subtitle and an icon.
S1206, the application package management service returns the configuration information of the target application to the component management service.
When the target application is configured to be displayed in the form of a card in the latest task list, S1207 is performed. When the target application is not configured to be displayed in the form of a card in the latest task list, S1211 is performed.
In S1207, the component management service requests card information of the target application, including the specification of the card and the style of the card, from the card management service in the case where it is determined that the target application is configured to be displayed in the form of the card in the latest task list.
Alternatively, the component management service may send the card identification of the target application to the card management service when requesting card information of the target application from the card management service.
S1208, the card management service returns the card information of the target application to the component management service.
Alternatively, if the card management service receives the identification of the card from the target application sent by the component management service, the card management service may return card information corresponding to the identification of the card of the target application to the component management service based on the identification of the card of the target application.
S1209, the component management service transmits the task information and the card information of the target application to the desktop.
Wherein the task information of the target application may include an icon and/or a name of the target application.
S1210, the desktop displays the cards of the target application on the latest task list.
In this step, the desktop generates a card of the target application based on the received card information, displays the card of the target application in the latest task list, and may display an icon and/or name of the target application above/below the card of the target application.
S1211, the component management service sends a screenshot of the last display interface of the target application to the desktop if it is determined that the process of the target application has ended or if it is determined that the target application is not configured to be displayed in the form of a card in the latest task list.
S1212, the desktop displays a screenshot of the last display interface of the target application on the most recent task list.
In the embodiment of the present application, S1205 and S1206 may also be executed before S1201, for example, after the electronic device starts the target application, the component management service requests the configuration information of the target application from the application package management service, and the application package management service returns the configuration information of the target application to the component management service based on the request.
It should be understood that the sequence numbers of the above processes do not mean the order of execution, and the execution order of the processes should be determined by the functions and internal logic of the processes, and should not constitute any limitation on the implementation process of the embodiments of the present application.
The method of displaying the latest task list according to the embodiment of the present application is described in detail above with reference to fig. 6 to 12, and the apparatus for displaying the latest task list according to the embodiment of the present application will be described in detail below with reference to fig. 13 and 14.
Fig. 13 is a schematic block diagram of a display apparatus 1300 of a recent task list provided in an embodiment of the present application. The apparatus 1300 includes a receiving module 1310 and a processing module 1320.
Wherein, receiving module 1310 is configured to: an operation for displaying a recent task list is received. The processing module 1320 is configured to: in response to the operation, a recent task list is displayed, wherein the recent task list comprises a card of the first application which is already running, and the card of the first application is used for dynamically displaying service contents of the first application.
As an alternative embodiment, the processing module 1320 is configured to: responsive to the operation, determining a state of a process of the first application; when the process of the first application runs in the background, determining to display the card of the first application in the latest task list; and displaying a recent task list including cards of the first application.
As an alternative embodiment, the processing module 1320 is configured to: in response to the operation, determining whether the first application is configured to be displayed in the form of a card in the recent task list; determining to display a card of the first application in the recent task list when the first application is set to be displayed in the form of a card in the recent task list; and displaying a recent task list including cards of the first application.
As an alternative embodiment, the apparatus 1300 further includes an obtaining module configured to obtain card information of the first application, where the card information includes a specification of the card and a style of the card. The processing module 1320 is configured to: based on the card information, a card of the first application is generated.
As an alternative embodiment, the latest task list also includes a screenshot of a second application, where the screenshot of the second application is used to display an interface of the second application.
As an alternative embodiment, the processing module 1320 is configured to: responsive to the operation, determining a state of a process of the second application; and when the process of the second application has ended, determining to display the screenshot of the second application in the most recent task list.
As an alternative embodiment, the processing module 1320 is configured to: in response to the operation, determining whether to configure the second application to be displayed in the form of a card; and when it is determined that the second application is not configured to be displayed in the form of a card, determining to display a screenshot of the second application in the most recent task list.
As an alternative embodiment, the processing module 1320 is configured to: displaying an application interface of the third application; responding to a first operation executed by a user on an application interface, and displaying a latest task list on the application interface; or, in response to a second operation performed by the user at the application interface, displaying the most recent task list in the multi-task interface.
As an alternative embodiment, the operation includes a sliding operation.
In an alternative example, it will be appreciated by those skilled in the art that the apparatus 1300 may be embodied as an electronic device in the above embodiment, or the functions of the electronic device in the above embodiment may be integrated into the apparatus 1300. The above functions may be implemented by hardware, or may be implemented by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the functions described above. The apparatus 1300 may be configured to perform the various processes and/or steps corresponding to the electronic device in the method embodiments described above.
It should be appreciated that the apparatus 1300 herein is embodied in the form of functional modules. The term module herein may refer to an application specific integrated circuit (application specific integrated circuit, ASIC), an electronic circuit, a processor (e.g., a shared, dedicated, or group processor, etc.) and memory that execute one or more software or firmware programs, a combinational logic circuit, and/or other suitable components that support the described functionality. In embodiments of the present application, the apparatus 1300 may also be a chip or a chip system, for example: system on chip (SoC).
Fig. 14 is a schematic block diagram of another display device 1400 for a recent task list provided by an embodiment of the present application. The apparatus 1400 includes a processor 1410, a communication interface 1420, and a memory 1430. Wherein the processor 1410, the communication interface 1420, and the memory 1430 communicate with each other through an internal connection path, the memory 1430 is configured to store instructions, and the processor 1410 is configured to execute the instructions stored in the memory 1430 to control the communication interface 1420 to transmit signals and/or receive signals.
It should be appreciated that the apparatus 1400 may be utilized to perform various steps and/or flows corresponding to the electronic device in the method embodiments described above. Alternatively, the memory 1430 may include read-only memory and random access memory and provide instructions and data to the processor. A portion of the memory may also include non-volatile random access memory. For example, the memory may also store information of the device type. The processor 1410 may be configured to execute instructions stored in the memory, and when the processor executes the instructions, the processor may perform the steps and/or processes corresponding to the electronic device in the above-described method embodiments.
It is to be appreciated that in embodiments of the present application, the processor 1410 may be a central processing unit (central processing unit, CPU), which may also be other general purpose processors, digital signal processors (digital signal processing, DSP), application specific integrated circuits (application specific integrated circuit, ASIC), field programmable gate arrays (field programmable gate array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The application also provides electronic equipment, and the display method of the latest task list in any method embodiment can be executed.
The application also provides a computer readable storage medium, in which computer executable instructions are stored, where the computer executable instructions, when executed by a processor, implement a method performed by an electronic device in any of the method embodiments described above.
Embodiments of the present application also provide a computer program product, including a computer program, which when executed by a processor, can implement a method performed by an electronic device in any of the above method embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative modules and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described system, apparatus and module may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In the several embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, and for example, the division of the modules is merely a logical function division, and there may be additional divisions when actually implemented, for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or modules, which may be in electrical, mechanical, or other forms.
The modules described as separate components may or may not be physically separate, and components shown as modules may or may not be physical modules, i.e., may be located in one place, or may be distributed over a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely specific embodiments of the present application, but the scope of the embodiments of the present application is not limited thereto, and any person skilled in the art may easily think about changes or substitutions within the technical scope of the embodiments of the present application, and the changes or substitutions are intended to be covered by the scope of the embodiments of the present application. Therefore, the protection scope of the embodiments of the present application shall be subject to the protection scope of the claims.

Claims (13)

1. A method for displaying a list of recent tasks, comprising:
the electronic device receives an operation for displaying a latest task list;
the electronic equipment responds to the operation and displays the latest task list; the latest task list comprises a card of a running first application, and the card of the first application is used for dynamically displaying the service content of the first application.
2. The method of claim 1, wherein the electronic device displaying the most recent task list in response to the operation comprises:
the electronic equipment responds to the operation and determines the state of the process of the first application;
when the process of the first application runs in the background, the electronic equipment determines that the card of the first application is displayed in the latest task list;
the electronic device displays the recent task list including cards of the first application.
3. The method of claim 1, wherein the electronic device displaying the most recent task list in response to the operation comprises:
the electronic device determining, in response to the operation, whether the first application is configured to be displayed in the form of a card in the recent task list;
When the first application is configured to be displayed in the latest task list in the form of a card, the electronic device determines to display the card of the first application in the latest task list;
the electronic device displays the recent task list including cards of the first application.
4. A method according to claim 2 or 3, wherein after the electronic device determines to display a card of the first application in the most recent task list, the method further comprises:
the electronic equipment acquires card information of the first application, wherein the card information comprises the specification of a card and the style of the card;
the electronic device generates a card of the first application based on the card information.
5. The method of any of claims 1 to 4, further comprising a screenshot of a second application in the most recent task list, the screenshot of the second application being used to display an interface of the second application.
6. The method of claim 5, wherein the method further comprises:
the electronic equipment responds to the operation and determines the state of the process of the second application;
when the process of the second application has ended, the electronic device determines to display a screenshot of the second application in the recent task list.
7. The method of claim 5, wherein the method further comprises:
the electronic device determining whether to configure the second application to be displayed in the form of a card in response to the operation;
and when the second application is determined not to be configured to be displayed in the form of a card, the electronic device displays the screenshot of the second application in the latest task list.
8. The method of any of claims 1-7, wherein prior to the electronic device displaying the most recent task list in response to the operation, the method further comprises:
the electronic equipment displays an application interface of a third application;
the electronic device displaying the recent task list in response to the operation, including:
the electronic equipment responds to a first operation executed by a user on the application interface, and the latest task list is displayed on the application interface; or,
the electronic device displays the latest task list in a multi-task interface in response to a second operation performed by the user on the application interface.
9. The method of any one of claims 1 to 7, wherein the operation comprises a sliding operation.
10. An electronic device comprising means for performing the method of any one of claims 1 to 9.
11. An electronic device, comprising: a processor and a memory, wherein,
the memory is used for storing a computer program;
the processor is configured to invoke and execute the computer program to cause the electronic device to perform the method of any of claims 1 to 9.
12. A computer readable storage medium for storing a computer program which, when run on a computer, causes the computer to perform the method of any one of claims 1 to 9.
13. A computer program product comprising computer program code embodied therein, which when run on a computer causes the computer to carry out the method according to any one of claims 1 to 9.
CN202211183838.XA 2022-09-27 2022-09-27 Display method of latest task list and electronic equipment Pending CN117784991A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211183838.XA CN117784991A (en) 2022-09-27 2022-09-27 Display method of latest task list and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211183838.XA CN117784991A (en) 2022-09-27 2022-09-27 Display method of latest task list and electronic equipment

Publications (1)

Publication Number Publication Date
CN117784991A true CN117784991A (en) 2024-03-29

Family

ID=90400512

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211183838.XA Pending CN117784991A (en) 2022-09-27 2022-09-27 Display method of latest task list and electronic equipment

Country Status (1)

Country Link
CN (1) CN117784991A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118227003A (en) * 2024-05-23 2024-06-21 天津中新智冠信息技术有限公司 Cross-application task calling method and device, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118227003A (en) * 2024-05-23 2024-06-21 天津中新智冠信息技术有限公司 Cross-application task calling method and device, electronic equipment and storage medium
CN118227003B (en) * 2024-05-23 2024-09-13 天津中新智冠信息技术有限公司 Cross-application task calling method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
WO2020238774A1 (en) Notification message preview method and electronic device
US11669242B2 (en) Screenshot method and electronic device
WO2021036571A1 (en) Desktop editing method and electronic device
WO2020000448A1 (en) Flexible screen display method and terminal
US20230046708A1 (en) Application Interface Interaction Method, Electronic Device, and Computer-Readable Storage Medium
WO2021000881A1 (en) Screen splitting method and electronic device
CN110489215A (en) The treating method and apparatus of scene is waited in a kind of application program
CN116360725B (en) Display interaction system, display method and device
WO2020024108A1 (en) Application icon display method and terminal
CN114115769A (en) Display method and electronic equipment
CN113935898A (en) Image processing method, system, electronic device and computer readable storage medium
CN115967851A (en) Quick photographing method, electronic device and computer readable storage medium
WO2022143180A1 (en) Collaborative display method, terminal device, and computer readable storage medium
CN114647350A (en) Application sharing method, electronic device and storage medium
CN114077365A (en) Split screen display method and electronic equipment
US20230105934A1 (en) Cross-Device Allocation Method for Service Element, Terminal Device, and Storage Medium
CN114840280A (en) Display method and electronic equipment
CN117784991A (en) Display method of latest task list and electronic equipment
CN115543145A (en) Folder management method and device
WO2023000746A1 (en) Augmented reality video processing method and electronic device
CN115509651A (en) Screen sharing method and related equipment
CN116095225B (en) Image processing method and device of terminal equipment
CN115328592B (en) Display method and related device
WO2022206709A1 (en) Component loading method for application and related apparatus
CN116088715B (en) Message reminding method and electronic equipment

Legal Events

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