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.
The term "and/or" herein is an association relationship 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. The symbol "/" herein denotes a relationship in which the associated object is or, for example, a/B denotes a or B.
The terms "first" and "second," and the like, in the description and in the claims of the present invention are used for distinguishing between different objects and not for describing a particular order of the objects. For example, the first short message and the second short message are used to distinguish different short messages, not to describe a specific order of the short messages.
In the embodiments of the present invention, words such as "exemplary" or "for example" are used to mean serving as examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
In the description of the embodiments of the present invention, unless otherwise specified, "a plurality" means two or more, for example, a plurality of processing units means two or more processing units, and the like.
The embodiment of the invention provides a message display method and a terminal device, which can receive a first short message (the first short message comprises a first content), and replace a second short message with the first short message under the condition that the matching degree between the first content and a second content in the second short message is greater than or equal to a preset matching degree threshold value (the second short message is a short message stored in the terminal device, and the first short message and the second short message are short messages sent by the same target platform). Through the scheme, when a short message similar to the content of the short message stored in the terminal device is received, the information (such as quantity information, time information and the like) related to the content sent by the same target platform can be updated and displayed in real time in a single short message mode, so that a user can browse the updated information in real time conveniently, and the dynamic interaction effect of the user and the short message can be improved.
The terminal device in the embodiment of the present invention may be a terminal device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present invention are not limited in particular.
The following describes a software environment applied to the message display method provided by the embodiment of the present invention, taking an android operating system as an example.
Fig. 1 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present invention. In fig. 1, the architecture of the android operating system includes 4 layers, which are respectively: an application layer, an application framework layer, a system runtime layer, and a kernel layer (specifically, a Linux kernel layer).
The application program layer comprises various application programs (including system application programs and third-party application programs) in an android operating system.
The application framework layer is a framework of the application, and a developer can develop some applications based on the application framework layer under the condition of complying with the development principle of the framework of the application.
The system runtime layer includes libraries (also called system libraries) and android operating system runtime environments. The library mainly provides various resources required by the android operating system. The android operating system running environment is used for providing a software environment for the android operating system.
The kernel layer is an operating system layer of an android operating system and belongs to the bottommost layer of an android operating system software layer. The kernel layer provides kernel system services and hardware-related drivers for the android operating system based on the Linux kernel.
Taking an android operating system as an example, in the embodiment of the present invention, a developer may develop a software program for implementing the message display method provided in the embodiment of the present invention based on the system architecture of the android operating system shown in fig. 1, so that the message display method may operate based on the android operating system shown in fig. 1. Namely, the processor or the terminal device can implement the message display method provided by the embodiment of the invention by running the software program in the android operating system.
The terminal equipment in the embodiment of the invention can be a mobile terminal or a non-mobile terminal. For example, the mobile terminal may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted terminal, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile terminal may be a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiment of the present invention is not particularly limited.
The execution main body of the message display method provided in the embodiment of the present invention may be the terminal device, or may also be a functional module and/or a functional entity capable of implementing the message display method in the terminal device, which may be specifically determined according to actual use requirements, and the embodiment of the present invention is not limited. The following takes a terminal device as an example to exemplarily explain a message display method provided by the embodiment of the present invention.
As shown in fig. 2, an embodiment of the present invention provides a message display method, which may include S200 to S202 described below.
S200, the terminal equipment receives a first short message, wherein the first short message comprises first content.
In the embodiment of the present invention, if a certain platform sends a first short message to a terminal device, the terminal device may receive the first short message, where the first short message may include various contents pushed by the platform to a user.
For example, in the embodiment of the present invention, the first content may include information such as sales promotion information of the product, logistics information of the product, payment information of fees (e.g., communication fees, parking fees, membership fees, etc.), queuing information, and the like, and may be determined specifically according to actual usage requirements, which is not limited in the embodiment of the present invention.
Optionally, in this embodiment of the present invention, the first short message may be a short message including a text and the like, or may also be a multimedia message including a text and/or a picture and the like, or may also be a short message including an audio and/or a video and the like, or any other possible information, which may be specifically determined according to actual use requirements, and the embodiment of the present invention is not limited.
In the embodiment of the invention, the terminal equipment can receive the first short message through the short message module and store the first short message. Furthermore, the user can view the content in the first short message in the short message application.
S201, the terminal device judges whether the matching degree between the first content and the second content in the second short message is larger than or equal to a preset matching degree threshold value.
In the embodiment of the present invention, the second short message is a short message stored in the terminal device, and the first short message and the second short message are short messages sent by the same target platform. It will be appreciated that the second short message is a short message that the terminal device has received and stored again from the target platform before receiving the first short message from the target platform.
In this embodiment of the present invention, the target platform may be a merchant platform server or an enterprise platform server, or any other possible server, which may be determined specifically according to actual use requirements, and the embodiment of the present invention is not limited.
In the embodiment of the present invention, the target platform may send a short message (for example, a short message related to a same product promotion) to the terminal device in real time, or may send a short message to the terminal device at intervals according to an actual use requirement, which may be determined according to the actual use requirement, and the embodiment of the present invention is not limited.
In the embodiment of the present invention, after receiving the first short message, the terminal device may calculate a matching degree (or similarity) between the first content in the first short message and the second content in the second short message stored in the terminal device, and compare the calculated matching degree with a preset matching degree threshold, so as to determine whether the calculated matching degree is greater than or equal to the preset matching degree threshold.
In this embodiment of the present invention, if the terminal device determines that the matching degree between the first content and the second content is greater than or equal to the preset matching degree threshold, it may be determined that the first content is very similar to the second content, and thus it may be determined that the second content is replaced or updated to the first content, and therefore the terminal device may continue to perform S202 described below. If the terminal device determines that the matching degree between the first content and the second content in the second short message is smaller than the preset matching degree threshold, the terminal device may perform the normal message display procedure (for example, the terminal device stores and displays the first short message). For the description of the conventional message display steps, reference may be made to related steps of the message display method in the prior art, which are not described herein again.
Optionally, in the embodiment of the present invention, the preset matching degree threshold may be expressed in percentage, may also be expressed in fraction, and may also be expressed in other possible forms, which may specifically be determined according to actual use requirements, and the embodiment of the present invention is not limited.
For example, the preset matching degree threshold may be expressed as a percentage, and the preset matching degree threshold may be 90%, 95%, 98%, or any other possible value. Specifically, the value of the preset matching degree threshold may be determined according to actual use requirements, and the embodiment of the present invention is not limited.
S202, the terminal device replaces the second short message with the first short message.
In the embodiment of the invention, the terminal equipment replaces or updates the second short message into the first short message under the condition that the matching degree between the first content in the first short message and the second content in the second short message is determined to be greater than or equal to the preset matching degree threshold value.
Optionally, with reference to fig. 2, as shown in fig. 3, the above S202 may be specifically implemented by the following S202a and S202 b.
S202a, the terminal device deletes the second short message from the terminal device.
S202b, the terminal device stores the first short message in the terminal device.
In the embodiment of the invention, the terminal equipment deletes the stored second short message and stores the newly received first short message, so that the content based on the single short message is updated in real time, and the user can know the real-time change of the user attention information in real time. On one hand, the terminal equipment can be prevented from storing a plurality of short messages with basically the same content, and the memory space of the terminal equipment cannot be occupied; on the other hand, only one latest received short message in the short messages with basically the same content is reserved, and the short messages are visually and quickly viewed. Therefore, the embodiment of the invention can enable the user to intuitively and quickly browse the single short message updated in real time on the basis of not occupying the memory space of the terminal equipment, thereby improving the dynamic interaction effect of the user and the short message.
It should be noted that the execution order of S202a and S202b may not be limited in the embodiments of the present invention. That is, in the embodiment of the present invention, S202a may be executed first, and then S202b may be executed; or executing S202b first and then executing S202 a; s202a and S202b may also be performed simultaneously. It is understood that the above FIG. 3 is illustrated by first executing S202a and then executing S202 b.
The following describes, by way of example, a specific implementation of the message display method according to the embodiment of the present invention through the following application scenario one and application scenario two.
The application scene one: e-commerce limited preferential activities
As shown in fig. 4, the first short message is a message about sales promotion of limited amount of goods pushed by "shopping platform 1" (i.e. target platform). In fig. 4, the user is informed in the first short message that the product is under limited promotion, and the number 41 of the product is decreased in real time as the user buys, please grasp the time to buy. Therefore, a user can select whether to purchase the commodity according to actual use requirements, so that the embodiment of the invention can update and display the information (such as information related to commodity limited sales promotion) related to the content sent by the shopping platform 1 in real time in a single short message mode, and is more convenient for the user to quickly browse the updated information in real time, thereby improving the dynamic interaction effect of the user and the short message.
Application scenario two: expiration reminder
As shown in fig. 5, the first short message is a message sent by the "trading platform 1" (i.e. the target platform) about the parking space rental expiration reminding. In fig. 5, the first short message informs the user of the parking space rental expiration time, and the expiration time 51 decreases in real time as time goes by, please pay a fee. Therefore, the user can select whether to renew the fee or not according to the actual use requirement, so that the embodiment of the invention can update and display the information (such as the information about the parking space renting due reminding) related to the content sent by the transaction platform 1 in real time in a single short message mode, and is more convenient for the user to quickly browse the real-time updated information, thereby improving the dynamic interaction effect of the user and the short message.
The message display method provided in the embodiment of the present invention may receive a first short message (where the first short message includes a first content), and replace a second short message with the first short message when a matching degree between the first content and a second content in the second short message is greater than or equal to a preset matching degree threshold (where the second short message is a short message stored in a terminal device, and the first short message and the second short message are short messages sent by a same target platform). Through the scheme, when a short message similar to the content of the short message stored in the terminal device is received, the information (such as quantity information, time information and the like) related to the content sent by the same target platform can be updated and displayed in real time in a single short message mode, so that a user can browse the updated information in real time conveniently, and the dynamic interaction effect of the user and the short message can be improved.
Optionally, the first short message may further include a first identifier, where the first identifier is used to identify the target platform. Referring to fig. 2, as shown in fig. 6, after the above S200 and before the above S201, the message display method provided in the embodiment of the present invention may further include the following S203 and S204.
S203, the terminal device determines whether the first identifier is a preset identifier.
In the embodiment of the invention, after receiving the first short message, the terminal device extracts the first identifier in the first short message, and compares the first identifier with the preset identifier to judge whether the first identifier is the preset identifier.
In the embodiment of the present invention, the terminal device may store the preset identifier in advance, where the preset identifier is determined by a manufacturer of the terminal device and a target platform through negotiation in advance, and the preset identifier may be used to uniquely identify the target platform.
In addition, the manufacturer of the terminal device and the target platform may also negotiate in advance to determine an Application Program Interface (API) for real-time short message interaction. The terminal device may verify the identity of the target platform sending the short message by determining whether the first identifier is a preset identifier (i.e., verify whether the target platform is legal), and after the identity verification is successful, the terminal device establishes a connection with the target platform through the application program interface.
Optionally, in the embodiment of the present invention, the terminal device may establish a connection (for example, a real-time channel) with a target platform (i.e., a platform server) through a Transmission Control Protocol (TCP), where the connection is expressed as a real-time connection, and thus may be referred to as a long connection. Therefore, the target platform can send the short message to the terminal device in real time, and accordingly, the terminal device can receive the short message sent by the target platform in real time, so that real-time updating of a single short message is achieved.
Optionally, in the embodiment of the present invention, the terminal device may establish a connection with the target platform through a HyperText Transfer Protocol (HTTP) or a Secure HyperText Transfer Protocol over Secure Socket Layer (HTTPs), where the connection is expressed as a timing pull, and thus may be referred to as a short connection.
In this embodiment of the present invention, if the terminal device determines that the first identifier is the preset identifier, the terminal device determines that the target platform for sending the first short message is legal, and the terminal device may continue to execute S204 described below. If the terminal device determines that the first identifier is not the preset identifier, the terminal device may perform a normal message display procedure (for example, the terminal device stores and displays the first short message).
S204, the terminal device determines the matching degree of the first content and the content in the short message stored in the terminal device.
In the embodiment of the present invention, after determining that the first identifier is the preset identifier, the terminal device may compare the first content with the content in the short message stored in the terminal device, and calculate the matching degree between the first content and the content in the short message stored in the terminal device, so as to obtain a plurality of matching degrees. Furthermore, the terminal compares the maximum matching degree of the plurality of calculated matching degrees with a preset matching degree threshold, and if the maximum matching degree is greater than or equal to the preset matching degree threshold, the terminal device may replace the short message with the maximum matching degree (i.e., the second short message) in the terminal device with the first short message.
The following describes an interaction process between the terminal device and the target platform in an exemplary manner with reference to fig. 7.
S300, the terminal device (namely the manufacturer of the terminal device) and the target platform negotiate to determine a first identifier of the target platform and an Application Program Interface (API) for short message real-time interaction.
S301, the target platform determines a target object (namely a target user group).
S302, the target platform sends or pushes short messages to terminal equipment held by a target user group. And the target platform adds the first identifier of the target platform and the API which needs to be called back by the terminal equipment in the pushed short message content.
S303, the terminal equipment receives the short message sent by the target platform.
S304, the terminal equipment carries out identity verification on the target platform pushing the short message by identifying the identification carried in the short message.
S305, after the identity authentication is successful, the terminal device and the target platform establish connection (such as a real-time channel) for realizing real-time update of a single short message.
S306, the target platform determines the short message for real-time updating in real time.
S307, the target platform sends the short message for updating to the terminal equipment through the real-time channel so as to realize real-time updating of the short message.
And S308, the terminal equipment updates the short message in real time, so that real-time interaction between the terminal equipment and the target platform is realized.
In addition, the user can perform operations such as reply or emergency purchase on the short message and perform real-time response.
In the embodiment of the invention, the terminal equipment can verify the identity of the target platform sending the short message after receiving the short message, and then determine the matching degree of the content in the short message and the content in the short message stored in the terminal equipment after the identity verification is successful, so that the legality and validity of the terminal equipment for receiving the short message from the target platform can be improved. And the short message not only supports displaying static text and dynamic rich media, but also supports dynamic interaction between the terminal equipment and the target platform.
Optionally, with reference to fig. 2, as shown in fig. 8, after the above S202, the message display method provided in the embodiment of the present invention may further include the following S205 and S206.
S205, the terminal equipment receives a first input of the first short message from the user.
Wherein the first input is used for triggering the display of the first content in the first short message.
In the embodiment of the present invention, after the terminal device replaces the stored second short message with the first short message, the user may input the first short message stored in the terminal device to trigger the terminal device to display the content in the first short message.
S206, the terminal device responds to the first input, displays the first content, and highlights target information in the first content.
Wherein the target information may include at least one of time information, location information, quantity information, amount information, and platform identification information. Such information may be understood as information that enables a user to intuitively and easily see, and thus may be referred to as important information. It is understood that the above target information is an exemplary list, that is, the embodiments of the present invention include, but are not limited to, the above listed target information. In actual implementation, the target information may further include any other possible target information, which may be determined according to actual usage requirements, and the embodiment of the present invention is not limited.
Optionally, in the embodiment of the present invention, the highlighting manner may be a highlighting manner, an underlining manner, an enlarged display manner, or any other possible display manner, which may be determined according to actual use requirements, and the embodiment of the present invention is not limited.
For example, referring back to fig. 4, assuming that the short message is a message about a limited sales promotion of an item, the target information in the short message may be information on the number of the item, i.e., the number of the item. Wherein the quantity information 41 for the item may be magnified for highlighting and decremented in real time to alert the user that the item is being promoted by a limited amount, please purchase at close time. Therefore, the user can select whether to purchase the commodity according to the actual use requirement, so that the user can browse the real-time updated information in a key mode, and the dynamic interaction effect of the user and the short message can be improved.
As another example, referring back to fig. 5, assuming that the short message is a message related to a parking space rental expiration reminder, the target information in the short message may be time information 51, i.e., expiration time. The time information 51 can be displayed in an enlarged and highlighted manner and decreased in real time, so as to prompt the user that the parking space rental month card is about to expire and please pay for the next time. Therefore, the user can select whether to renew the fee or not according to the actual use requirement, so that the user can more conveniently browse the information updated in real time in a key mode, and the dynamic interaction effect of the user and the short message can be improved.
In the embodiment of the invention, the terminal device can respond to the input of the user to the first short message, display the first content in the first short message, and the important information in the first content is presented to the user in a highlighted way, so that the user can intuitively and easily view the first content and the important information in the first content.
Optionally, the first content may include a target control, where the target control is used to indicate an application program corresponding to the target platform. Referring to fig. 8, as shown in fig. 9, after S206 described above, the message display method provided in the embodiment of the present invention further includes S207 and S208 described below.
And S207, the terminal equipment receives second input of the user to the target control in the first content.
In the embodiment of the invention, after the terminal device displays the first content, a user can input the target control in the first content to trigger the terminal device to run the application program corresponding to the target platform and display the interface of the application program.
And S208, the terminal equipment responds to the second input and displays an interface of the application program corresponding to the target platform.
Optionally, in the embodiment of the present invention, the terminal device may display an interface (hereinafter, referred to as a target interface) of an application corresponding to the target platform in a split-screen manner, may also display the target interface in a small-window manner, may also update and display the first content as the target interface, or may display the target interface in any other possible manner. The method can be determined according to actual use requirements, and the embodiment of the invention is not limited.
Illustratively, as shown in FIG. 4, assuming the short message is a message from "shopping platform 1" (i.e., the target platform) regarding a limited number of promotions for an item, then the target control may be an "immediate preemption" control 42. If the user clicks the "instant-buy" control 42, the terminal device may display an interface containing limited promotional content for the item and purchase options in the application corresponding to the "shopping platform 1" in response to the input. Therefore, the user can select whether to purchase the commodity according to the actual use requirement, so that the user can browse the real-time updated information more conveniently, and the dynamic interaction effect of the user and the short message can be improved.
For example, as shown in fig. 5, assuming that the short message is a message from the "trading platform 1" (i.e. the target platform) regarding the parking space rental expiration reminder, the target control may be an "immediate payment" control and/or a "renewal record" control 52. If the user clicks the "immediate payment" control 52 (or the "renewal record" control), the terminal device may display an interface containing payment options (or an interface containing renewal records) in the application program corresponding to the "trading platform 1" in response to the input. Therefore, the user can select whether to renew the fee or not according to the actual use requirement, so that the user can browse the real-time updated information more conveniently, and the dynamic interaction effect of the user and the short message can be improved.
In the embodiment of the invention, because the received short message comprises the target control, the terminal equipment can respond to the input of the target control by the user, display the target interface and further present more information (such as commodity promotion information or expense payment information and the like) related to the short message to the user through the target interface, so that the user can visually and easily view the first content and the related information thereof, the user can browse the real-time updated information more conveniently, and the dynamic interaction effect of the user and the short message can be improved.
Optionally, in this embodiment of the present invention, the target information may include at least one of time information and quantity information, and the at least one of the time information and the quantity information may be used to indicate validity of the target information. And under the condition that the target information is effective, the target control is in a first display state, and in the first display state, the terminal equipment can respond to the input of the target control. And under the condition that the target information is invalid, the target control is in a second display state, and under the second display state, the terminal equipment does not respond to the input of the target control.
In the embodiment of the present invention, the validity of the target information refers to: the target information is valid under the condition that the target information meets the preset condition; and under the condition that the target information does not meet the preset condition, the target information is invalid.
For example, if the target information is time information and the preset condition is within a preset time period, the target information is valid if the time value indicated by the target information is within the preset time period; and in the case that the time indicated by the target information is not within the preset time period, the target information is invalid.
For another example, if the target information is quantity information and the preset condition is greater than or equal to the preset quantity, the target information is valid when the quantity value indicated by the target information is greater than or equal to the preset quantity; and in the case that the quantity value indicated by the target information is less than the preset quantity, the target information is invalid.
For example, if the value in the target information is greater than zero, the target information is valid, in which case the target control may be in a highlighted state, and at this time, the terminal device may respond to the input of the user to the target control. And if the numerical value in the target information is zero, the target information is invalid, in this case, the target control can be in a gray display state, and at this time, the terminal device can not respond to the input of the user to the target control.
For example, assuming that the first short message is a limited quantity of goods for the first time and the target information is a quantity of goods (i.e. quantity information), the quantity of goods is decreased in real time with the first time. Under the condition that the goods are purchased in a rush mode (at the moment, the quantity of the goods is 0, and the target information is invalid), the terminal equipment can display that the stock is empty and/or the goods cannot be purchased in real time, so that invalid operation of a user can be avoided.
As shown in fig. 10, an embodiment of the present invention provides a terminal device 700, where the terminal device 700 may include a receiving module 701 and a processing module 702. The receiving module 701 is configured to receive a first short message, where the first short message includes first content. The processing module 702 is configured to replace the second short message with the first short message received by the receiving module 701 when a matching degree between the first content and a second content in the second short message is greater than or equal to a preset matching degree threshold, where the second short message is a short message stored in the terminal device 700, and the first short message and the second short message are short messages sent by a same target platform.
Optionally, in this embodiment of the present invention, the first short message may further include a first identifier, where the first identifier is used to identify the target platform. With reference to fig. 10, as shown in fig. 11, the terminal device 700 provided in the embodiment of the present invention may further include a determining module 703. The determining module 703 is configured to determine whether the first identifier is a preset identifier after the receiving module 701 receives the first short message; and determines a matching degree of the first content with the content in the short message stored in the terminal device 700, in case that the first identifier is a preset identifier.
Optionally, with reference to fig. 10, as shown in fig. 12, the terminal device 700 provided in the embodiment of the present invention may further include a display module 704. The receiving module 701 is further configured to receive a first input of the first short message from the user after the processing module 702 replaces the second short message with the first short message. The display module 704 is configured to display a first content in response to a first input received by the receiving module 701, wherein target information in the first content is highlighted, and the target information includes at least one of time information, location information, quantity information, amount information, and platform identification information.
Optionally, in this embodiment of the present invention, the first content may include a target control, where the target control is used to indicate an application program corresponding to the target platform. The receiving module 701 is further configured to receive a second input of the target control from the user after the displaying module 704 displays the first content. The display module 704 is further configured to display an interface of an application corresponding to the target platform in response to the second input received by the receiving module 701.
Optionally, in this embodiment of the present invention, the target information may include at least one of time information and quantity information, where the at least one of time information and quantity information is used to indicate validity of the target information. And under the condition that the target information is effective, the target control is in a first display state. And under the condition that the target information is invalid, the target control is in a second display state. Wherein, in the first display state, responding to the input of the target control; in the second display state, no input to the target control is responded to.
The terminal device provided by the embodiment of the present invention can implement each process implemented by the terminal device in the above method embodiments, and is not described here again to avoid repetition.
The terminal device provided in the embodiment of the present invention may receive a first short message (where the first short message includes a first content), and replace a second short message with the first short message when a matching degree between the first content and a second content in the second short message is greater than or equal to a preset matching degree threshold (where the second short message is a short message stored in the terminal device, and the first short message and the second short message are short messages sent by a same target platform). Through the scheme, when the terminal equipment receives the short message similar to the content of the short message stored in the terminal equipment, the information (such as quantity information, time information and the like) related to the content sent by the same target platform can be updated and displayed in real time in a single short message mode, so that a user can browse the updated information in real time conveniently and quickly, and the dynamic interaction effect of the user and the short message can be improved.
Fig. 13 is a schematic diagram of a hardware structure of a terminal device for implementing various embodiments of the present invention. As shown in fig. 13, the terminal device 800 includes but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, a processor 810, and a power supply 811. Those skilled in the art will appreciate that the terminal device configuration shown in fig. 13 does not constitute a limitation of the terminal device, and that the terminal device may include more or fewer components than shown, or combine certain components, or a different arrangement of components. In the embodiment of the present invention, the terminal device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The radio frequency unit 801 is configured to receive a first short message, where the first short message includes first content; a processor 810, configured to replace the second short message with the first short message received by the radio frequency unit 801 when a matching degree between the first content and a second content in the second short message is greater than or equal to a preset matching degree threshold, where the second short message is a short message stored in a terminal device, and the first short message and the second short message are short messages sent by a same target platform.
The embodiment of the present invention provides a terminal device, where the terminal device may receive a first short message (where the first short message includes a first content), and replace a second short message with the first short message when a matching degree between the first content and a second content in the second short message is greater than or equal to a preset matching degree threshold (where the second short message is a short message stored in the terminal device, and the first short message and the second short message are short messages sent by a same target platform). Through the scheme, when the terminal equipment receives the short message similar to the content of the short message stored in the terminal equipment, the information (such as quantity information, time information and the like) related to the content sent by the same target platform can be updated and displayed in real time in a single short message mode, so that a user can browse the updated information in real time conveniently and quickly, and the dynamic interaction effect of the user and the short message can be improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 801 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 810; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 801 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. Further, the radio frequency unit 801 can also communicate with a network and other devices through a wireless communication system.
The terminal device 800 provides the user with wireless broadband internet access through the network module 802, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 803 may convert audio data received by the radio frequency unit 801 or the network module 802 or stored in the memory 809 into an audio signal and output as sound. Also, the audio output unit 803 may also provide audio output related to a specific function performed by the terminal apparatus 800 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 803 includes a speaker, a buzzer, a receiver, and the like.
The input unit 804 is used for receiving an audio or video signal. The input unit 804 may include a Graphics Processing Unit (GPU) 8041 and a microphone 8042, and the graphics processor 8041 processes image data of a still picture or video obtained by an image capturing apparatus (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 806. The image frames processed by the graphics processor 8041 may be stored in the memory 809 (or other storage medium) or transmitted via the radio frequency unit 801 or the network module 802. The microphone 8042 can receive sound, and can process such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 801 in case of a phone call mode.
The terminal device 800 also includes at least one sensor 805, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 8061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 8061 and/or the backlight when the terminal device 800 moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the terminal device posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; the sensors 805 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 806 is used to display information input by the user or information provided to the user. The display unit 806 may include a display panel 8061, and the display panel 8061 may be configured in the form of a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), or the like.
The user input unit 807 is operable to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal device. Specifically, the user input unit 807 includes a touch panel 8071 and other input devices 8072. The touch panel 8071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 8071 (e.g., operations by a user on or near the touch panel 8071 using a finger, a stylus, or any other suitable object or accessory). The touch panel 8071 may include two portions of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 810, receives a command from the processor 810, and executes the command. In addition, the touch panel 8071 can be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 8071, the user input unit 807 can include other input devices 8072. In particular, other input devices 8072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 8071 can be overlaid on the display panel 8061, and when the touch panel 8071 detects a touch operation on or near the touch panel 8071, the touch operation is transmitted to the processor 810 to determine the type of the touch event, and then the processor 810 provides a corresponding visual output on the display panel 8061 according to the type of the touch event. Although in fig. 13, the touch panel 8071 and the display panel 8061 are two independent components to implement the input and output functions of the terminal device, in some embodiments, the touch panel 8071 and the display panel 8061 may be integrated to implement the input and output functions of the terminal device, and this is not limited herein.
The interface unit 808 is an interface for connecting an external device to the terminal apparatus 800. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 808 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the terminal apparatus 800 or may be used to transmit data between the terminal apparatus 800 and an external device.
The memory 809 may be used to store software programs as well as various data. The memory 809 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 809 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 810 is a control center of the terminal device, connects various parts of the whole terminal device by using various interfaces and lines, and performs various functions of the terminal device and processes data by running or executing software programs and/or modules stored in the memory 809 and calling data stored in the memory 809, thereby performing overall monitoring of the terminal device. Processor 810 may include one or more processing units; optionally, the processor 810 may integrate an application processor and a modem processor, wherein the application processor mainly handles operating systems, user interfaces, application programs, and the like, and the modem processor mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 810.
Terminal device 800 may also include a power supply 811 (e.g., a battery) for powering the various components, and optionally, power supply 811 may be logically coupled to processor 810 via a power management system to manage charging, discharging, and power consumption management functions via the power management system.
In addition, the terminal device 800 includes some functional modules that are not shown, and are not described in detail here.
Optionally, an embodiment of the present invention further provides a terminal device, which includes the processor 810 shown in fig. 13, a memory 809, and a computer program stored in the memory 809 and capable of running on the processor 810, where the computer program, when executed by the processor 810, implements each process of the above-mentioned message display method embodiment, and can achieve the same technical effect, and is not described here again to avoid repetition.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned message display method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may include a read-only memory (ROM), a Random Access Memory (RAM), a magnetic or optical disk, and the like.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention or portions thereof contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method disclosed in the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.