CN113821132A - Message processing method and device - Google Patents

Message processing method and device Download PDF

Info

Publication number
CN113821132A
CN113821132A CN202110853329.2A CN202110853329A CN113821132A CN 113821132 A CN113821132 A CN 113821132A CN 202110853329 A CN202110853329 A CN 202110853329A CN 113821132 A CN113821132 A CN 113821132A
Authority
CN
China
Prior art keywords
notification
message
interface
application
terminal device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110853329.2A
Other languages
Chinese (zh)
Other versions
CN113821132B (en
Inventor
谭泳发
徐传印
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202110853329.2A priority Critical patent/CN113821132B/en
Publication of CN113821132A publication Critical patent/CN113821132A/en
Application granted granted Critical
Publication of CN113821132B publication Critical patent/CN113821132B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0485Scrolling or panning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

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

Abstract

The embodiment of the application provides a message processing method and a device, which are applied to the technical field of terminals, wherein when a terminal device displays a notification from an application on a first interface, the terminal device can receive a first operation on the first interface, further, the terminal device can call an interface corresponding to the notification to open a virtual screen, so that the terminal device can open a page of the message in the application corresponding to the notification in the virtual screen, and the process of opening the page of the message in the application corresponding to the notification in the virtual screen by the terminal device simulates the process of opening the page of the message in the application corresponding to the notification by a user, so that the message in the application corresponding to the notification is in a read state, and thus, after the user performs the first operation, the corner mark on the message in the application corresponding to the notification and the corner mark on the application corresponding to the notification can disappear without opening the page of the message in the application corresponding to the notification again, the operation process is simple.

Description

Message processing method and device
Technical Field
The present application relates to the field of terminal technologies, and in particular, to a method and an apparatus for processing a message.
Background
With the development of terminal technology, various types of applications can be installed on terminal equipment, and users can meet different requirements through various types of applications.
Because different applications are installed on the terminal device, the terminal device receives notifications (or called messages) of each application, for example, when the terminal device receives a notification of an application, the terminal device displays the notification in a pull-down notification bar through a message card, and when a user does not process the notification, a corner mark is displayed on an application icon corresponding to the notification in a desktop of the terminal device, and the corner mark reflects that the user has unread messages in the application; when the user processes the notification, a common processing manner is that the user can delete the message card corresponding to the notification in the pull-down notification bar, and the terminal device can cause the message card corresponding to the notification not to be displayed in the pull-down notification bar based on the deletion operation triggered by the user.
However, after the user deletes the notification in the pull-down notification bar, the corner mark on the application corresponding to the notification is still displayed on the desktop of the terminal device, and after the user opens the application, the corner mark is also displayed on the message in the application corresponding to the notification, and only when the user continues to open the message in the application corresponding to the notification, the corner mark on the message in the application corresponding to the notification and the corner mark on the application icon corresponding to the notification disappear, and if the terminal device receives the notifications from the plurality of applications, the user needs to delete the notifications of the plurality of applications in the pull-down notification bar, and needs to open the messages in the plurality of applications corresponding to the plurality of notifications for a plurality of times, which makes the operation process cumbersome.
Disclosure of Invention
The embodiment of the application provides an optimized message processing method and device, which are applied to the technical field of terminals to improve the use efficiency of a user on terminal equipment.
In a first aspect, an embodiment of the present application provides a message processing method, where the method includes: the terminal equipment displays a first interface; the first interface is a drop-down notification bar and includes a notification (or it can be understood that the first interface includes a message card corresponding to the notification, or it can be understood that the first interface includes a message notification bar corresponding to the notification); the terminal equipment receives a first operation on a first interface; responding to the first operation, the terminal equipment calls an interface corresponding to the notification to open a virtual screen; and the terminal equipment opens a page for notifying the message in the corresponding application in the virtual screen, so that the message in the corresponding application is notified to be in a read state.
In this way, when the first interface (which may be a pull-down notification bar) displays a notification from an application, the terminal device may receive a first operation on the first interface, and further, the terminal device may invoke an interface corresponding to the notification to open a virtual screen, so that the terminal device may open a page of a message in the application corresponding to the notification in the virtual screen, and a process of opening the page of the message in the application corresponding to the notification in the virtual screen by the terminal device simulates a process of opening the page of the message in the application corresponding to the notification by a user, so that a state of the message in the application corresponding to the notification is changed from an unread state to a read state, and thus, after the user performs the first operation, without opening the page of the message in the application corresponding to the notification again, the corner mark on the message in the application corresponding to the notification and the corner mark on the application corresponding to the notification disappear, the operation process is simple.
In a possible implementation manner, after the terminal device opens a page notifying a message in a corresponding application in the virtual screen, the method further includes: and when the page informing the corresponding message in the application comprises the scroll bar, the terminal equipment scrolls the scroll bar to the target position. In this way, after the terminal device opens a page notifying messages in the corresponding application in the virtual screen, and some applications cannot read message marks notifying the corresponding application, the terminal device may enable some applications to read message marks notifying the corresponding application by scrolling the scroll bar to the target position.
In one possible implementation manner, the opening, by the terminal device, a page notifying a message in a corresponding application in the virtual screen includes: and when the time length occupied by the terminal equipment for opening the page informing the corresponding message in the application in the virtual screen exceeds the preset time length, the terminal equipment closes the virtual screen. Therefore, the occupation of the memory resource by the terminal equipment executing the process of opening the page in the virtual screen for a long time can be avoided, and further, the terminal equipment releases the memory resource of the terminal equipment by closing the virtual screen.
In a possible implementation manner, the number of the notifications is one or more, in the first interface, a first control for marking that any notification is in a read state is further displayed near any notification, and the receiving, by the terminal device, a first operation in the first interface includes: the terminal equipment receives operation of a first control corresponding to the target notification on a first interface; the method for opening the page notifying the message in the corresponding application in the virtual screen by the terminal device comprises the following steps: and the terminal equipment opens a page of the message in the application corresponding to the target notification in the virtual screen. Therefore, when the control for marking the message as read is not provided in the notification, the terminal device can automatically add the first control to the notification, and further, after the terminal device receives the operation aiming at the first control, the read processing of the message in the application corresponding to the notification can be realized through the virtual screen.
In a possible implementation manner, the number of the notifications is one or more, and the first interface further includes a second control for marking the one or more notifications in a read state; the terminal equipment receives a first operation on a first interface, and the first operation comprises the following steps: the terminal equipment receives operation of a second control on a first interface; the method for opening the page notifying the message in the corresponding application in the virtual screen by the terminal device comprises the following steps: and the terminal equipment respectively opens one or more pages notifying messages in the corresponding application in the virtual screen. Therefore, when the control marking the message as read is not provided in the notification, the terminal device can automatically add the second control to the notification, and further, after the terminal device receives the operation aiming at the second control, the read processing of the message in the application corresponding to the notification can be realized through the virtual screen.
In a possible implementation manner, the number of the notifications is one or more, and the terminal device receives a first operation on a first interface, including: and the terminal equipment receives the operation of deleting any one notification on the first interface. In this way, after the end device receives the operation of deleting any one notification on the first interface, the read processing of the message in the application corresponding to the notification can be realized through the virtual screen.
In one possible implementation, the method further includes: the terminal equipment displays a second interface, wherein the second interface is an interface corresponding to the first application and comprises a third control; the terminal equipment receives a second operation aiming at the third control element; responding to the second operation, and opening the first folder by the terminal equipment; the first folder comprises message contents in the first application, wherein the message contents are in a read state based on the virtual screen. Therefore, the terminal equipment can collect the message content in the application, which is in the read state based on the virtual screen, in the folder, so that the user can conveniently search the message content subsequently.
In one possible implementation, the workspace stack of the virtual screen is created in the activity manager of the terminal device.
In one possible implementation, the corresponding interface is notified to be created in an activity manager of the terminal device; and when the terminal equipment calls the interface corresponding to the notification, the terminal equipment is used for moving the activity in the foreground working area stack of the notification to the working area stack of the virtual screen. In this way, the terminal device can complete the read processing of the message in the application corresponding to the notification through the virtual screen without the user's perception.
In one possible implementation manner, the opening, by the terminal device, a page notifying a message in a corresponding application in the virtual screen includes: the terminal equipment acquires a frame of a page informing a message in a corresponding application by using a window manager; the terminal equipment utilizes the surface manager to draw and render the frame of the page informing the corresponding message in the application; and the terminal equipment synthesizes the rendered frames by using a hardware synthesizer.
In a second aspect, an embodiment of the present application provides a message processing apparatus, where the message processing apparatus may be a terminal device, or may also be a component, a chip, or a chip system in the terminal device. The message processing apparatus may include a display unit and a processing unit. When the message processing apparatus is a terminal device, the processing unit may be a processor, the display unit may be a display screen, and the message processing apparatus may further include a storage unit, which may be a memory. The storage unit is configured to store instructions, and the processing unit executes the instructions stored by the storage unit to enable the terminal device to implement the method described in the first aspect or any one of the possible implementation manners of the first aspect. When the message processing apparatus is a component, a chip, or a chip system in a terminal device, the processing unit may be a processor, the display unit may be a display screen, and the processing unit executes instructions stored in the storage unit to enable the terminal device to implement the method described in the first aspect or any one of the possible implementation manners of the first aspect. The storage unit may be a storage unit (e.g., a register, a buffer, etc.) within the chip, or may be a storage unit (e.g., a read-only memory, a random access memory, etc.) located outside the chip within the terminal device.
Exemplarily, the display unit is used for displaying the first interface; the first interface is a drop-down notification bar and comprises notifications; the processing unit is used for receiving a first operation on a first interface; the processing unit is also used for responding to the first operation and calling and informing the corresponding interface to open the virtual screen; and the processing unit is also used for opening a page for notifying the message in the corresponding application in the virtual screen so as to notify that the message in the corresponding application is in a read state.
In a possible implementation manner, the processing unit is specifically configured to: and when the page informing the message in the corresponding application comprises the scroll bar, scrolling the scroll bar to the position corresponding to the latest message in the page.
In a possible implementation manner, the processing unit is specifically configured to: and when the time length occupied by the terminal equipment for opening the page notifying the message in the corresponding application in the virtual screen exceeds the preset time length, closing the virtual screen.
In a possible implementation manner, the number of the notifications is one or more, in the first interface, a first control for marking that any notification is in a read state is further displayed near any notification, and the processing unit is specifically configured to: receiving operation of a first control corresponding to the target notification on a first interface; the processing unit is specifically further configured to: and opening a page of the message in the application corresponding to the target notification in the virtual screen.
In a possible implementation manner, the number of the notifications is one or more, and the first interface further includes a second control for marking the one or more notifications in a read state; a processing unit, specifically configured to: receiving an operation directed to a second control at a first interface; the processing unit is specifically further configured to: and respectively opening one or more pages notifying messages in corresponding applications in the virtual screen.
In a possible implementation manner, the number of notifications is one or more, and the processing unit is specifically configured to: an operation to delete any one of the notifications is received at the first interface.
In a possible implementation manner, the display unit is further configured to display a second interface, where the second interface is an interface corresponding to the first application, and the second interface includes a third control; a processing unit further configured to receive a second operation for a third control; the processing unit is also used for responding to the second operation and opening the first folder; the first folder comprises message contents in the first application, wherein the message contents are in a read state based on the virtual screen.
In one possible implementation, the workspace stack of the virtual screen is created in the activity manager of the terminal device.
In one possible implementation, the corresponding interface is notified to be created in an activity manager of the terminal device; and when the terminal equipment calls the interface corresponding to the notification, the terminal equipment is used for moving the activity in the foreground working area stack of the notification to the working area stack of the virtual screen.
In a possible implementation manner, the processing unit is specifically configured to: acquiring a frame of a page informing a message in a corresponding application by using a window manager; drawing and rendering a frame of a page notifying a message in a corresponding application by using a surface manager; and synthesizing the rendered frame by using a hardware synthesizer.
In a third aspect, an embodiment of the present application provides a message processing apparatus, including a processor and a memory, where the memory is used to store code instructions, and the processor is used to execute the code instructions to perform the method described in the first aspect or any one of the possible implementation manners of the first aspect.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium, in which a computer program or instructions are stored, and when the computer program or instructions are run on a computer, the computer is caused to execute the method described in the first aspect or any one of the possible implementation manners of the first aspect.
In a fifth aspect, the present application provides a computer program product including a computer program, which when run on a computer causes the computer to perform the method described in the first aspect or any one of the possible implementations of the first aspect.
In a sixth aspect, an embodiment of the present application provides a message processing system, where the system includes: the second aspect and various possible implementations of the second aspect.
In a seventh aspect, the present application provides a chip or a chip system, where the chip or the chip system includes at least one processor and a communication interface, where the communication interface and the at least one processor are interconnected by a line, and the at least one processor is configured to execute a computer program or instructions to perform the method described in the first aspect or any one of the possible implementations of the first aspect; the communication interface in the chip may be an input/output interface, a pin, a circuit, or the like.
In one possible implementation, the chip or chip system described above in this application further comprises at least one memory having instructions stored therein. The memory may be a storage unit inside the chip, such as a register, a cache, etc., or may be a storage unit of the chip (e.g., a read-only memory, a random access memory, etc.).
It should be understood that the second to seventh aspects of the present application correspond to the technical solutions of the first aspect of the present application, and the advantageous effects obtained by the aspects and the corresponding possible implementations are similar and will not be described again.
Drawings
Fig. 1 is a schematic interface diagram of message processing according to an embodiment of the present disclosure;
fig. 2 is a schematic view of an interface for hiding a corner mark according to an embodiment of the present disclosure;
fig. 3 is a schematic interface diagram of deleting a corner mark on an application according to an embodiment of the present application;
fig. 4 is a schematic interface diagram of an unread message according to an embodiment of the present application;
fig. 5 is a schematic interface diagram of message processing according to an embodiment of the present application;
fig. 6 is a schematic diagram of a hardware structure of a terminal device according to an embodiment of the present application;
fig. 7 is a schematic diagram of a software structure of a terminal device according to an embodiment of the present application;
fig. 8 is a schematic interface diagram of message processing according to an embodiment of the present application;
fig. 9 is a schematic interface diagram of message processing according to an embodiment of the present application;
fig. 10 is a schematic interface diagram of a message processing provided in an embodiment of the present application;
fig. 11 is a schematic flowchart of a message processing method according to an embodiment of the present application;
fig. 12 is a schematic flowchart of a message processing method according to an embodiment of the present application;
fig. 13 is a schematic interface diagram of message processing according to an embodiment of the present application;
fig. 14 is a schematic interface diagram of message processing according to an embodiment of the present application;
fig. 15 is a schematic interface diagram of message processing according to an embodiment of the present application;
fig. 16 is a schematic flowchart of a message processing method according to an embodiment of the present application;
fig. 17 is a schematic flowchart of a message processing method according to an embodiment of the present application;
fig. 18 is a schematic flowchart of a message processing method according to an embodiment of the present application;
fig. 19 is a flowchart illustrating a message processing method according to an embodiment of the present application;
FIG. 20 is a schematic diagram of an interface for viewing message content according to an embodiment of the present application;
fig. 21 is a schematic structural diagram of a message processing apparatus according to an embodiment of the present application;
fig. 22 is a schematic structural diagram of a chip according to an embodiment of the present application.
Detailed Description
The term "plurality" herein means two or more. The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship; in the formula, the character "/" indicates that the preceding and following related objects are in a relationship of "division".
It is to be understood that the various numerical references referred to in the embodiments of the present application are merely for descriptive convenience and are not intended to limit the scope of the embodiments of the present application.
It should be understood that, in the embodiment of the present application, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiment of the present application.
With the development of terminal technology, a terminal device can install various types of Applications (APPs) (or may be called applications), and a user can meet different requirements through various types of applications. For example, a user may receive and/or send information via an information application, a user may chat via a WeChat application via video and/or voice, and so on.
Because different applications are installed on the terminal equipment, the terminal equipment receives the notifications of each application, when the user does not process the notifications, a corner mark is displayed on the application corresponding to the notifications in the desktop of the terminal equipment, the corner mark can reflect that the user has unread messages in the application corresponding to the notifications, the corner mark comprises a dot corner mark or a digital corner mark, and the numbers in the digital corner mark can reflect the number of the unread messages.
When a user processes a notification, a common processing mode is that the user can delete a message card corresponding to the notification in a pull-down notification bar, and a terminal device receives a deletion operation triggered by the user, so that the message card corresponding to the notification in the pull-down notification bar is no longer displayed.
Taking a WeChat application as an example, fig. 1 is a schematic view of an interface of message processing in a possible design, when a terminal device receives a WeChat notification from the WeChat application, the terminal device may remind a user of a new notification in a manner of ring and/or vibration, and when a screen of the terminal device is locked, the user may unlock the locked screen and slide from top to bottom from the unlocked screen, so that the terminal device may enter the interface shown in a in fig. 1; or, in a case that the screen of the terminal device is not locked, the user may slide from top to bottom from the currently displayed screen, and the terminal device may also enter the interface shown as a in fig. 1; the interface may be understood as a drop-down notification bar.
In the interface shown in a in fig. 1, the interface includes a message notification box corresponding to the WeChat notification, and the user can know the person who sent the message, the content of the message, and the time when the terminal device receives the message through the message notification box, for example, the person who sent the message is "a" in the WeChat directory, the content of the message is "test", the time when the terminal device receives the message is "just", which means that the receiving time is 20 o' clock 58 minutes on Wednesday of 4 months and 8 days; the message notification box may also be understood as the message card.
When the user slides the message notification box to the left, the terminal device receives an operation of sliding the message notification box to the left, the terminal device may enter an interface shown as b in fig. 1, the interface includes a setting and deleting control 101, and when the user triggers the deleting control 101 by clicking or touching, the terminal device may enter an interface shown as c in fig. 1; alternatively, it is understood that the terminal device may enter the interface shown as c in fig. 1 based on the slide delete operation triggered by the user.
Displaying no notification on the interface shown in c in fig. 1, which means that the terminal device deletes the WeChat notification in the drop-down notification bar; moreover, when the user slides the interface shown in c in fig. 1 from bottom to top, the terminal device may enter the interface shown in d in fig. 1 based on the user-triggered sliding operation from bottom to top, and the interface includes file management, e-mail, sports health, smart life, and wechat 102, and it can be seen that the wechat 102 also displays a corner mark.
It can be understood that, in the interface shown in a in fig. 1, when the user slides the message notification box to the right, the terminal device may enter the interface shown in c in fig. 1 from the interface shown in a in fig. 1 based on the operation of sliding to the right triggered by the user, and the above operation process may still cause the terminal device to delete the WeChat notification in the drop-down notification bar.
The interface diagram shown in fig. 1 is that the terminal device deletes the WeChat notification in the drop-down notification bar based on the operation of sliding deletion by the user, but the corner mark is still displayed on the WeChat application on the desktop of the terminal device; in other words, when the terminal device receives notifications of a plurality of applications, even if the plurality of notifications are deleted in the pull-down notification bar, the user sees the display corner mark on the application corresponding to the plurality of notifications.
Therefore, in an implementation manner of deleting a corner mark on an application, the terminal device may set a corner mark hiding operation based on a user, so that the user cannot see the corner mark on the application corresponding to the notification; alternatively, the terminal device may delete the corner mark on the application corresponding to the notification based on an operation performed by the user to perform the action, so that the user cannot see the corner mark on the application corresponding to the notification.
In one possible implementation manner, the terminal device may set the operation of hiding the corner mark based on the user, so that the user cannot see the corner mark on the application on the desktop of the terminal device.
For example, fig. 2 is a schematic view of an interface for hiding a setting corner mark provided in an embodiment of the present application, and as shown in fig. 2, when a terminal device receives an operation of opening a setting by a user, the terminal device may enter a setting interface shown in a in fig. 2. As shown in a of fig. 2, the setting interface may include a setting tab bar 201 and setting items, for example, the setting items may include one or more of the following: WLAN, bluetooth, mobile network, sound and vibration, application, battery, notification 202, or other types of settings; wherein WLAN and bluetooth are in an off state.
When the user triggers the notification 202 by clicking or touching or other operations in the setting interface shown in a in fig. 2, the terminal device receives the operation of the user setting notification 202, and the terminal device enters the interface of the setting notification shown in b in fig. 2; the interface for setting the notification may include a notification tab 203 and a notification item, for example, the notification item may include one or more of the following: a memo, email, browser, information 204, or other type of notification item; the notification of the memo, the e-mail, and the browser is set to off, and the notification of the information 204 is set to the notification center, sound.
When the user operates the trigger information 204 by clicking or touching or the like in the interface of the setting notification shown in b in fig. 2, the terminal device receives the operation of the user setting information 204, and the terminal device may enter the interface of the setting information shown in c in fig. 2. As shown in fig. 2c, the interface for setting information includes a setting information tab column 205 and information items, for example, the information items may include a permission notification 206, a sound, a mark 207, or other types of information items; the reference 207 may be understood as a numerical corner mark or an origin corner mark.
Wherein, the user sets the sound as a note and the user sets the flag as off, and since the notification 206 is allowed to be on, the user can set the reminder as a notification center, which can be understood as a pull-down notification bar; since the mark 207 is in the on state, when the terminal device receives the notification, the terminal device can remind the user of the notification by the note, and at the same time, the terminal device can display the notification on the pull-down notification bar.
When the user triggers the state of the flag 207 to be in the off state through operations such as clicking or touching in the interface for setting information shown in c in fig. 2, the terminal device receives the operation that the user sets the flag 207 to be in the off state, the terminal device can enter the interface shown in d in fig. 2, and the flag 207 is in the off state in the interface, so that when the terminal device receives the notification, the terminal device can remind the user of the notification through the musical note, and no matter whether the user deletes the notification in the pull-down notification bar, the corner mark is not displayed on the application corresponding to the notification on the desktop of the terminal device, so that the corner mark on the application corresponding to the notification is hidden in the User Interface (UI).
In another possible implementation manner, the terminal device may delete the corner mark on the application corresponding to the notification based on an operation performed by the user to perform an action, so that the corner mark is not visible on the application corresponding to the notification by the user.
For example, fig. 3 is a schematic interface diagram of deleting a corner mark on an application according to an embodiment of the present application, and as shown in fig. 3, when a terminal device receives an operation of opening a setting by a user, the terminal device may enter a setting interface shown in a in fig. 3. As shown in a of fig. 3, the setting interface may include a setting tab bar 301 and setting items, for example, the setting items may include one or more of the following: WLAN, bluetooth, mobile network, sound and vibration, application, battery, obsessive compulsive option 302, or other types of settings; wherein WLAN and bluetooth are in an off state.
When the user triggers the obsessive-compulsive disorder option 302 by clicking or touching or the like in the setting interface shown in a in fig. 3, the terminal device receives the operation of the user for setting the obsessive-compulsive disorder option 302, and the terminal device enters the interface for setting the obsessive-compulsive disorder option shown in b in fig. 3.
In the interface for setting obsessive-compulsive disorder option shown in b in fig. 3, the interface may include a obsessive-compulsive disorder option tab bar 303 and a close-to-screen horizontal-scan removal angle mark 304, because the close-to-screen horizontal-scan removal angle mark 304 is in an open state, when there is an angle mark on a plurality of applications on the desktop of the terminal device, the user may move the right palm downward or the left palm downward and close-to-screen of the terminal device from bottom to top, and the terminal device may delete the angle mark on the plurality of applications by recognizing the action performed by the user, so that the user cannot see the angle mark on the application corresponding to the notification.
It can be understood that specific contents of the user execution action may also be set according to an actual application scenario, and the embodiment of the present application is not limited.
In summary, when the terminal device receives the notification from the application, the terminal device may delete the notification in the pull-down notification bar based on a sliding deletion operation triggered by the user, and since the user also sees the corner mark on the application corresponding to the notification, in this case, the terminal device may hide the corner mark on the application corresponding to the notification based on an operation for setting the corner mark hiding by the user, so that the user cannot see the corner mark on the application corresponding to the notification; or, the terminal device may delete the corner mark on the application corresponding to the notification based on an operation of the user to perform the action, so that the user cannot see the corner mark on the application corresponding to the notification.
However, when the user opens the application, the corner mark is also displayed on the message in the application corresponding to the notification, and the corner mark on the message in the application corresponding to the notification is deleted only when the user continues to open the message in the application corresponding to the notification; if the terminal device receives the notifications of the plurality of applications, the user needs to open the messages in the applications corresponding to the notifications for many times, and the operation process is complicated.
For example, with reference to the interface shown in d in fig. 1, the terminal device may delete the corner mark on the WeChat 102 based on the manner shown in fig. 2 or fig. 3, but even if the corner mark is not displayed on the WeChat 102 in the manner described above, when the terminal device receives an operation of opening the WeChat 102 by a user, the terminal device enters the interface shown in fig. 4, where fig. 4 is an interface diagram of an unread message provided in this embodiment of the application, as can be seen from fig. 4, the corner mark still appears on a message in an application corresponding to the WeChat notification, and the corner mark reflects whether the message in the application corresponding to the notification is in an unread state.
Therefore, in order to implement the read processing of the message in the application corresponding to the notification, in a possible implementation manner, when the terminal device receives the notification of the application, if the notification of the application includes the marked read control, the terminal device may implement the read processing of the message in the application corresponding to the notification based on an operation of the user to mark the read control by clicking or touching, and the like.
When the application is an information application, for example, fig. 5 is an interface schematic diagram of message processing provided in the embodiment of the present application, as shown in fig. 5, when the terminal device receives an information notification of the information application, the terminal device may remind the user of the notification in a manner of ring and/or vibration, if the user unlocks the locked screen, the terminal device may enter an interface shown in a in fig. 5, where the interface includes file management, e-mail, exercise health, smart life, a camera, an address book, a phone, information 501, and the like, and an angle mark is displayed on the information 501.
When the user slides from top to bottom on the interface shown in a in fig. 5, the terminal device may enter the interface shown in B in fig. 5, where the interface includes a message notification box corresponding to the message notification, and the user can know, through the message notification box, the person who sent the message, the content of the message, and the time when the terminal device receives the message, for example, the person who sent the message is "B" in the contact, the content of the message is "hello", the time when the terminal device receives the message is "just", and the time just means that the receiving time is 20 o 58 minutes on day four of 4, 8 and 8 days; when the user triggers the marked read control 502 by clicking or touching and the like, the terminal device may delete the corner mark on the application corresponding to the notification based on the operation of the user triggering the marked read control 502, and the terminal device may enable the message in the application corresponding to the notification to be in a read state.
For example, when the user slides from bottom to top on the interface shown in b in fig. 5, the terminal device receives an operation of sliding from bottom to top by the user, and the terminal device may enter the interface shown in c in fig. 5, in the interface, no corner mark is displayed on the information 501 corresponding to the notification, further, when the user triggers the information 501 by clicking or touching, the terminal device receives an operation of opening the information 501 by the user, and the terminal device may enter the interface shown in d in fig. 5, and it can be seen that, in the interface, the message in the information application corresponding to the notification is in a read state.
Therefore, with reference to the interface shown in fig. 5, it can be known that, when the user clicks the marked read control 502, on the one hand, the terminal device does not display the corner mark on the information application corresponding to the notification, and on the other hand, the terminal device does not display the corner mark on the message in the information application corresponding to the notification based on the operation of the marked read control 502 triggered by the user, so that the read processing of the message in the application corresponding to the notification is really realized.
It should be noted that, since the terminal device provides an interface of the notification operation for the information application, so that the information application can provide an operation button (for example, a marked read button) in the notification, and after the user clicks the operation button in the notification of the information application, the information application can modify the state of the message in the information application corresponding to the notification without opening the message in the information application corresponding to the notification, for example, the state of the message in the information application corresponding to the notification is modified from an unread state to a read state by the information application, or it is understood that the information application sets the message in the information application corresponding to the notification to a read state, so that there is no corner mark on the information application corresponding to the notification or on the message in the information application corresponding to the notification, for example, the interface shown in c in fig. 5, no corner mark is displayed on the information 501, in the interface shown as d in fig. 5, there is also no corner mark on the message in the corresponding information application for this information notification.
When the user slides the message notification box leftwards on the interface shown in b in fig. 5, the interface entered by the terminal device is similar to the interface shown in b in fig. 1, even if the user clicks the deletion control, the terminal device only deletes the notification in the pull-down notification bar, and the information application also displays a corner mark; similarly, when the user slides the message notification box to the right in the interface shown in b in fig. 5, the interface entered by the terminal device is similar to the interface shown in c in fig. 1, and the terminal device simply deletes the notification in the pull-down notification bar and also displays a corner mark on the information application.
It can be understood that there are two ways for the terminal device to read the message mark in the application corresponding to the notification, where the first way is that when the mark read control is displayed in the notification sent by the application, and the terminal device triggers the operation of the mark read control based on an operation such as a user click or touch, the read processing of the message in the application corresponding to the notification can be implemented, for example, the interface shown in fig. 5; the second way is that when the application sends a notification that a marked read control is not displayed (in this case, it can be understood that the application does not provide or support a marked read function), the user can open a page of a message in the application corresponding to the notification, thereby implementing read processing on the message in the application corresponding to the notification, so that the message in the application corresponding to the notification becomes a read state.
In view of this, the embodiment of the present application provides a message processing method, when a terminal device displays a notification from an application on a first interface, the terminal device may receive a first operation on the first interface, and further, the terminal device may invoke an interface corresponding to the notification to open a virtual screen, so that the terminal device may open a page of the message in the application corresponding to the notification in the virtual screen, where a process of the terminal device opening the page of the message in the application corresponding to the notification in the virtual screen simulates a process of a user opening the page of the message in the application corresponding to the notification, so that the message in the application corresponding to the notification is in a read state, and thus after the user performs the first operation, without opening the page of the message in the application corresponding to the notification again, the corner mark on the message in the application corresponding to the notification and the corner mark on the application corresponding to the notification disappear, the operation process is simple.
It should be noted that, in this embodiment of the application, when a control for marking a message as read is not displayed in a notification sent by an application, or it is understood that a terminal device does not provide an interface for notification operation for the application, so that the application cannot provide a function of marking a message as read, the terminal device may automatically add the control for marking a message as read to the notification, so that the application that does not provide the function of marking a message as read may support the function of marking a message as read, and thus, after the terminal device receives the first operation on the first interface, the terminal device may open a page notifying a message in a corresponding application by using a virtual screen, so that the message may be marked as read by clicking the control for marking a message as read by one key, and further, the corresponding application is notified or no corner mark is notified on the message in the corresponding application; the control for marking the message as read can be understood as the first control or the second control described later.
In the embodiment of the present application, an implementation manner of creating a virtual screen by a terminal device is as follows: the terminal device may create a working area stack (virtual screen _ workspace _ stack) of the virtual screen in the activity manager, where the number of the working area stack of the virtual screen is 5(stack _ id is 5), and thus, the terminal device may open a page notifying a message in a corresponding application in the working area stack of the virtual screen, so as to simulate an operation of a user opening the page notifying the message in the corresponding application, and notify that the message in the corresponding application is in a read state; or the terminal device may open a page notifying the message in the corresponding application in the working area stack of the virtual screen, and further, when the page notifying the message in the corresponding application includes a scroll bar, the terminal device scrolls the scroll bar to a target position, so as to notify that the message in the corresponding application is in a read state.
The virtual screen runs in the background of the terminal equipment, so that a user cannot see the virtual screen; the workspace stack of the virtual screen is similar to a workspace stack of a full screen (fullscreen _ workplace _ stack), the number of the workspace stack of the full screen is 1(stack _ id ═ 1), and in the workspace stack of the full screen, the terminal device can display the activity triggered by the user in a full screen form, or understand that the terminal device can display the activity triggered by the user in the foreground.
In the embodiment of the present application, an implementation manner of creating an interface corresponding to a notification by a terminal device is as follows: the terminal device may create an interface corresponding to the notification in the activity manager, so that when the terminal device calls the interface corresponding to the notification, the terminal device moves the activity in the workspace stack of the notification foreground to the workspace stack of the virtual screen for processing, and the interface corresponding to the notification may be understood as an interface from a mobile activity to virtual stack based on an Activity Management Service (AMS), or may be referred to as an AMS.
The corresponding interface is similar to an AMS.
In the embodiment of the present application, the implementation manner of creating the control corresponding to the notification by the terminal device is as follows: the terminal equipment can set a character string in an application corresponding to the notification, and the terminal equipment can display a control near the notification according to the character string; the control corresponding to the notification may refer to a first control for marking any one notification as a read state, or the control corresponding to the notification may refer to a second control for marking one or more notifications as a read state.
Therefore, when the terminal equipment receives the first operation on the first interface, the terminal equipment can inform the corresponding application that the message is in a read state according to the control in the first interface; for example, in the interface shown in b in fig. 5, the corresponding control of the information notification may be marked as read 502.
For example, when the character string is "smart one-key-mark read", the smart one-key-mark read control is displayed on the first interface, so that when the user triggers the smart one-key-mark read control through operations such as clicking or touching, the terminal device receives the operation of the smart one-key-mark read control on the first interface, and the terminal device can open a page notifying messages in the corresponding application in the virtual screen, so that any message notifying that the corresponding application has the read state.
For example, when the character string is "all messages have been read by one key", all message controls have been read by one key are displayed on the first interface, so that when the user triggers all message controls have been read by one key through operations such as clicking or touching, the terminal device receives the operations of all message controls have been read by one key on the first interface, and the terminal device may open one or more pages notifying messages in the corresponding application in the virtual screen, so that the messages in the application corresponding to the one or more notifications are in a read state.
It can be understood that a specific implementation process of creating an interface corresponding to the notification by the terminal device may be set according to an actual application scenario, and the embodiment of the present application is not limited.
In a possible mode, the operation of displaying the first interface by the terminal device can be understood as that when the terminal device reminds the user of notification through a ring and/or vibration mode, the user can unlock the locked screen and slide the unlocked screen from top to bottom to enter the first interface under the condition that the screen of the terminal device is locked, so that the terminal device displays the first interface; or, under the condition that the screen of the terminal device is not locked, the user can slide from top to bottom from the currently displayed interface to enter the first interface, so that the terminal device displays the first interface.
In this embodiment of the present application, the terminal device may implement read processing on a message in an application corresponding to a notification, where the terminal device 100 may be: the mobile phone, the tablet computer, the smart watch, the smart bracelet, and other terminal devices capable of receiving messages are not limited in this application.
Fig. 6 is a schematic diagram of a hardware structure of a terminal device 100 according to an embodiment of the present disclosure, as shown in fig. 6, the terminal device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a power management module 141, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, a sensor module 180, a key 190, a camera 193, a display screen 194, and the like; among them, the sensor module 180 may include: a pressure sensor 180A, an acceleration sensor 180E, a fingerprint sensor 180H, and a touch sensor 180K, etc.
It should be noted that the illustrated structure of the embodiment of the present application does not constitute a specific limitation to the terminal device 100; it will be appreciated that terminal device 100 may include more or fewer components than illustrated, or combine certain components, or split certain components, or a different arrangement of components; where the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 110 may include one or more processing units, such as: the processor 110 may include an Application Processor (AP), a modem processor, a Graphics Processor (GPU), an Image Signal Processor (ISP), a controller, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), etc.; the different processing units may be separate devices or may be integrated into one or more processors.
A memory may also be provided in processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 may be a cache memory that may hold instructions or data that have just been used or recycled by the processor 110.
In some embodiments, the processor 110 may include one or more interfaces, which may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit built-in audio (I2S) interface, a Pulse Code Modulation (PCM) interface, and/or a Universal Serial Bus (USB) interface, among others.
The user interface 130 is used for transmitting data between the terminal device 100 and a peripheral device, and may also be used for connecting an earphone and playing audio through the earphone; the user interface 130 may also be used to connect other devices, such as Augmented Reality (AR) devices and the like.
The power management module 141 receives the input of the charging management module 140, and the power management module 141 supplies power to the processor 110, the internal memory 121, the display 194, the camera 193, the wireless communication module 160, and the like.
The wireless communication function of the terminal device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, and the like; wherein the antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. The antennas in terminal device 100 may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example, the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network.
The mobile communication module 150 may provide a solution including wireless communication of 2G/3G/4G/5G, etc. applied to the terminal device 100; the wireless communication module 160 may provide a solution for wireless communication applied to the terminal device 100, including Wireless Local Area Networks (WLANs) (e.g., wireless fidelity (Wi-Fi) networks), bluetooth (bluetooth, BT), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR), and the like.
In some embodiments, the antenna 1 of the terminal device 100 is coupled to the mobile communication module 150 and the antenna 2 is coupled to the wireless communication module 160, so that the terminal device 100 can communicate with the network and other devices through wireless communication technology; the wireless communication technology may include global system for mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and/or IR technology, etc.
The terminal device 100 realizes a display function through the display screen 194, the display screen 194 is used to display images, videos, and the like, and the display screen 194 includes a display panel. In some embodiments, the terminal device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
The terminal device 100 may implement a shooting function by a camera 193 or the like, and the camera 193 is used to capture a still image or video.
The external memory interface 120 may be used to connect an external memory card to extend the memory capability of the terminal device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function.
The internal memory 121 may be used to store computer-executable program code, which includes instructions. The internal memory 121 may include a program storage area and a data storage area. The storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like.
The pressure sensor 180A is used for sensing a pressure signal, and converting the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194.
The acceleration sensor 180E may detect the magnitude of acceleration of the terminal device 100 in various directions (generally, three axes); the fingerprint sensor 180H is used to collect a fingerprint. The terminal device 100 can utilize the collected fingerprint characteristics to realize fingerprint unlocking, access to an application lock, fingerprint photographing, fingerprint incoming call answering and the like.
The touch sensor 180K is also called a "touch device". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is used to detect a touch operation applied thereto or nearby.
In the embodiment of the application, when the terminal device receives a notification sent by an application, the terminal device displays one or more notifications on a first interface, a user can execute a first operation through a touch screen, the terminal device can call an interface corresponding to the notification to open a virtual screen in response to the first operation, the terminal device opens a page of a message in the application corresponding to the notification in the virtual screen, and the process that the user opens the page of the message in the application corresponding to the notification in the virtual screen simulates the process that the user opens the page of the message in the application corresponding to the notification, so that the message in the application corresponding to the notification is in a read state.
The keys 190 include a volume key and the like, and the keys 190 may be mechanical keys or touch keys. The terminal device 100 may receive a key input, and generate a key signal input related to user setting and function control of the terminal device 100.
Exemplarily, fig. 7 is a schematic diagram of a software structure of a terminal device 100 according to an embodiment of the present disclosure, and as shown in fig. 7, a layered architecture divides a software system of the terminal device 100 into several layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface.
In some embodiments, the Android system may be divided into five layers, namely an application layer (applications), an application framework layer (application framework), an Android runtime (Android runtime), and a system library, a Hardware Abstraction Layer (HAL), and a kernel layer (kernel).
In a possible manner, the application layer may include a series of application packages, and the application layer runs the application by calling an Application Programming Interface (API) provided by the application framework layer. For example, as shown in FIG. 7, the application package may include camera, calendar, map, phone, music, settings, mailbox, video, or social applications.
In a possible approach, the application framework layer provides APIs and programming frameworks for applications at the application layer. For example, as shown in fig. 7, the application framework layer may include a window manager, a content provider, a resource manager, a view system, an input system, a notification manager, etc., and the application framework layer may also include some predefined functions, etc.
The window manager is used for managing window programs, and can acquire the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make it accessible to applications, for example, data may include browsing history and bookmarks, calls made and received, videos, images, audio or phone books, and the like.
Among other things, the resource manager provides various resources, such as localized strings, icons, pictures, layout files, video files, etc., to the application.
The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, the display interface may include a short message notification icon, and may include a view for displaying text and a view for displaying pictures.
Wherein the input system is for managing a program of the input device. For example, the input system may determine input operations such as a mouse click operation, a keyboard input operation, and a touch slide.
The notification manager enables the application program to display notification information in the status bar, can be used for conveying notification type messages, can automatically disappear after short-time stopping, and does not need user interaction. For example, a notification manager is used to inform download completion, message alerts, and the like. The notification manager may also be a notification that appears in the form of a chart or scroll bar text in the top status bar of the system, e.g., a notification of a background running application, or a notification that appears on the screen in the form of a dialog window, e.g., prompting a text message in the status bar, sounding a prompt tone, vibrating the terminal device 100, flashing an indicator light, etc.
The activity manager is used for managing the life cycle and the navigation backspacing function of each application program, and is responsible for Android main thread creation and maintenance of the life cycle of each application program.
In this embodiment of the application, the terminal device may create a virtual screen in the activity manager, and may also create an interface corresponding to the notification in the activity manager, so that when the terminal device responds to the first operation, the interface corresponding to the notification may be called to open the virtual screen, and a page notifying a message in the corresponding application is opened in the virtual screen, so that the message in the corresponding application is notified to be in a read state.
The Android runtime is used for scheduling and managing an Android system in a possible mode and can comprise a core library and a virtual machine. Wherein, the core library comprises two parts: one part is a function to be called by java language, and the other part is a kernel library of android; the virtual machine is used for executing the functions of object safety and exception management, life cycle management, stack management, thread management, garbage collection and the like.
It should be noted that the application layer and the application framework layer run in the virtual machine, and the virtual machine executes java files of the application layer and the application framework layer as binary files.
In a possible manner, the system library may include a plurality of function modules. For example: surface managers (surface managers), Media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., OpenGL ES), two-dimensional graphics engines, and the like.
The surface manager is used for managing the display subsystem and providing fusion of two-dimensional and three-dimensional layers for a plurality of application programs; the three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like; the two-dimensional graphic engine is a drawing engine for two-dimensional drawing; the media library supports various commonly used video format playback and recording, audio and still image files, etc., and the media library may support various audio and video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, etc.
In this embodiment of the application, the Surface manager further includes a Surface module and a Surface Flinger module, where the Surface module is configured to draw and render a frame of a page notifying a corresponding message in an application, and the Surface Flinger module is configured to cooperate with a hardware synthesizer to synthesize the drawn and rendered frame.
In a possible manner, the hardware abstraction layer may include a plurality of library modules, which may be, for example, a camera library module, a motor library module, and the like. The Android system can load corresponding library modules for the equipment hardware, and then the purpose that the application program framework layer accesses the equipment hardware is achieved. The device hardware may include, for example, a motor, a camera, etc. in the terminal device.
In an embodiment of the present application, the hardware abstraction layer may further include a hardware synthesizer (HWC), and the HWC includes a virtual screen module, and the virtual screen module is configured to open a page notifying a message in the corresponding application in the virtual screen.
In conjunction with the window manager, surface manager, and HWC, the terminal device may open a page in the application corresponding to the notification in the virtual screen. For example, after the terminal device obtains, through the window manager, a frame notifying a page of a message in a corresponding application, the Surface module may draw and render the frame notifying the page of the message in the corresponding application, and write the drawn and rendered frame into the buffer queue, and the Surface flunger module sends the frame in the buffer queue to the HWC.
In a possible manner, the kernel layer is a layer between hardware and software, and the kernel layer at least includes a display driver, an audio driver, a camera driver, a sensor driver, a motor driver, or the like, which is not limited in this embodiment of the present application.
The following describes a message processing method provided in an embodiment of the present application in detail with reference to the accompanying drawings. It should be noted that "at … …" in the embodiment of the present application may be at the instant of a certain condition, or may be within a certain period of time after a certain condition occurs, and the embodiment of the present application is not particularly limited to this.
Taking an interface of message processing as an example, the following describes an example of a process in which a terminal device implements a read process of notifying a message in a corresponding application.
Exemplarily, fig. 8 is an interface schematic diagram of message processing provided in an embodiment of the present application, as shown in fig. 8, when a terminal device receives a notification from a WeChat application, the terminal device may remind a user of a new notification in a manner of ring and/or vibration, and if the user unlocks a locked screen and slides from the unlocked screen from top to bottom, the terminal device may enter an interface shown in a in fig. 8 based on a top-to-bottom sliding operation triggered by the user, where the interface shown in a in fig. 8 is a drop-down notification bar; the specific content in the interface shown in a in fig. 8 may refer to the content adaptation description shown in a in fig. 1, and is not described again here; also, in the interface shown in a in fig. 8, a smart one-click read control 801 is also displayed in the vicinity of the notification.
When the user triggers the intelligent one-key-mark read control 801 by clicking or touching or other operations in the interface shown in a in fig. 8, the terminal device receives an operation on the intelligent one-key-mark read control 801 corresponding to the WeChat notification based on the operation of the intelligent one-key-mark read control 801 triggered by the user, and the terminal device may enter the interface shown in b in fig. 8 and display no notification on the interface shown in b in fig. 8.
Moreover, when the user slides from bottom to top on the interface shown in b in fig. 8, the terminal device may enter the interface shown in c in fig. 8, which includes file management, e-mail, sports health, smart life, camera, address book, phone, information, and WeChat 802, etc., based on the user-triggered sliding operation from bottom to top.
When the user triggers the WeChat 802 through an operation such as clicking or touching, the terminal device may enter an interface shown as d in FIG. 8 based on an operation of opening the WeChat 802 triggered by the user, and when the user triggers the return key 803 through an operation such as clicking or touching on the interface shown as d in FIG. 8, the terminal device may enter an interface shown as e in FIG. 8, which is different from the interface shown in FIG. 4, in the interface shown as e in FIG. 8, no corner mark is displayed on the message in the application corresponding to the notification, which means that the terminal device makes the message in the application corresponding to the WeChat notification be in a read state based on an operation of the intelligent one-key mark read control 801 triggered by the user; the content of the interface shown in fig. 8 may refer to the content adaptation description of the interface shown in fig. 1, and is not described herein again.
It should be noted that, when the terminal device receives the operation of the intelligent one-touch marked read control 801 triggered by the user, the terminal device may call the interface corresponding to the WeChat notification in the background to open the virtual screen, and opens a page of the message in the corresponding application for the notification of the WeChat in the virtual screen, for example, the terminal device opens an interface as shown by d in FIG. 8 in the virtual screen, since the process of the terminal device opening the interface shown by d in fig. 8 in the virtual screen simulates the process of the user opening the page of the message in the corresponding application for the WeChat Notification, so that the message in the corresponding application is in a read state, and thus the user cannot see the corner mark on the message 802 in the interface shown in c in fig. 8, and also cannot see the corner mark on the message in the corresponding application in the interface shown in e in fig. 8.
It should be noted that, when the terminal device enters the interface shown in e in fig. 8 from the interface shown in c in fig. 8, the terminal device may simulate the process of entering the interface shown in e in fig. 8 from the interface shown in d in fig. 8 on the virtual screen, so that, after the terminal device receives the operation of clicking or touching by the user, the terminal device may enter the interface shown in e in fig. 8 from the interface shown in c in fig. 8.
For example, fig. 9 is a schematic view of an interface for message processing provided by an embodiment of the present application, where the interface shown in fig. 9 is described on the basis of the interface shown in fig. 8, and the interface shown in fig. 9 includes a message notification box corresponding to a WeChat notification, therefore, when a user slides the message notification box to the left in the interface shown in a in fig. 9, a drop-down notification bar displays a deletion control 804, and the terminal device receives an operation that the user triggers the deletion control 804, and the terminal device may also make a message in a corresponding application of the WeChat notification in a read state; the content of the interface shown in fig. 9 may refer to the content adaptation description of the interface shown in fig. 8, and is not described herein again.
It should be noted that, when the terminal device receives an operation of triggering the delete control 804 by the user, the terminal device may call the interface corresponding to the WeChat notification in the background to open the virtual screen, and opens a page of the message in the corresponding application for the notification of the WeChat in the virtual screen, for example, the terminal device opens an interface as shown by e in FIG. 9 in the virtual screen, since the process of the terminal device opening the interface shown by e in fig. 9 in the virtual screen simulates the process of the user opening the page of the message in the corresponding application for the WeChat Notification, so that the message in the corresponding application is in a read state, and thus the user cannot see the corner mark on the message 802 in the interface shown by d in fig. 9, and also cannot see the corner mark on the message in the corresponding application in the interface shown by f in fig. 9.
It should be noted that, when the terminal device enters the interface shown by f in fig. 9 from the interface shown by d in fig. 9, the terminal device may simulate the process of entering the interface shown by f in fig. 9 from the interface shown by e in fig. 9 on the virtual screen, so that, after the terminal device receives the operation of clicking or touching by the user, the terminal device may enter the interface shown by f in fig. 9 from the interface shown by d in fig. 9.
It can be understood that, in the interface shown in a in fig. 9, when the user triggers the intelligent one-touch marked read control 801 by clicking or touching, and the terminal device may also implement the read processing of notifying the message in the corresponding application based on the operation of the intelligent one-touch marked read control 801 triggered by the user, and the specific process may refer to the content adaptation description shown in fig. 8, and is not described herein again.
Further, it can be understood that, when the intelligent one-key marked read control is displayed near the notification in the drop-down notification bar, the terminal device may implement read processing of the message in the application corresponding to the notification based on an operation of the intelligent one-key marked read control triggered by the user; even if the intelligent one-key marked read control is not displayed nearby the notification in the pull-down notification bar, the terminal equipment can realize the read processing of the message in the application corresponding to the notification based on the deletion operation triggered by the user; the delete operation may refer to an operation of the delete control 804 shown in b in fig. 9 triggered by the user, or may refer to an operation of the user sliding to the right in the interface shown in a in fig. 9, or another operation for instructing to notify deletion, which is not limited in the embodiment of the present application.
If the interface shown in a in fig. 8 includes one or more notifications, in order to improve the efficiency of the terminal device in performing read processing on the messages in the application corresponding to the one or more notifications, the terminal device may implement that the messages in the application corresponding to the one or more notifications are in the read state based on all message controls that are read by one key and are triggered by the user and mark that the one or more notifications are in the read state.
For example, fig. 10 is an interface schematic diagram of message processing provided in the embodiment of the present application, as shown in fig. 10, when a terminal device displays a WeChat notification and a QQ notification in a pull-down notification bar, and a user triggers a button to read all message controls 1001 by clicking or touching, the terminal device receives an operation on the button to read all message controls 1001 in the pull-down notification bar, and the terminal device may open pages of messages in applications corresponding to the WeChat notification and the QQ notification in a virtual screen, so that the messages in the applications corresponding to the WeChat notification and the QQ notification are in a read state.
In the interface shown in fig. 10, the terminal device displays the just received WeChat notification on the upper side of the drop-down notification bar, and the terminal device displays the QQ notification received 1 minute ago on the lower side of the WeChat notification, so that the terminal device can open the pages of the messages in the application corresponding to the WeChat notification and the QQ notification in the virtual screen according to the time of receiving the notification.
For example, when the terminal device processes the latest notification first, the terminal device may open a page of a message in the application corresponding to the WeChat notification first in the virtual screen, and then open a page of a message in the application corresponding to the QQ notification; or, when the terminal device processes the latest notification according to the post-processing mode, the terminal device may open the page of the message in the application corresponding to the QQ notification in the virtual screen, and then open the page of the message in the application corresponding to the WeChat notification.
It can be understood that the sequence of opening the page of the one or more messages in the application corresponding to the notification in the virtual screen by the terminal device may also be set according to an actual application scenario, and the embodiment of the present application is not limited.
It should be noted that, the process that the terminal device enters the interface shown in fig. 10 may refer to the content adaptation description of the interface shown in a in fig. 8, the process that the terminal device enters the page of the message in the application corresponding to the WeChat Notification or the QQ Notification, or refer to the content adaptation description of the interfaces shown in b to d in fig. 8, which is not described herein again.
With reference to the content shown in fig. 10, it can be understood that, when the terminal device receives notifications from multiple applications, the terminal device may display the notifications of the multiple applications in a pull-down notification bar, and if there is an association relationship between the multiple applications and messages in the applications corresponding to the multiple notifications are messages with the same content, the following several possible processing manners are included:
in a first possible processing manner, the terminal device may retain one of the notifications, and perform read processing on the messages in the applications corresponding to the other notifications, so that when the terminal device enters the pull-down notification bar through operations such as clicking or touching by a user, the user sees that the notification is the retained notification, and based on the operation performed by the user on the retained notification, the terminal device may perform read processing on the messages in the applications corresponding to the retained notification, and the specific process may refer to the foregoing adaptive description, which is not described herein again; the multiple applications have an association relationship therebetween, and it can be understood that authorization management exists among the multiple applications.
In a first example, when the messages with the same content are messages of the same transaction, the plurality of applications may respectively refer to an entertainment application, a bank application, an information application, and a payment application, and since the payment application adds a bank card corresponding to the bank application, and the user starts a consumption reminder of the bank card in the bank application, the user may select the bank card added in the payment application to pay for the consumption when the user consumes the entertainment application, and when the consumption payment is successful, the terminal device may receive a notification from the entertainment application, the bank application, the information application, and the payment application.
Therefore, in the first example, if the notification retained by the terminal device is the notification of the entertainment application, the user can see the notification of the entertainment application in the pull-down notification bar, and the notification of the information application, the bank application and the pay application cannot be seen by the user in the first interface because the terminal device has already read the messages in the applications corresponding to other notifications; the specific processing procedure may refer to the foregoing adaptive description, and is not described herein again.
In a second example, when the messages with the same content are messages of the same flight itinerary, the multiple applications may respectively refer to a flight itinerary application, a bank application, an information application, and a payment treasured application, because the payment treasured application adds a bank card corresponding to the bank application, and the user starts a consumption reminder of the bank card in the bank application, in this way, when the user consumes in the flight itinerary application, the user may select the bank card added in the payment treasured application to pay for the consumption, and when the consumption payment is successful, the terminal device may receive a notification from the flight itinerary application, the bank application, the information application, and the payment treasured application.
Therefore, in the second example, if the notification retained by the terminal device is the notification of the flight itinerary application, the user can see the notification of the flight itinerary application in the pull-down notification bar, and the user cannot see the notifications of the information application, the bank application and the pay-for-use application in the pull-down notification bar because the terminal device has already processed the messages of other notifications in the corresponding applications to be read; the specific processing procedure may refer to the foregoing adaptive description, and is not described herein again.
It should be noted that the remaining notification may be determined by the terminal device according to the time for receiving the notification, for example, the remaining notification may be the notification that the terminal device receives earliest in the plurality of notifications, or the remaining notification may be the notification that the terminal device receives latest in the plurality of notifications, which is not limited in the embodiment of the present application.
In a second possible processing manner, based on an operation performed by a user on one of the notifications, the terminal device may perform read processing on a message in an application corresponding to the one notification, and in addition, in a case that the user does not perform an operation on the other notifications, the terminal device may also perform read processing on messages in applications corresponding to the other notifications, so that efficiency of performing read processing on messages in the applications corresponding to the notifications by the terminal device is improved; the specific processing procedure may refer to the foregoing adaptive description, and is not described herein again.
For example, in connection with the first example described above, when the user performs an operation on the notification of the information application, the terminal device may perform read processing on the message in the application corresponding to the notification, and in a case where the user does not perform an operation on another notification, the terminal device may also perform read processing on the message in the application corresponding to another notification, for example, the terminal device may perform read processing on the message in the application corresponding to the notification of the entertainment application, the bank application, and the payment instrument application.
The specific content of the notification execution operation performed by the user on the information application may refer to the foregoing content adaptation description, and is not described herein again.
It should be noted that the above-described messages with the same content may refer to messages with the same keyword, for example, the keyword may include a consumption amount, a flight travel time, a flight travel date, and the like, and it is understood that the specific content of the keyword may be based on a result of parsing, by the terminal device, the messages in the applications corresponding to the multiple notifications, and the embodiment of the present application is not limited.
With reference to the contents of the interfaces shown in fig. 8 to fig. 10, for example, fig. 11 is a flowchart of a message processing method provided in the embodiment of the present application, and as shown in fig. 11, the method may include the following steps:
s1101: the terminal equipment displays the first interface.
In the embodiment of the present application, the first interface may be understood as a drop-down notification bar, and the first interface includes a notification, for example, in conjunction with fig. 8, the first interface is an interface shown as a in fig. 8, and the interface includes a WeChat notification.
The terminal device may display the notification from the application on the first interface through the notification manager, the application may be a third-party application installed on the terminal device, for example, a WeChat application or a Paibao application, and the first application may also be an application installed in a factory of the terminal device, for example, an information application or a telephone application.
It can be understood that the specific content of the first interface may also be set according to an actual application scenario, and the embodiment of the present application is not limited.
S1102: the terminal equipment receives a first operation on the first interface.
In the embodiment of the application, based on the difference of the controls in the first interface, the terminal device receives the first operation in the first interface with different meanings.
In a first example, in a first interface, if the number of the notifications is one or more, a first control for marking that any notification is in a read state is also displayed near any notification, and the terminal device receives a first operation on the first interface, which may be understood as that the terminal device receives an operation on the first control corresponding to the target notification on the first interface.
The target notification may be understood as a notification that the user clicks or touches in sequence, so that the terminal device may also receive the first operation in sequence on the first interface. For example, referring to fig. 8, the first control is the smart one-touch-tag read control 801, the target notification is the WeChat notification shown in a in fig. 8, and the first operation is an operation such as a user clicking or touching to trigger the operation of the smart one-touch-tag read control 801.
In a second example, in the first interface, a second control for marking one or more notifications as read states is further included, and the terminal device receives the first operation in the first interface, which may be understood as that the terminal device receives an operation directed to the second control in the first interface. For example, referring to fig. 10, the second control is a one-touch read all-message control 1001, and the first operation is an operation of clicking or touching by the user to trigger the one-touch read all-message control 1001.
In a third example, the terminal device receives a first operation on the first interface, which may be understood as that the terminal device receives an operation of deleting any one of the notifications on the first interface. For example, in conjunction with fig. 9, the first operation is an operation such as a user clicking or touching to trigger the operation of the delete control 804.
In connection with the above three examples, it may be understood that, when the first interface includes the second control for marking the one or more notifications as read status, the first control for marking the notifications as read status may also be displayed near any one notification, and in a case where the first interface includes the second control and the first control, the user may delete any one notification on the first interface, so that the user clicks or touches the first control; or, the terminal device may receive the first operation on the first interface by clicking or touching the second control by the user, or by deleting any one of the notifications on the first interface by the user, and the terminal device receives specific content of the first operation on the first interface.
The user may delete any notification on the first interface by sliding, clicking, touching, or in other manners, which is not limited in the embodiment of the present application.
S1103: and responding to the first operation, and calling and informing a corresponding interface by the terminal equipment to open the virtual screen.
In this embodiment of the application, the interface corresponding to the notification may be understood as an ams.
S1104: and the terminal equipment opens a page for notifying the message in the corresponding application in the virtual screen, so that the message in the corresponding application is notified to be in a read state.
In this embodiment of the present application, a page for notifying a message in a corresponding application may refer to a page for notifying a message corresponding to the message to be specifically displayed in the application, and in the interface, a user may see the message in the application corresponding to the notification, and a user may also see other messages received before the notification; for example, in connection with fig. 8, the page notifying the message in the corresponding application may be an interface shown as d in fig. 8; in conjunction with fig. 9, the page notifying the message in the corresponding application may be an interface shown as e in fig. 9.
In this embodiment, with reference to fig. 7, the terminal device may display the notification on the first interface through the notification manager, and further, after the terminal device receives the first operation triggered by the user, the terminal device opens a page of the message in the application corresponding to the notification in the virtual screen in an implementation manner that: the terminal device may obtain, by using the window manager, a frame of a page notifying a message in a corresponding application, and further, the terminal device draws and renders, by using the surface manager, the frame of the page notifying the message in the corresponding application, and further, the terminal device synthesizes the rendered frame by using the hardware synthesizer, and a specific implementation process may refer to the foregoing content adaptation description, which is not described herein again.
It should be noted that, when the terminal device receives multiple notifications, the terminal device may sequentially perform read processing on messages in applications corresponding to the multiple notifications on the same virtual screen, and since the processing process of the terminal device on the virtual screen is a background process, the user does not perceive the messages; or, the terminal device may close the virtual screen after the message in the application corresponding to the certain notification is read; and the terminal equipment can open the virtual screen again when the message in the application corresponding to the next notification is read.
To sum up, in the embodiment shown in fig. 11, the terminal device displays the first interface, and receives the first operation on the first interface, and the terminal device may invoke the interface corresponding to the notification to open the virtual screen, so that the terminal device may open the page of the message in the application corresponding to the notification in the virtual screen, and a process of opening the page of the message in the application corresponding to the notification in the virtual screen by the terminal device simulates a process of opening the page of the message in the application corresponding to the notification by a user, so that the terminal device may make the message in the application corresponding to the notification in a read state.
Based on the embodiment shown in fig. 11, exemplarily, fig. 12 is a flowchart illustrating a message processing method provided in the embodiment of the present application, where the method of the embodiment of the present application describes an interaction process between an internal structure of a terminal device and an application, and as shown in fig. 12, the method includes the following steps:
s1201: the notification manager displays the notification on the first interface.
S1202: and after receiving a first operation aiming at the first interface, the activity manager opens the virtual screen.
In the embodiment of the application, because the terminal device creates the workspace stack of the virtual screen in the activity manager, the activity manager can open the virtual screen after receiving the first operation for the first interface.
The activity manager receives a first operation for the first interface, and it can be understood that the terminal device receives the first operation for the first interface by using the activity manager, so that the terminal device can open the virtual screen in response to the first operation.
S1203: the activity manager sends a message to the window manager indicating a frame to retrieve a page that notifies the corresponding message in the application.
S1204: the window manager obtains a frame from an application informing a page of a message in a corresponding application.
In this embodiment, with reference to fig. 8 to fig. 10, an application may refer to a WeChat application or a QQ application, and may also refer to other applications, and specific contents of the application may be set according to an actual application scenario, which is not limited in this embodiment.
S1205: the window manager sends a frame to the surface manager informing of the page of the message in the corresponding application.
S1206: the surface manager draws and renders frames of pages in the virtual screen that notify messages in the corresponding application.
S1207: the surface manager sends the rendered frame to the HWC.
S1208: the HWC synthesizes the rendered frames in the virtual screen.
S1209: the HWC sends information to the notification manager indicating that a page notifying messages in the corresponding application has been opened in the virtual screen.
S1210: the notification manager sends information to the application indicating that the message flag in the corresponding application is to be notified that it has been read.
S1211: and the application deletes the corner mark on the application corresponding to the notification and notifies the corner mark on the message in the corresponding application.
In the embodiment of the present application, the contents of S1201-S1211 may refer to the foregoing content adaptation description, and are not described herein again.
In summary, in the embodiment of the present application, the terminal device may open a page notifying a message in a corresponding application on the virtual screen through the activity manager, the window manager, the surface manager, and the HWC, so that the message in the corresponding application is notified to be in a read state, although the user cannot see a process of performing read processing on the message in the application corresponding to the notification on the user interface, after performing the first operation through the first interface, the terminal device may delete the corner mark on the application corresponding to the notification without performing an additional operation, which is simple in operation process, and meanwhile, the user is prevented from being bored due to excessive corner marks on the application.
Taking an application corresponding to a notification as a WeChat application as an example, fig. 13 is an interface schematic diagram of message processing provided in an embodiment of the present application, where the content of the interface shown in fig. 13 may refer to the content adaptation description of the interface shown in fig. 8, in the interface shown in fig. 13, a terminal device receives 4 notifications from the same contact, and a message in an application corresponding to the latest notification is "test", and when a user triggers the intelligent one-key-marked read control 801 through operations such as clicking or touching, the terminal device may perform read processing on the message in the application corresponding to the WeChat notification; the content of the interfaces shown by a to e in fig. 13 may refer to the content adaptation description of the interfaces shown by a to e in fig. 8, and is not described herein again.
Different from the process that the terminal device performs read processing on the notification shown in a in fig. 8 in the virtual screen, the terminal device calls an interface corresponding to the WeChat notification to open the virtual screen in the background, and after a page of the message in the application corresponding to the notification is opened in the virtual screen, the terminal device can scroll the scroll bar to a position corresponding to the latest message in the page; for example, fig. 14 is a schematic interface diagram of message processing provided in an embodiment of the present application, where when a position corresponding to a latest message in a page is a second position, a terminal device may scroll a scroll bar downwards from the first position to the second position; wherein, the first location may be understood as a location corresponding to the first message in the corresponding application of the WeChat Notification.
Similarly, when the terminal device receives a web page notification from an application, the terminal device may perform read processing on a message in the application corresponding to the web page notification based on an operation of deleting the control triggered by the user, or based on an operation of marking the read control by an intelligent key triggered by the user, or based on an operation of reading all message controls by a key triggered by the user.
For example, fig. 15 is an interface schematic diagram of message processing provided in an embodiment of the present application, where after a terminal device calls an interface corresponding to a web page notification in a background to open a virtual screen, and opens a page of a message in an application corresponding to the web page notification in the virtual screen, the page of the message in the application corresponding to the web page notification may be referred to as a web page, and the terminal device may scroll a scroll bar of the web page from a third position to a fourth position, so that the terminal device scrolls the scroll bar to a position corresponding to the bottommost content in the web page.
Based on the embodiments shown in fig. 13-fig. 15, for example, fig. 16 is a schematic flowchart of a message processing provided in the embodiment of the present application, and as shown in fig. 16, the method may include the following steps:
s1601: the terminal equipment displays the first interface.
S1602: the terminal equipment receives a first operation on the first interface.
S1603: and responding to the first operation, and calling and informing a corresponding interface by the terminal equipment to open the virtual screen.
S1604: and the terminal equipment opens a page for notifying the message in the corresponding application in the virtual screen, and when the page for notifying the message in the corresponding application comprises the scroll bar, the terminal equipment scrolls the scroll bar to the target position, so that the message in the corresponding application is notified to be in a read state.
In the embodiment of the present application, the terminal device scrolls the scroll bar to the target position, which may be understood as that the terminal device scrolls the scroll bar to a position corresponding to the latest message in the application corresponding to the notification, for example, an interface shown in fig. 14; alternatively, the terminal device scrolls the scroll bar to the target position, which may be understood as that the terminal device scrolls the scroll bar to a position corresponding to the bottommost content in the application corresponding to the notification, for example, the interface shown in fig. 15.
In the embodiment of the present application, the terminal device scrolls the scroll bar to the target position, which includes the following possible implementation manners:
in a first possible implementation manner, the terminal device may scroll the scroll bar to the target position by using a dispatch get () method of the barrier-free service, and a specific implementation process may be set according to an actual application scenario, which is not limited in the embodiment of the present application.
It should be noted that, when the barrier-free service is started by the terminal device, the terminal device may scroll the scroll bar to the target position on the virtual screen by using the barrier-free service; or, in the case that the barrier-free service is not started by the terminal device, the terminal device may forcibly start the barrier-free service when the user is not authorized, so that the terminal device may close the barrier-free service after the terminal device scrolls the scroll bar to the target position using the barrier-free service.
In a second possible implementation manner, the terminal device may scroll the scroll bar to the target position by using an injectevent () method of an input management service (input manager service), and a specific implementation process may be set according to an actual application scenario, which is not limited in this embodiment of the present application.
In a third possible implementation manner, the terminal device may also scroll the scroll bar to the target position by using an Instrumentation sendPointerSync () method, and a specific implementation process may be set according to an actual application scenario, which is not limited in the embodiment of the present application.
In the embodiment of the present application, specific contents of S1601 to S1603 may refer to content adaptation descriptions of S1101 to S1103, and are not described herein again.
Based on the embodiment shown in fig. 16, exemplarily, fig. 17 is a flowchart illustrating a message processing method provided in the embodiment of the present application, where the method of the embodiment of the present application describes an interaction process between an internal structure of a terminal device and an application, and as shown in fig. 17, the method includes the following steps:
s1701: the notification manager displays the notification on the first interface.
S1702: and after receiving a first operation aiming at the first interface, the activity manager opens the virtual screen.
S1703: the activity manager sends a message to the window manager indicating a frame to retrieve a page that notifies the corresponding message in the application.
S1704: the window manager obtains a frame from an application informing a page of a message in a corresponding application.
S1705: the window manager sends a frame to the surface manager informing of the page of the message in the corresponding application.
S1706: the surface manager draws and renders frames of pages in the virtual screen that notify messages in the corresponding application.
S1707: the surface manager sends the rendered frame to the HWC.
S1708: the HWC synthesizes the rendered frames in the virtual screen.
S1709: the HWC sends information to the activity manager indicating that a page notifying messages in the corresponding application has been opened in the virtual screen.
S1710: and when judging that the page informing the corresponding message in the application comprises the scroll bar, the activity manager scrolls the scroll bar to the target position.
S1711: the activity manager sends information indicating that the message read processing in the application corresponding to the notification is completed in the virtual screen to the notification manager.
S1712: the notification manager sends information to the application indicating that the message flag in the corresponding application is to be notified that it has been read.
S1713: and the application deletes the corner mark on the application corresponding to the notification and notifies the corner mark on the message in the corresponding application.
In the embodiment of the present application, the contents of S1701-S1713 may refer to the foregoing adaptive description, and are not described herein again.
In summary, in the embodiment of the present application, the terminal device may open a page notifying a message in a corresponding application on the virtual screen through the activity manager, the window manager, the surface manager, and the HWC, and when the page notifying the message in the corresponding application includes a scroll bar, the terminal device may scroll the scroll bar to the target position by using the activity manager, so that the message in the corresponding application is notified to be in a read state, and further the terminal device may delete a corner mark notifying the corresponding application, and the operation process is simple, and meanwhile, the user is prevented from being bored due to too many corner marks on the application.
Exemplarily, fig. 18 is a flowchart illustrating a message processing method according to an embodiment of the present application, and as shown in fig. 18, the method may include the following steps:
s1801: the terminal equipment displays the first interface.
S1802: the terminal equipment receives a first operation on the first interface.
S1803: and responding to the first operation, and calling and informing a corresponding interface by the terminal equipment to open the virtual screen.
S1804: and when the time length occupied by the terminal equipment for opening the page informing the message in the corresponding application in the virtual screen exceeds the preset time length, the terminal equipment closes the virtual screen, so that the message in the corresponding application is informed to be in a read state.
In the embodiment of the application, when the duration of the terminal device opening the page notifying the corresponding message in the application in the virtual screen exceeds the preset duration, in order to avoid the terminal device executing the page opening process in the virtual screen for a long time from occupying the memory resource, the terminal device may close the virtual screen to release the memory resource of the terminal device; because the terminal device also executes the process of opening the page notifying the message in the corresponding application on the virtual screen, after the terminal device closes the virtual screen, the terminal device can notify that the message in the corresponding application is in a read state.
The preset time can be understood as the time required by the terminal device to open a page notifying a message in a corresponding application on a virtual screen when the system normally works, for example, the preset time is 10 ms; it can be understood that the specific value of the preset time may also be set according to an actual application scenario, and the embodiment of the present application is not limited.
In the embodiment of the present application, the implementation manner of closing the virtual screen by the terminal device is as follows: the terminal device may close the virtual screen through the activity. For example, the terminal device can recycle, through an activity. The resource space occupied by the page of the message in the application corresponding to the opening notification in the virtual screen is recycled, and the resource space occupied by the page of the message in the application corresponding to the opening notification in the virtual screen is also understood to be the memory resource occupied by the page of the message in the application corresponding to the releasing notification in the virtual screen.
It can be understood that a specific implementation process of the terminal device for closing the virtual screen may also be set according to an actual application scenario, and the embodiment of the present application is not limited.
In the embodiment of the present application, specific contents of S1801 to S1804 may refer to the content adaptation descriptions of S1101 to S1104, and are not described herein again.
To sum up, in the embodiment shown in fig. 18, the terminal device displays the first interface, and receives the first operation on the first interface, and in response to the first operation, the terminal device may invoke the interface corresponding to the notification to open the virtual screen, so that the terminal device may open the page of the message in the application corresponding to the notification in the virtual screen, and when the duration that the terminal device opens the page of the message in the application corresponding to the notification in the virtual screen exceeds the preset duration, the terminal device may close the virtual screen in order to avoid executing the opening procedure for a long time, because the terminal device also executes the process of opening the page of the message in the application corresponding to the notification in the virtual screen, so that the message in the application corresponding to the notification is in a read state, so that the user does not need to manually open the page of the message in the application corresponding to the notification again, the operation process is simple.
It should be noted that, in the embodiment shown in fig. 18, when the terminal device cannot implement read processing on a message in an application corresponding to a notification according to the method of the embodiment of the present application, after the terminal device opens a page of the message in the application corresponding to the notification on a virtual screen, the terminal device may scroll a scroll bar in the page to a target position, so that the message in the application corresponding to the notification is in a read state, and a specific implementation process may refer to content adaptation description shown in fig. 14 or fig. 15, which is not described herein again.
With reference to the content shown in fig. 18, exemplarily, fig. 19 is a flowchart illustrating a message processing method provided in an embodiment of the present application, where the method of the present application describes an interaction process between an internal structure of a terminal device and an application, and as shown in fig. 19, the method includes the following steps:
s1901: the notification manager displays the notification on the first interface.
S1902: and after monitoring a first operation aiming at the first interface, the activity manager opens the virtual screen.
S1903: the activity manager sends a message to the window manager indicating a frame to retrieve a page that notifies the corresponding message in the application.
S1904: the window manager obtains a frame from an application informing a page of a message in a corresponding application.
S1905: the window manager sends a frame to the surface manager informing of the page of the message in the corresponding application.
S1906: the surface manager draws and renders frames of pages in the virtual screen that notify messages in the corresponding application.
S1907: the surface manager sends the rendered frame to the HWC.
S1908: the HWC synthesizes the rendered frames in the virtual screen.
S1909: the window manager sends a duration of a frame from the application to the activity manager to retrieve a page that notifies a message in the corresponding application.
S1910: the surface manager sends to the activity manager a length of time to draw and render in the virtual screen a frame of a page notifying of a message in the corresponding application.
S1911: the HWC sends to the activity manager the length of time the rendered frame is composited in the virtual screen.
S1912: and the activity manager judges that the time length occupied by opening the page of the message in the application corresponding to the notification in the virtual screen exceeds the preset time length, and closes the virtual screen.
In the embodiment of the present application, with reference to S1909-S1911, a duration occupied by opening a page notifying a message in a corresponding application in a virtual screen may be understood as a sum of a duration of acquiring a frame notifying a page notifying a message in a corresponding application from an application, a duration of drawing and rendering a frame notifying a page notifying a message in a corresponding application in the virtual screen, and a duration of synthesizing a rendered frame in the virtual screen.
S1913: the activity manager sends information indicating that the message read processing in the application corresponding to the notification is completed in the virtual screen to the notification manager.
S1914: the notification manager sends information to the application indicating that the message flag in the corresponding application is to be notified that it has been read.
S1915: and the application deletes the corner mark on the application corresponding to the notification and notifies the corner mark on the message in the corresponding application.
In the embodiment of the present application, the contents of S1901-S1915 may refer to the foregoing adaptive description, and are not described herein again.
In summary, in the embodiment of the present application, the terminal device may open a page notifying a message in a corresponding application on the virtual screen through the activity manager, the window manager, the surface manager, and the HWC, and the terminal device may close the virtual screen and may also cause the message in the corresponding application to be notified to be in a read state when it is determined by using the activity manager that a duration of the page opening the message in the application notifying the corresponding application in the virtual screen exceeds a preset duration, so that the terminal device may delete the corner mark notifying the corresponding application, and the operation process is simple, and meanwhile, the user is prevented from being bored due to excessive corner marks on the application.
It should be noted that, in the contents described with reference to fig. 8 to fig. 19, it can be known that the terminal device implements the read processing of the message in the application corresponding to the notification by simulating the process of opening the page notifying the message in the corresponding application by the user in the virtual screen, but if the user opens and is browsing the page notifying the message in the corresponding application, that is, if the page notifying the message in the corresponding application is running in the foreground of the terminal device, the process of opening the page notifying the message in the corresponding application by the terminal device in the virtual screen may conflict with the page notifying the message in the application corresponding to the user that is currently opened, and therefore, the method of the embodiment of the present application is suitable for the case that the user does not open the page notifying the message in the corresponding application.
It should be noted that, when the user sets the terminal device to be in the do-not-disturb mode or the office mode, if the terminal device receives the notification from the application, the terminal device does not need to remind the user of a new notification in a ring and/or vibration manner, and the terminal device can automatically perform read processing on the message in the application corresponding to the notification.
The application may refer to all applications installed on the terminal device, or the application may also refer to a preset application, for example, the preset application is an entertainment application, and the specific content of the preset application may be set according to an actual application scenario, which is not limited in the embodiment of the present application.
It should be noted that, the user may also set a time period, and when the terminal device receives the notification in the time period, the terminal device may automatically perform read processing on the message in the application corresponding to the notification; for example, the time period may refer to any time period from 6 am to 6 pm, and the specific content of the time period may also be set according to an actual application scenario, and the embodiment of the present application is not limited.
It can be understood that, in response to the first operation, the terminal device invokes the interface corresponding to the notification to open the virtual screen, and opens the page notifying the message in the corresponding application in the virtual screen, so that when the message in the corresponding application is notified to be in the read state, the terminal device can summarize the message content in the application that is in the read state based on the virtual screen under the folder, and thus, the user can conveniently find the message content subsequently.
Exemplarily, fig. 20 is an interface schematic diagram for viewing message content provided in an embodiment of the present application, where the message content refers to a message content in a read state implemented based on a virtual screen, as shown in fig. 20, when a terminal device receives a WeChat notification of a WeChat application, the terminal device may remind a user of a new notification in a manner of ring and/or vibration, and in a case that a screen of the terminal device is locked, the user may unlock the locked screen and slide from top to bottom from the unlocked screen, so that the terminal device may enter the interface shown in a in fig. 20; or, in a case that the screen of the terminal device is not locked, the user may slide from top to bottom from the currently displayed screen, and the terminal device may also enter the interface shown as a in fig. 20; the interface may be understood as a drop-down notification bar.
In the interface shown in a in fig. 20, the interface includes a message notification box corresponding to the WeChat notification, and the user can see the message of the test 1 sent by the robot 1 and the message of the test 2 sent by the robot 2 through the message notification box, and when the user triggers the intelligent one-click marked read control 1501 by clicking or touching, the terminal device may enter the interface shown in b in fig. 20.
No notification is displayed on the interface shown in b in fig. 20, and when the user slides from bottom to top on the interface shown in b in fig. 20, the terminal device may enter the interface shown in c in fig. 20, which includes file management, e-mail, sports health, smart life, camera, address book, telephone, information, and WeChat 1502, and the like, based on a user-triggered slide-from-bottom-to-top operation by the terminal device.
When the user triggers the WeChat 1502 by clicking or touching, the terminal device may enter an interface shown as d in fig. 20 based on an operation of opening the WeChat 1502 triggered by the user, where the interface shown as d in fig. 20 may be understood as a second interface, the second interface is an interface corresponding to the first application, and the first application is a WeChat application, and therefore, the interface shown as d in fig. 20 may be understood as an interface corresponding to the WeChat application.
The interface shown in d in fig. 20 includes a popup, and the content of the popup is a notification of whether to view the mark read, or it can be understood that the content of the popup is whether to view the message content that realizes the read state based on the virtual screen, and the options in the popup are yes control 1503 and no control 1504; here, the control 1503 can be understood as a third control.
In one possible case, when the user click is control 1503, the terminal device receives an operation of the user click is control 1503, or it may be understood that the terminal device receives a second operation for control 1503, and the second operation is a click or touch operation of control 1503, so that the terminal device may open a first folder in response to the second operation, the first folder including message content in the wechat application that realizes a read state based on the virtual screen.
Wherein the terminal device opens the first folder in response to the second operation, it may be understood that the terminal device receives the operation of the user click yes control 1503, the terminal device may enter an interface as shown in e in fig. 20, and since the tag name of the interface is the first folder, it may be understood that the terminal device opens the first folder.
In the interface shown in e in fig. 20, the interface displays message contents of the virtual screen based read state at different dates, for example, the interface displays message contents of the virtual screen based read state at 4/8 days, the message contents include message contents 1505 of the robot 1 or message contents of the robot 2, so that the user can see message contents sent by other contacts in the interface, for example, when the user triggers the message contents 1505 of the robot 1 through clicking or touching, etc., the terminal device receives the operation of opening the message contents 1505 of the robot 1, the terminal device can enter the interface shown in f in fig. 20, and in the interface shown in f in fig. 20, the robot 1 sends a WeChat message of test 1 at 20 point 58.
It should be noted that, since the terminal device simulates a process of opening a message in an application corresponding to a notification by a user on a background virtual screen, after the user triggers the WeChat 1502 through operations such as clicking or touching, an interface entered by the terminal device is a page opened by simulation.
Further, it can be understood that, when there are multiple received notifications, after the user triggers the WeChat 1502 through operations such as clicking or touching, an interface entered by the terminal device is a page simulating a message in an application corresponding to the last notification that is opened; therefore, according to the interface shown by d in fig. 20, the terminal device simulates the opened page of the message corresponding to the robot 2 at the end of the virtual screen.
Therefore, based on the content described in fig. 20, the user can enter the interface containing the plurality of marked read message contents from the chat interface of a certain contact, so that the user can view the message contents that the user wants to know on the interface, and the user does not need to click the contact one by one in the wechat application, thereby saving the time for the user to view the marked read message contents and improving the efficiency for the user to view the marked read message contents.
It should be noted that, the message content in the wechat application that is based on the virtual screen and realizes the read state is stored in the first folder, and when the message content in the other application that is based on the virtual screen and realizes the read state is also stored in other folders, the first folder and the other folders may be uniformly placed in the terminal device, and the specific positions of the first folder and the other folders in the terminal device may be set according to the actual application scenario, which is not limited in the embodiment of the present application.
In another possible case, when the terminal device receives an operation of clicking the no control 1504 by the user, the terminal device does not perform interface skipping, that is, the terminal device displays an interface as shown by d in fig. 20.
In fig. 20, the process of the terminal device performing read processing on the message in the application corresponding to the WeChat notification may refer to the content adaptation description of the interfaces shown in fig. 8 to 19, which is not described herein again.
It should be noted that, with reference to the interface schematic diagram shown above, when an interface displayed by the terminal device changes from one interface to another interface, the process of changing between the interfaces may be understood that the terminal device successfully triggers a deep link (deep link), for example, when the terminal device needs to enter an interface shown by b in fig. 1 from an interface shown by a in fig. 1, the terminal device may enter an interface shown by b in fig. 1 because the terminal device successfully triggers a deep link between the interface shown by a in fig. 1 and the interface shown by b in fig. 1.
It should be noted that, the application in the interface shown above is described by taking a WeChat application or a QQ application as an example, the method of the embodiment of the present application may be applied to any application, and whether the application provides a marked read control or not, according to the method described in the present application, a message in the corresponding application may be notified that the message is in a read state.
The message processing method according to the embodiment of the present application has been described above, and the following describes an apparatus for performing the message processing method according to the embodiment of the present application. Those skilled in the art will understand that the method and the apparatus can be combined and referred to each other, and the message processing apparatus provided in the embodiments of the present application can perform the steps in the above message method.
Exemplarily, fig. 21 is a schematic structural diagram of a message processing apparatus provided in an embodiment of the present application, and as shown in fig. 21, the apparatus 210 may be a terminal device, and may also be a chip or a chip system applied to the terminal device; the apparatus 210 comprises: a display unit 2101 for supporting a step in which a message processing apparatus performs display, and a processing unit 2102 for supporting a step in which a message processing apparatus performs information processing.
Illustratively, a display unit 2101 for displaying a first interface; the first interface is a drop-down notification bar and comprises notifications; a processing unit 2102 for receiving a first operation at a first interface; the processing unit 2102 is further configured to invoke a notification corresponding to the interface to open the virtual screen in response to the first operation; the processing unit 2102 is further configured to open a page for notifying a message in the corresponding application in the virtual screen, so that the message in the corresponding application is notified to be in a read state.
In one possible implementation, the processing unit 2102 is specifically configured to: and when the page informing the corresponding message in the application comprises the scroll bar, scrolling the scroll bar to the target position.
In one possible implementation, the processing unit 2102 is specifically configured to: and when the time length occupied by the terminal equipment for opening the page notifying the message in the corresponding application in the virtual screen exceeds the preset time length, closing the virtual screen.
In a possible implementation manner, the number of the notifications is one or more, in the first interface, a first control for marking a read state of any notification is further displayed near any notification, and the processing unit 2102 is specifically configured to: receiving operation of a first control corresponding to the target notification on a first interface; the processing unit 2102 is further specifically configured to: and opening a page of the message in the application corresponding to the target notification in the virtual screen.
In a possible implementation manner, the number of the notifications is one or more, and the first interface further includes a second control for marking the one or more notifications in a read state; the processing unit 2102 is specifically configured to: receiving an operation directed to a second control at a first interface; the processing unit 2102 is further specifically configured to: and respectively opening one or more pages notifying messages in corresponding applications in the virtual screen.
In one possible implementation, the number of notifications is one or more, and the processing unit 2102 is specifically configured to: an operation to delete any one of the notifications is received at the first interface.
In a possible implementation manner, the display unit 2101 is further configured to display a second interface, where the second interface is an interface corresponding to the first application, and the second interface includes a third control; a processing unit 2102 for receiving a second operation for a third control; a processing unit 2102 further for opening the first folder in response to a second operation; the first folder comprises message contents in the first application, wherein the message contents are in a read state based on the virtual screen.
In one possible implementation, the workspace stack of the virtual screen is created in the activity manager of the terminal device.
In one possible implementation, the corresponding interface is notified to be created in an activity manager of the terminal device; and when the terminal equipment calls the interface corresponding to the notification, the terminal equipment is used for moving the activity in the foreground working area stack of the notification to the working area stack of the virtual screen.
In one possible implementation, the processing unit 2102 is specifically configured to: acquiring a frame of a page informing a message in a corresponding application by using a window manager; drawing and rendering a frame of a page notifying a message in a corresponding application by using a surface manager; and synthesizing the rendered frame by using a hardware synthesizer.
In a possible embodiment, the message processing apparatus may further include: a storage unit 2103. The display unit 2101, the processing unit 2102, and the storage unit 2103 are connected via a communication bus.
The storage unit 2103 may include one or more memories, which may be devices in one or more devices or circuits for storing programs or data.
The storage unit 2103 may be independent and connected to the processing unit 2102 provided in the message processing apparatus via a communication bus; the storage unit 2103 may also be integrated with the processing unit 2102.
The message processing apparatus may be used in a message processing device, circuit, hardware component, or chip.
Exemplarily, fig. 22 is a schematic structural diagram of a chip provided in an embodiment of the present application. Chip 220 includes one or more (including two) processors 2210 and a communication interface 2230.
In some embodiments, memory 2240 stores the following elements: an executable module or a data structure, or a subset thereof, or an expanded set thereof.
In the present embodiment, memory 2240 may include both read-only memory and random access memory, and provides instructions and data to processor 2210. A portion of memory 2240 may also include non-volatile random access memory (NVRAM).
In the embodiment of the present application, the memory 2240, the communication interface 2230, and the memory 2240 are coupled together by a bus system 2220. The bus system 2220 may include a power bus, a control bus, a status signal bus, and the like, in addition to the data bus. For ease of description, the various buses are labeled in FIG. 22 as the bus system 2220.
The methods described in the embodiments of the present application above may be applied to processor 2210, or implemented by processor 2210. Processor 2210 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above-described method may be performed by instructions in the form of hardware, integrated logic circuits, or software in processor 2210. The processor 2210 may be a general purpose processor (e.g., a microprocessor or a conventional processor), a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an FPGA (field-programmable gate array) or other programmable logic device, discrete gate, transistor logic device or discrete hardware component, and the processor 2210 may implement or execute the methods, steps and logic blocks disclosed in the embodiments of the present invention.
The steps of the method combined with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium mature in the field, such as a random access memory, a read only memory, a programmable read only memory, or a charged erasable programmable memory (EEPROM). The storage medium is located in the memory 2240, and the processor 2210 reads the information in the memory 2240, and performs the steps of the above method in conjunction with the hardware thereof.
In the above embodiments, the instructions stored by the memory for execution by the processor may be implemented in the form of a computer program product. The computer program product may be written in the memory in advance, or may be downloaded in the form of software and installed in the memory.
The computer program product includes one or more computer instructions. The procedures or functions according to the embodiments of the present application are all or partially generated when the computer program instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. Computer instructions may be stored in, or transmitted from, a computer-readable storage medium to another computer-readable storage medium, e.g., from one website, computer, server, or data center to another website, computer, server, or data center via wire (e.g., coaxial cable, fiber optics, Digital Subscriber Line (DSL), or wireless (e.g., infrared, wireless, microwave, etc.), the computer-readable storage medium may be any available medium that a computer can store or a data storage device including one or more available media integrated servers, data centers, etc., the available media may include, for example, magnetic media (e.g., floppy disks, hard disks, or magnetic tape), optical media (e.g., digital versatile disks, DVD), or a semiconductor medium (e.g., a Solid State Disk (SSD)), etc.
The embodiment of the application also provides a computer readable storage medium. The methods described in the above embodiments may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. Computer-readable media may include computer storage media and communication media, and may include any medium that can communicate a computer program from one place to another. A storage medium may be any target medium that can be accessed by a computer.
As one possible design, the computer-readable medium may include a compact disk read-only memory (CD-ROM), RAM, ROM, EEPROM, or other optical disk storage; the computer readable medium may include a disk memory or other disk storage device. Also, any connecting line may also be properly termed a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. Disk and disc, as used herein, includes Compact Disc (CD), laser disc, optical disc, Digital Versatile Disc (DVD), floppy disk and blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers.
Combinations of the above should also be included within the scope of computer-readable media. The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (23)

1. A method of message processing, the method comprising:
the terminal equipment displays a first interface; the first interface is a drop-down notification bar and comprises notifications;
the terminal equipment receives a first operation on the first interface;
responding to the first operation, and calling an interface corresponding to the notification by the terminal equipment to open a virtual screen;
and the terminal equipment opens a page of the message in the application corresponding to the notification in the virtual screen, so that the message in the application corresponding to the notification is in a read state.
2. The method according to claim 1, wherein after the terminal device opens a page of the message in the application corresponding to the notification in the virtual screen, the method further comprises:
and when the page of the message in the application corresponding to the notification comprises the scroll bar, the terminal equipment scrolls the scroll bar to a target position.
3. The method according to claim 1, wherein the terminal device opens a page of the message in the application corresponding to the notification in the virtual screen, and the page comprises:
and when the time length occupied by the terminal equipment for opening the page of the message in the application corresponding to the notification in the virtual screen exceeds the preset time length, the terminal equipment closes the virtual screen.
4. The method according to claim 2 or 3, wherein the number of the notifications is one or more, a first control for marking any one of the notifications as a read state is further displayed in the vicinity of any one of the notifications in the first interface, and the terminal device receives a first operation in the first interface, including:
the terminal equipment receives operation of the first control corresponding to the target notification on the first interface;
the terminal device opens a page of a message in an application corresponding to the notification in the virtual screen, and the page includes:
and the terminal equipment opens a page of the message in the application corresponding to the target notification in the virtual screen.
5. The method according to claim 2 or 3, wherein the number of the notifications is one or more, and the first interface further comprises a second control for marking the one or more notifications as read status; the terminal equipment receives a first operation on the first interface, and the first operation comprises the following steps:
the terminal equipment receives the operation of the second control on the first interface;
the terminal device opens a page of a message in an application corresponding to the notification in the virtual screen, and the page includes:
and the terminal equipment respectively opens pages of the messages in the application corresponding to the one or more notifications in the virtual screen.
6. The method according to claim 2 or 3, wherein the number of the notifications is one or more, and the terminal device receives a first operation at the first interface, including:
and the terminal equipment receives the operation of deleting any one of the notifications on the first interface.
7. The method of claim 2 or 3, further comprising:
the terminal equipment displays a second interface, wherein the second interface is an interface corresponding to the first application and comprises a third control;
the terminal equipment receives a second operation aiming at the third control;
responding to the second operation, and opening a first folder by the terminal equipment; wherein the first folder includes message content in the first application that implements a read status based on the virtual screen.
8. The method according to claim 7, characterized in that the workspace stack of the virtual screen is created in an activity manager of the terminal device.
9. The method of claim 8, wherein the notifying the corresponding interface is created at the activity manager of the terminal device; and when the terminal equipment calls the interface corresponding to the notification, the terminal equipment is used for moving the activity in the notification foreground working area stack to the working area stack of the virtual screen.
10. The method according to claim 9, wherein the terminal device opens a page of the message in the application corresponding to the notification in the virtual screen, and the page comprises:
the terminal equipment acquires a frame of a page of a message in an application corresponding to the notification by using the window manager;
the terminal equipment draws and renders a frame of a page of a message in the application corresponding to the notification by using the surface manager;
and the terminal equipment synthesizes the rendered frames by using the hardware synthesizer.
11. A message processing apparatus, characterized in that the apparatus comprises a display unit and a processing unit;
the display unit is used for displaying a first interface; wherein the first interface comprises a notification;
the processing unit is used for receiving a first operation on the first interface;
the processing unit is further used for responding to the first operation and calling an interface corresponding to the notification to open a virtual screen;
the processing unit is further configured to open a page of a message in the application corresponding to the notification in the virtual screen, so that the message in the application corresponding to the notification is in a read state.
12. The apparatus according to claim 11, wherein the processing unit is specifically configured to:
and when the page of the message in the application corresponding to the notification comprises the scroll bar, scrolling the scroll bar to the position corresponding to the latest message in the page.
13. The apparatus according to claim 11, wherein the processing unit is specifically configured to:
and when the duration occupied by the terminal equipment for opening the page of the message in the application corresponding to the notification in the virtual screen exceeds the preset duration, closing the virtual screen.
14. The apparatus according to claim 12 or 13, wherein the number of the notifications is one or more, a first control for marking a read status of any one of the notifications is further displayed near any one of the notifications in the first interface, and the processing unit is specifically configured to:
receiving an operation of the first control corresponding to the target notification on the first interface;
the processing unit is specifically further configured to:
and opening a page of the message in the application corresponding to the target notification in the virtual screen.
15. The apparatus according to claim 12 or 13, wherein the number of the notifications is one or more, and the first interface further comprises a second control for marking the one or more notifications as read status; the processing unit is specifically configured to:
receiving an operation directed to the second control at the first interface;
the processing unit is specifically further configured to:
and respectively opening pages of the messages in the application corresponding to the one or more notifications in the virtual screen.
16. The apparatus according to claim 12 or 13, wherein the number of notifications is one or more, and the processing unit is specifically configured to:
and receiving an operation of deleting any one of the notifications on the first interface.
17. The apparatus of claim 12 or 13,
the display unit is further configured to display a second interface, where the second interface is an interface corresponding to the first application and includes a third control;
the processing unit is further configured to receive a second operation for the third control;
the processing unit is further used for responding to the second operation and opening a first folder; wherein the first folder includes message content in the first application that implements a read status based on the virtual screen.
18. The apparatus of claim 17, wherein the workspace stack of the virtual screen is created in an activity manager of the terminal device.
19. The apparatus according to claim 18, wherein the notification corresponds to an interface created at the activity manager of the terminal device; and when the terminal equipment calls the interface corresponding to the notification, the terminal equipment is used for moving the activity in the notification foreground working area stack to the working area stack of the virtual screen.
20. The apparatus according to claim 19, wherein the processing unit is specifically configured to:
acquiring a frame of a page of a message in the application corresponding to the notification by using the window manager;
drawing and rendering a frame of a page of a message in an application corresponding to the notification by using the surface manager;
and synthesizing the rendered frame by using the hardware synthesizer.
21. A message processing apparatus comprising a processor and a memory, the memory for storing code instructions; the processor is configured to execute the code instructions to perform the method of any one of claims 1-10.
22. A computer-readable storage medium having instructions stored thereon that, when executed, cause a computer to perform the method of any of claims 1-10.
23. A computer program product, comprising a computer program which, when executed, causes a computer to perform the method of any one of claims 1-10.
CN202110853329.2A 2021-07-27 2021-07-27 Message processing method and device Active CN113821132B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110853329.2A CN113821132B (en) 2021-07-27 2021-07-27 Message processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110853329.2A CN113821132B (en) 2021-07-27 2021-07-27 Message processing method and device

Publications (2)

Publication Number Publication Date
CN113821132A true CN113821132A (en) 2021-12-21
CN113821132B CN113821132B (en) 2023-08-15

Family

ID=78924202

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110853329.2A Active CN113821132B (en) 2021-07-27 2021-07-27 Message processing method and device

Country Status (1)

Country Link
CN (1) CN113821132B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116737036A (en) * 2022-09-28 2023-09-12 荣耀终端有限公司 Processing method of notification message and electronic equipment
CN115562743B (en) * 2022-03-31 2023-10-27 荣耀终端有限公司 Application program loading method and electronic device

Citations (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015089850A1 (en) * 2013-12-20 2015-06-25 华为终端有限公司 Notification bar message management method and device
WO2015176673A1 (en) * 2014-05-22 2015-11-26 北京奇虎科技有限公司 Method and device for storing status bar notification, and management handover method and device
US20150350143A1 (en) * 2014-06-01 2015-12-03 Apple Inc. Displaying options, assigning notification, ignoring messages, and simultaneous user interface displays in a messaging application
CN105468364A (en) * 2015-11-19 2016-04-06 北京奇虎科技有限公司 Processing method for notification messages of application programs and mobile terminal
CN105739822A (en) * 2016-01-26 2016-07-06 上海斐讯数据通信技术有限公司 Message management method and system for application
CN105979076A (en) * 2016-04-27 2016-09-28 乐视控股(北京)有限公司 Pushing information processing method used for mobile phone and device thereof, and the mobile phone
US20170054670A1 (en) * 2015-08-18 2017-02-23 Naver Corporation Method, system, and recording medium for notifying reception of message
CN106681728A (en) * 2016-12-30 2017-05-17 珠海市魅族科技有限公司 Message notification handling method and terminal
CN107943376A (en) * 2017-10-31 2018-04-20 浙江慧脑信息科技有限公司 A kind of message object list display method
CN108388386A (en) * 2018-01-11 2018-08-10 深圳市金立通信设备有限公司 A kind of information processing method, terminal device and computer readable storage medium
CN108509283A (en) * 2018-03-07 2018-09-07 深圳市万普拉斯科技有限公司 Message treatment method, device, computer equipment and storage medium
CN109407949A (en) * 2018-10-17 2019-03-01 维沃移动通信有限公司 A kind of display control method and terminal
CN109766036A (en) * 2018-12-24 2019-05-17 华为终端有限公司 Message treatment method and electronic equipment
CN109844706A (en) * 2017-09-30 2019-06-04 华为技术有限公司 A kind of processing method and processing device of message
CN110351423A (en) * 2019-05-27 2019-10-18 努比亚技术有限公司 A kind of unread message process control method, terminal and computer readable storage medium
CN110351422A (en) * 2019-05-27 2019-10-18 华为技术有限公司 A kind of method for previewing and electronic equipment of notification message
CN110688042A (en) * 2019-09-29 2020-01-14 百度在线网络技术(北京)有限公司 Interface display method and device
CN111262996A (en) * 2020-01-13 2020-06-09 Oppo广东移动通信有限公司 Notification bar message processing method and device, electronic device and storage medium
WO2020156113A1 (en) * 2019-01-30 2020-08-06 维沃移动通信有限公司 Interface display control method and mobile terminal
JP2020181344A (en) * 2019-04-24 2020-11-05 富士通株式会社 Watching system, notification device and notification method
CN111913750A (en) * 2019-05-10 2020-11-10 华为技术有限公司 Application program management method, device and equipment
US20200409534A1 (en) * 2019-06-27 2020-12-31 Beijing Xiaomi Mobile Software Co., Ltd. Method and device for displaying a prompting message, mobile terminal and storage medium

Patent Citations (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015089850A1 (en) * 2013-12-20 2015-06-25 华为终端有限公司 Notification bar message management method and device
WO2015176673A1 (en) * 2014-05-22 2015-11-26 北京奇虎科技有限公司 Method and device for storing status bar notification, and management handover method and device
US20150350143A1 (en) * 2014-06-01 2015-12-03 Apple Inc. Displaying options, assigning notification, ignoring messages, and simultaneous user interface displays in a messaging application
US20170054670A1 (en) * 2015-08-18 2017-02-23 Naver Corporation Method, system, and recording medium for notifying reception of message
CN105468364A (en) * 2015-11-19 2016-04-06 北京奇虎科技有限公司 Processing method for notification messages of application programs and mobile terminal
CN105739822A (en) * 2016-01-26 2016-07-06 上海斐讯数据通信技术有限公司 Message management method and system for application
CN105979076A (en) * 2016-04-27 2016-09-28 乐视控股(北京)有限公司 Pushing information processing method used for mobile phone and device thereof, and the mobile phone
CN106681728A (en) * 2016-12-30 2017-05-17 珠海市魅族科技有限公司 Message notification handling method and terminal
US20200259946A1 (en) * 2017-09-30 2020-08-13 Huawei Technologies Co., Ltd. Message Processing Method and Apparatus
CN109844706A (en) * 2017-09-30 2019-06-04 华为技术有限公司 A kind of processing method and processing device of message
CN107943376A (en) * 2017-10-31 2018-04-20 浙江慧脑信息科技有限公司 A kind of message object list display method
CN108388386A (en) * 2018-01-11 2018-08-10 深圳市金立通信设备有限公司 A kind of information processing method, terminal device and computer readable storage medium
CN108509283A (en) * 2018-03-07 2018-09-07 深圳市万普拉斯科技有限公司 Message treatment method, device, computer equipment and storage medium
CN109407949A (en) * 2018-10-17 2019-03-01 维沃移动通信有限公司 A kind of display control method and terminal
CN109766036A (en) * 2018-12-24 2019-05-17 华为终端有限公司 Message treatment method and electronic equipment
WO2020156113A1 (en) * 2019-01-30 2020-08-06 维沃移动通信有限公司 Interface display control method and mobile terminal
JP2020181344A (en) * 2019-04-24 2020-11-05 富士通株式会社 Watching system, notification device and notification method
CN111913750A (en) * 2019-05-10 2020-11-10 华为技术有限公司 Application program management method, device and equipment
CN110351422A (en) * 2019-05-27 2019-10-18 华为技术有限公司 A kind of method for previewing and electronic equipment of notification message
CN110351423A (en) * 2019-05-27 2019-10-18 努比亚技术有限公司 A kind of unread message process control method, terminal and computer readable storage medium
WO2020238774A1 (en) * 2019-05-27 2020-12-03 华为技术有限公司 Notification message preview method and electronic device
US20200409534A1 (en) * 2019-06-27 2020-12-31 Beijing Xiaomi Mobile Software Co., Ltd. Method and device for displaying a prompting message, mobile terminal and storage medium
CN110688042A (en) * 2019-09-29 2020-01-14 百度在线网络技术(北京)有限公司 Interface display method and device
CN111262996A (en) * 2020-01-13 2020-06-09 Oppo广东移动通信有限公司 Notification bar message processing method and device, electronic device and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115562743B (en) * 2022-03-31 2023-10-27 荣耀终端有限公司 Application program loading method and electronic device
CN116737036A (en) * 2022-09-28 2023-09-12 荣耀终端有限公司 Processing method of notification message and electronic equipment
CN116737036B (en) * 2022-09-28 2024-04-09 荣耀终端有限公司 Processing method of notification message and electronic equipment

Also Published As

Publication number Publication date
CN113821132B (en) 2023-08-15

Similar Documents

Publication Publication Date Title
KR101457632B1 (en) Mobile electronic device having program notification function and program notification method thereof
US20140310654A1 (en) Method and system for interworking plurality of applications
CN113821132B (en) Message processing method and device
CN113805747A (en) Information reminding method, electronic equipment and computer readable storage medium
EP2863325B1 (en) Method and systems for providing media content collected by sensors of a device
US20230110015A1 (en) Application Information Display Method and Related Device
US20230281378A1 (en) Markdown data content with action binding
WO2020259650A1 (en) Request response method and electronic device
CN113709026A (en) Method, device, storage medium and program product for processing instant communication message
CN114461053B (en) Resource scheduling method and related device
CN114201103A (en) Data input method and terminal equipment
CN115061758B (en) Application display method, terminal, electronic device and storage medium
WO2023165225A9 (en) Suspended ball processing method in multi-tasking scenario, and electronic device
CN115567666B (en) Screen recording method, electronic device and readable storage medium
US20240220077A1 (en) Floating ball processing method in multitasking scenario and electronic device
CN116089368B (en) File searching method and related device
CN116088955B (en) Process processing method and terminal equipment
CN116708900B (en) Video playing method and electronic equipment
WO2022105755A1 (en) Font library synchronization method and apparatus, and storage medium
CN116069219B (en) Method for acquiring schedule information and electronic equipment
CN117997865A (en) Notification message display method and related device
CN113805949A (en) Picture display method and device
CN115146257A (en) Terminal device, function screening method and storage medium
CN114328401A (en) File scanning method and terminal equipment
CN115529576A (en) Collision connection method and device

Legal Events

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