Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic flow chart of a message management method according to an embodiment of the present invention. The message management method described in this embodiment is applied to a terminal device, where the terminal device includes at least one application program, and the method includes the following steps:
s101: at least one application program for which an unprocessed message currently exists is acquired.
Specifically, the terminal device may establish a monitoring thread, monitor whether each application installed in the terminal device has an unprocessed message in real time by using the monitoring thread, and determine at least one application currently having the unprocessed message according to a monitoring result.
In one embodiment, the terminal device receives a touch operation for a target message corner mark displayed in the display interface, wherein the target message corner mark is a message corner mark carried by an application icon of any application where unprocessed messages currently exist. Further, the terminal device may detect an impact point position of the touch operation according to the action position of the touch operation, and obtain a distance between the impact point and the target message corner mark. And if the distance is smaller than or equal to the preset distance threshold, executing the step of acquiring at least one application program with the unprocessed message.
The preset distance threshold is preset according to experimental measurement and calculation data, and can be adjusted subsequently according to actual requirements. The touch operation for the target message corner mark displayed in the display interface may be a click operation for the target message corner mark, a long-press operation for the target message corner mark, or the like, and may be subsequently adjusted according to actual requirements, which is not specifically limited herein.
Exemplarily, the preset distance threshold is 0.3cm, the touch operation on the target message corner mark displayed in the display interface is a long-press operation on the target message corner mark, as shown in fig. 2a, a schematic diagram of a display interface of a terminal device is shown, where 20 areas are application icon display areas, and bothapplication 1 and application 3 in 20 areas are provided with message corner marks, and the message corner marks represent the number of unprocessed messages of the corresponding application. The message corner mark carried by the application icon of theapplication program 1 is determined as a target message corner mark, the terminal device receives a touch operation for the target message corner mark, as shown in fig. 2b, the operation diagram of the touch operation is shown, and thearea 21 is an action position where a finger contacts with the terminal device when the user performs the touch operation. The terminal device may detect that the location of the impact point of the touch operation is 22 according to the action position of the touch operation, further obtain that the distance between the location of theimpact point 22 and the message angle mark carried by the icon of theapplication program 1 is 0.2cm, and execute the step of obtaining at least one application program in which the unprocessed message currently exists.
S102: and outputting a message management window on a display interface, and displaying an application icon of the at least one application program in the message management window, wherein the application icon carries a message corner mark.
The method for outputting the message management window on the display interface may be displaying the message management window on a full-screen interface, or displaying the message management window on the display interface in a pop-up window manner, and the method for outputting the message management window on the interface is not specifically limited herein.
Exemplarily, after the terminal device receives the touch operation that the user starts the message management window, the terminal device outputs the message management window on the display interface as shown in fig. 3a, and themodule 30 is an application icon display module carrying a message corner mark and displaying an application icon with an unprocessed message corner mark.
S103: and receiving a touch operation instruction input in the message management window by a user.
In one embodiment, a user may receive a touch operation instruction input by the user in the message management window in a manner of inputting the touch operation instruction in a preset designated area of the message management window, so as to avoid a misoperation of the user. The size of the area range of the preset designated area, the position of the preset designated area in the message management window, and the like can be set according to a specific implementation scenario, which is not specifically limited. The touch operation instruction is used for triggering the terminal device to execute processing of a message corner mark carried by an application icon of an application program, and the form of touch operation may be set subsequently according to a specific embodiment, which is not specifically limited herein.
Exemplarily, an operation diagram of the terminal device receiving a touch operation instruction input by a user through the message management window is shown in fig. 3b, and thearea 31 is a preset designated area of the message management window for inputting the touch operation instruction.
S104: and responding to the touch operation instruction, and processing the message corner mark carried by the application icon of at least one application program.
Specifically, the processing on the message corner mark may include: the message corner mark is eliminated and the number contained in the message corner mark is adjusted, which indicates the number of unprocessed messages present in the application.
In one embodiment, when the touch operation instruction is a first instruction, for this case, the terminal device determines the target application program from the at least one application program in response to the first instruction. Further, the terminal device changes the state of part of unprocessed messages of the target application program, updates the message corner mark carried by the application icon of the target application program, changes the state of all unprocessed messages of the non-target application programs except the target application program in the at least one application program, and clears the message corner mark carried by the application icon of the non-target application program.
The first instruction can be preset for a developer by double clicking a preset designated area in the message management window by one finger, and can be subsequently adjusted according to actual conditions.
In one embodiment, the terminal device determines the unprocessed message set of the target application program and acquires the category and the preset label of the target application program. Further, the terminal device may match each unprocessed message included in the set of unprocessed messages according to the category and/or the tag of the target application, and change the state of the unprocessed message that does not match the category and/or the tag of the target application from unprocessed to processed.
The preset tag is added and set by the user according to the specific use range of the target application program, for example, the type of theapplication program 1 is an audio-video application program, the user a usually uses theapplication program 1 to share audio-video consultation and friend mutual communication messages, and then the user can add a social communication tag to theapplication program 1. The category of each application program can be any one of office, social communication, financial transaction, video, entertainment, life service, photo and beauty pictures and news information.
In one embodiment, when the target application includes the application category and the tag set by the user for the target application, the priority of the tag may be higher than the category of the application, that is, when the terminal device detects that the category of the application is inconsistent with the tag, the terminal device may match each unprocessed message included in the set of unprocessed messages according to the tag, and change the state of the unprocessed message that is not matched with the tag of the target application from unprocessed to processed.
Illustratively, as shown in fig. 3b, the first instruction is that the user double-clicks with one finger in themessage management window 31 area, theapplication 1 is an audio-visual application, theapplication 2 is an audio-visual application, the application 3 is a financial transaction application, and theapplication 4 is a social communication application. The user typically uses the application to share audiovisual advisories and friend interactive messaging messages, so theuser tags application 2 with a social messaging application. After the user double-clicks in thearea 31 with one finger, the terminal device obtains the unprocessed message set for determining theapplication programs 1, 2, 3 and 4, and obtains the categories and preset labels of theapplication programs 1, 2, 3 and 4. The terminal device matches each unprocessed message in the unprocessed message set of the application program according to the application program category and the label, and obtains that 1 unprocessed message content in the unprocessed message set of theapplication program 1 is related to the video message, and in addition, 2 advertisement push messages and 1 system update prompt message are in the unprocessed message set of theapplication program 1. The unprocessed message set of theapplication program 2 has 1 piece of unprocessed message content related to the video and audio type messages, and in addition, the unprocessed message set of theapplication program 2 has 2 pieces of communication type messages and 1 piece of system updating prompt messages. There are 2 system push advertisement messages in the unprocessed message set of theapplication program 3, 2 unprocessed messages in theapplication program 4 are related to the social communication type messages, and besides, there are 1 news push consultation message in the unprocessed message set of theapplication program 4. Further, the terminal device changes the status of 2 advertisement push messages and 1 system update prompting message in the unprocessed message set of theapplication program 1 from unprocessed to processed, changes the status of 1 audio-video class message and 1 system update prompting message in the unprocessed message set of theapplication program 2 from unprocessed to processed, changes the status of 2 system push advertisement messages in the unprocessed message set of the application program 3 from unprocessed to processed, changes the status of 1 news push consultation message in the unprocessed message set of theapplication program 4 from unprocessed to processed, and the message corner mark of theapplication program 1 is changed to 1, the message corner mark of theapplication program 2 is changed to 2, the message corner mark of the application program 3 is removed, the message corner mark of theapplication program 4 is changed to 2, and the display effect of the message management window is shown in fig. 3 c.
In an embodiment, when the touch operation instruction is a second instruction, for this case, the terminal device responds to the second instruction, changes the state of all unprocessed messages of each application program in at least one application program from unprocessed to processed, and clears the message corner marks carried by the application icons of each application program.
The second instruction can be preset in a designated area in a message management window by a user through double-clicking by two or more fingers, and the second instruction is preset by a developer and can be subsequently adjusted according to actual conditions.
Illustratively, as shown in fig. 3d, the second instruction is that the user double-clicks with two fingers in the area of themessage management window 31, and the terminal device responds to the second instruction to change the state of all unprocessed messages of theapplication 1, theapplication 2, the application 3, and theapplication 4 from unprocessed to processed, and to clear the message corner marks carried by the application icons of theapplication 1, theapplication 2, the application 3, and theapplication 4, as shown in fig. 3 e.
In the embodiment of the invention, the terminal equipment acquires at least one application program with unprocessed information, and outputs an information management window on the display interface, wherein an application icon of the at least one application program is displayed in the information management window, and the application icon carries an information corner mark. Further, the terminal device receives a touch operation instruction input by the user in the message management window, and responds to the touch operation instruction to process the message corner mark carried by the application icon of at least one application program. By adopting the message management mode, the operation steps of managing the message corner mark of the application program can be simplified, and the management efficiency of the unprocessed message is effectively improved.
Please refer to fig. 4, which is a flowchart illustrating a message management method according to an embodiment of the present invention. The message management method described in this embodiment is applied to a terminal device, where the terminal device includes at least one application program, and the method includes the following steps:
s401: at least one application program for which an unprocessed message currently exists is acquired.
S402: and outputting a message management window on a display interface, and displaying an application icon of the at least one application program in the message management window, wherein the application icon carries a message corner mark.
S403: and receiving a touch operation instruction input in the message management window by a user.
For specific implementation of steps S401 to S403, reference may be made to the related descriptions of steps S101 to S103 in the foregoing embodiment, and details are not described here again.
S404: and responding to the touch operation instruction, and determining a target application program from at least one application program.
The touch operation instruction is specifically a first instruction, the first instruction may be a preset designated area in a message management window, which is double-clicked by a finger of a user, the first instruction is preset by a developer, and the first instruction may be subsequently adjusted according to an actual situation.
In one embodiment, the terminal device may obtain a usage frequency of each application program in the at least one application program, and determine a target application program, of which the usage frequency is greater than a preset frequency threshold, from the at least one application program. By adopting the mode, the management of the message corner mark of each application program is more in line with the operation habit of the user to each application program.
The preset frequency threshold is preset according to experimental measurement and calculation data, and can be adjusted subsequently according to actual requirements.
Illustratively, the usage frequency of the application is obtained by the ratio of the current usage time of the target application of the current day to the total time of the terminal device screen in the activated state (screen is on), and the preset frequency threshold is 0.3. For this situation, the terminal device is installed with theapplication 1, theapplication 2, and the application 3, and it is determined that theapplication 2 and the application 3 are the target application if the frequency of use of theapplication 1 is detected to be 0.1, the frequency of use of theapplication 2 is detected to be 0.4, and the frequency of use of the application 3 is detected to be 0.5.
In one embodiment, the terminal device may acquire a preset application program list for retaining unprocessed messages, and determine at least one application program and an application program included in the application program list as a target application program.
The preset application program list for retaining the unprocessed message can be added and removed by the user according to the use habit of the user on each application program.
Illustratively, the terminal device is provided with anapplication 1, anapplication 2, an application 3, anapplication 4 and an application 5, and the user adds the application 3, theapplication 4 and the application 5 to a preset application list for retaining unprocessed messages according to the use habit of the user on each application. For this case, the terminal device determines the application 3, theapplication 4, and the application 5 as the target application.
In one embodiment, the terminal device may obtain the unprocessed message sets of the respective applications, and obtain the categories and preset labels of the respective applications. Further, the terminal device may determine, as the target application, an application having an unprocessed message in the unprocessed message set of the application, which matches the category and/or the tag of the application.
The preset label is added and set for the user according to the specific use range of the target application program. The specific steps of determining that the unprocessed message set of the application program has a match with the category and/or the tag of the application program may be referred to in the foregoing description of step S104 in the embodiment.
S405: and changing the state of part of unprocessed messages of the target application program, and updating the message corner mark carried by the application icon of the target application program.
S406: and changing the state of all unprocessed messages of the non-target application programs except the target application program in the at least one application program, and clearing the message corner marks carried by the application icons of the non-target application programs.
For specific implementation of steps S405 to S406, reference may be made to the related description of the above embodiment S104, and details are not described here again.
In one embodiment, when the user enters the message management window for the first time, the terminal device presents an operation guide of the message management window as shown in fig. 3b, fig. 3c, fig. 3d and fig. 3e to the user, so that the user has an intuitive understanding of the function and operation instruction of the message management window, and the user can operate and use the message management window conveniently.
In the embodiment of the invention, the terminal equipment acquires at least one application program with unprocessed information, outputs an information management window on a display interface, and displays an application icon of the at least one application program in the information management window, wherein the application icon carries an information corner mark. When a touch operation instruction input by a user in the message management window is received, the terminal equipment responds to the touch operation instruction and determines a target application program from at least one application program. Further, the terminal device changes the state of part of unprocessed messages of the target application program, updates the message corner mark carried by the application icon of the target application program, changes the state of all unprocessed messages of the non-target application programs except the target application program in the at least one application program, and removes the message corner mark carried by the application icon of the non-target application program. By adopting the message management mode, the operation steps of managing the message corner mark of the application program can be simplified, the management efficiency of the unprocessed message is effectively improved, and the operation habit of the user to each application program is also met.
Please refer to fig. 5, which is a schematic structural diagram of a message management apparatus according to an embodiment of the present invention. The device comprises:
an obtainingmodule 50, configured to obtain at least one application program in which an unprocessed message currently exists;
anoutput module 51, configured to output a message management window on a display interface, and display an application icon of the at least one application program in the message management window, where the application icon carries a message corner mark;
the obtainingmodule 50 is further configured to receive a touch operation instruction input by a user in the message management window;
and theprocessing module 52 is configured to respond to the touch operation instruction, and process the message corner mark carried by the application icon of the at least one application program.
In one embodiment, the touch operation instruction is a first instruction, and theprocessing module 52 is further configured to determine a target application program from the at least one application program in response to the first instruction; changing the state of part of unprocessed messages of the target application program, and updating message corner marks carried by application icons of the target application program; and changing the state of all unprocessed messages of the non-target application programs except the target application program in the at least one application program, and clearing the message corner marks carried by the application icons of the non-target application programs.
In one embodiment, the obtainingmodule 50 is further configured to determine an unprocessed message set of the target application program, and obtain a category and a preset tag of the target application program; theprocessing module 52 is further configured to match each unprocessed message included in the set of unprocessed messages according to the category and/or the tag of the target application program; changing the status of the unprocessed message that does not match the class and/or tag of the target application from unprocessed to processed.
In one embodiment, the obtainingmodule 50 is further configured to obtain a usage frequency of each application program in the at least one application program; theprocessing module 52 is further configured to determine a target application program with a usage frequency greater than a preset frequency threshold from the at least one application program.
In an embodiment, the obtainingmodule 50 is further configured to obtain the preset list of applications that retain unprocessed messages; theprocessing module 52 is further configured to determine an application included in the at least one application and the application list as a target application.
In an embodiment, the touch operation instruction is a second instruction, and theprocessing module 52 is further configured to change, in response to the second instruction, the states of all unprocessed messages of each application program in the at least one application program from unprocessed to processed, and clear the message corner marks carried by the application icons of each application program.
In one embodiment, the obtainingmodule 50 is further configured to receive a touch operation for a target message corner mark shown in the display interface, where the target message corner mark is a message corner mark carried by an application icon of any application program where an unprocessed message currently exists; theprocessing module 52 is further configured to detect an impact point position of the touch operation according to the action position of the touch operation, and obtain a distance between the impact point position and the target message corner mark; and if the distance is smaller than or equal to a preset distance threshold, executing the step of acquiring at least one application program with the current unprocessed message.
It can be understood that the functions of the functional modules of the message management apparatus described in the embodiment of the present invention may be specifically implemented according to the method in the method embodiment described in fig. 1 or fig. 4, and a specific implementation process thereof may refer to the description related to the method embodiment of fig. 1 or fig. 4, which is not described herein again.
In this embodiment of the present invention, the obtainingmodule 50 obtains at least one application program in which an unprocessed message currently exists, and theoutput module 51 outputs a message management window on the display interface, and displays an application icon of the at least one application program in the message management window, where the application icon carries a message corner mark. The obtainingmodule 50 receives a touch operation instruction input by the user in the message management window, and further, the processing module responds to the touch operation instruction received by the obtainingmodule 50 to process the message corner mark carried by the application icon of the at least one application program. By adopting the message management mode, the operation steps of managing the message corner mark of the application program can be simplified, and the management efficiency of the unprocessed message is effectively improved.
Fig. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present invention. The terminal device described in this embodiment includes: aprocessor 601, amemory 602, aninput device 603, and anoutput device 604. Theprocessor 601 and thememory 602 are connected by a bus.
TheProcessor 601 may be a Central Processing Unit (CPU), and may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field-Programmable Gate arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Thememory 602 may include both read-only memory and random access memory, and provides program instructions and data to theprocessor 601. Aninput device 603 and anoutput device 604 are controlled by the processor for transceiving messages. A portion of thememory 602 may also include non-volatile random access memory. Wherein, theprocessor 601, when calling the program instruction, is configured to perform:
acquiring at least one application program with unprocessed information;
outputting a message management window on a display interface through theoutput device 604, and displaying an application icon of the at least one application program in the message management window, wherein the application icon carries a message corner mark;
receiving a touch operation instruction input in the message management window by a user through theinput device 603;
and responding to the touch operation instruction, and processing the message corner mark carried by the application icon of the at least one application program.
In an implementation manner, the touch operation instruction is a first instruction, and theprocessor 601 is specifically configured to:
determining a target application program from the at least one application program in response to the first instruction; changing the state of part of unprocessed messages of the target application program, and updating message corner marks carried by application icons of the target application program; and changing the state of all unprocessed messages of the non-target application programs except the target application program in the at least one application program, and clearing the message corner marks carried by the application icons of the non-target application programs.
In one implementation, theprocessor 601 is specifically configured to:
determining an unprocessed message set of the target application program, and acquiring the category and preset labels of the target application program; matching each unprocessed message included in the unprocessed message set according to the category and/or the label of the target application program; changing the status of the unprocessed message that does not match the class and/or tag of the target application from unprocessed to processed.
In one implementation, theprocessor 601 is specifically configured to:
acquiring the use frequency of each application program in the at least one application program; and determining a target application program with the use frequency larger than a preset frequency threshold value from the at least one application program.
In one implementation, theprocessor 601 is specifically configured to:
acquiring the preset application program list for reserving unprocessed information; and determining the application program included in the at least one application program and the application program list as the target application program.
In an implementation manner, the touch operation instruction is a second instruction, and theprocessor 601 is specifically configured to:
and responding to the second instruction, changing the state of all unprocessed messages of each application program in the at least one application program from unprocessed to processed, and clearing the message corner marks carried by the application icons of each application program.
In one implementation, theprocessor 601 is further specifically configured to:
calling theinput device 603 to receive touch operation aiming at a target message corner mark displayed in the display interface, wherein the target message corner mark is a message corner mark carried by an application icon of any application program with unprocessed messages; detecting the position of an acting point of the touch operation according to the acting position of the touch operation, and acquiring the distance between the position of the acting point and the target message corner mark; and if the distance is smaller than or equal to a preset distance threshold, executing the step of acquiring at least one application program with the current unprocessed message.
In a specific implementation, theprocessor 601, thememory 602, theinput device 603, and theoutput device 604 described in this embodiment of the present invention may execute the implementation described in the message management method provided in fig. 1 or fig. 4 in the embodiment of the present invention, or may execute the implementation of the message management apparatus described in fig. 5 in the embodiment of the present invention, which is not described herein again.
In this embodiment of the present invention, theprocessor 601 may obtain at least one application program of the terminal device that currently has an unprocessed message, and output a message management window on the display interface by calling theoutput device 604, and display an application icon of the at least one application program in the message management window, where the application icon carries a message corner mark. Further, the touch operation instruction input by the user in the message management window is received by calling theinput device 603, and the message corner mark carried by the application icon of the at least one application program is processed in response to the touch operation instruction. By adopting the message management mode, the operation steps of managing the message corner mark of the application program can be simplified, and the management efficiency of the unprocessed message is effectively improved.
An embodiment of the present invention further provides a computer-readable storage medium, where program instructions are stored in the computer-readable storage medium, and when the program is executed, part or all of the steps of the message management method in the embodiment corresponding to fig. 1 or fig. 4 may be included.
It should be noted that, for simplicity of description, the above-mentioned embodiments of the method are described as a series of acts or combinations, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, which may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The above detailed description is provided for a message management method, related devices and computer-readable storage media according to the embodiments of the present invention, and specific examples are applied herein to explain the principles and implementations of the present invention, and the descriptions of the above embodiments are only used to help understanding the method and the core ideas of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.