CN114827340A - Mobile terminal and display method of communication message thereof - Google Patents

Mobile terminal and display method of communication message thereof Download PDF

Info

Publication number
CN114827340A
CN114827340A CN202110090823.8A CN202110090823A CN114827340A CN 114827340 A CN114827340 A CN 114827340A CN 202110090823 A CN202110090823 A CN 202110090823A CN 114827340 A CN114827340 A CN 114827340A
Authority
CN
China
Prior art keywords
message
mobile terminal
session
identifier
session list
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110090823.8A
Other languages
Chinese (zh)
Inventor
张博
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology 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 Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN202110090823.8A priority Critical patent/CN114827340A/en
Publication of CN114827340A publication Critical patent/CN114827340A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • H04W4/14Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]

Abstract

The application discloses a mobile terminal and a display method of communication messages thereof, and relates to the technical field of display. The mobile terminal may determine a target session list based on the message identifier of the received communication message and the correspondence between the service identifier and the session list, and then display the communication message in the target session list. Since the target session list corresponds to the service identifier of the communication message, and one SMS number may correspond to at least one service identifier, the mobile terminal provided by the present application is capable of displaying a plurality of communication messages in different session lists for the plurality of communication messages having the same SMS number but different service identifiers. Compared with the prior art that the plurality of communication messages are displayed in the same conversation list, the method enriches the display modes of the communication messages.

Description

Mobile terminal and display method of communication message thereof
Technical Field
The present application relates to the field of display technologies, and in particular, to a mobile terminal and a method for displaying a communication message thereof.
Background
The mobile terminal may receive a communication message transmitted by the operator server. The communication message may be a short message, a multimedia message, or a Rich Communication Suite (RCS) message. Then, the mobile terminal may display short messages, multimedia messages and RCS messages with the same Short Messaging Service (SMS) number in the same session list.
However, this way of displaying the communication message is relatively simple.
Disclosure of Invention
The application provides a mobile terminal and a display method of communication messages thereof, which can solve the problem that the display mode of the communication messages in the related art is single. The technical scheme is as follows:
in one aspect, a mobile terminal is provided, and the mobile terminal includes: a processor and a display screen; the processor is configured to:
receiving a communication message sent by an operator server and a message identifier of the communication message, wherein the message identifier comprises: the system comprises a service identifier and/or a short message service number, wherein the short message service number corresponds to at least one service identifier;
determining a target session list corresponding to the service identifier of the communication message from a plurality of session lists of the mobile terminal based on the correspondence of the service identifier to the session lists;
and controlling the display screen to display the communication message in the target session list.
Optionally, the message identifier is a short message service number, and the short message service number corresponds to a plurality of service identifiers; the processor is configured to:
for each service identifier corresponding to the short message service number, determining an alternative session list corresponding to the service identifier from the multiple session lists based on the corresponding relation to obtain multiple alternative session lists;
and determining the alternative session list to which the communication message is recently added in the plurality of alternative session lists as a target session list.
Optionally, the processor is further configured to:
and determining at least one service identifier corresponding to the short message service number based on the corresponding relation between the short message service number and the service identifier.
Optionally, the processor is further configured to:
if the session list corresponding to the message identifier does not exist in the plurality of session lists based on the corresponding relation between the service identifier and the session lists, a first session list is newly established;
displaying the communication message in the first session list.
Optionally, the processor is further configured to:
and recording the message identification and the corresponding first session list in the corresponding relation.
In another aspect, a method for displaying a communication message of a mobile terminal is provided, the method comprising:
receiving a communication message sent by an operator server and a message identifier of the communication message, wherein the message identifier comprises: the system comprises a service identifier and/or a short message service number, wherein the short message service number corresponds to at least one service identifier;
determining a target session list corresponding to the service identifier of the communication message from a plurality of session lists of the mobile terminal based on the correspondence of the service identifier to the session lists;
displaying the communication message in the target session list.
Optionally, the message identifier is a short message service number, and the short message service number corresponds to a plurality of service identifiers; the determining, from a plurality of session lists of the mobile terminal, a target session list corresponding to the service identifier of the communication message based on the correspondence between the service identifier and the session list, includes:
for each service identifier corresponding to the short message service number, determining an alternative session list corresponding to the service identifier from the multiple session lists based on the corresponding relation, and obtaining multiple alternative session lists;
and determining the alternative session list to which the communication message is recently added in the plurality of alternative session lists as a target session list.
Optionally, before determining, from the plurality of session lists of the mobile terminal, a target session list corresponding to the service identifier of the communication message based on the correspondence between the service identifier and the session list, the method further includes:
and determining at least one service identifier corresponding to the short message service number based on the corresponding relation between the short message service number and the service identifier.
Optionally, the method further includes:
if the conversation list corresponding to the message identifier does not exist in the plurality of conversation lists based on the corresponding relation between the service identifier and the conversation lists, a first conversation list is newly established;
displaying the communication message in the first session list.
Optionally, after the first session list is newly created, the method further includes:
and recording the message identification and the corresponding first session list in the corresponding relation.
In still another aspect, a mobile terminal is provided, which includes: a memory, a processor and a computer program stored on the memory and operable on the processor, the processor implementing the method of displaying a communication message of a mobile terminal as described in the above aspect when executing the computer program.
In still another aspect, there is provided a computer-readable storage medium having stored therein a computer program which is loaded and executed by a processor to implement the display method of a communication message of a mobile terminal according to the above aspect.
In still another aspect, a computer program product containing instructions is provided, which when run on the computer causes the computer to execute the method for displaying a communication message of a mobile terminal according to the above aspect.
The beneficial effect that technical scheme that this application provided brought includes at least:
the embodiment of the application provides a method for displaying communication messages of a mobile terminal, and the mobile terminal can determine a target session list based on message identifiers of received communication messages and corresponding relations between service identifiers and the session list, and then display the communication messages in the target session list. Since the target session list corresponds to the service identifier of the communication message and one SMS number may correspond to at least one service identifier, the mobile terminal provided by the present application is capable of displaying a plurality of communication messages in different session lists for the plurality of communication messages having the same SMS number but different service identifiers. Compared with the prior art that the plurality of communication messages are displayed in the same conversation list, the method enriches the display modes of the communication messages.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a method for displaying a communication message of a mobile terminal according to an embodiment of the present application;
fig. 2 is a flowchart of a method for displaying a communication message of a mobile terminal according to an embodiment of the present application;
fig. 3 is a flowchart for determining a target session list according to an embodiment of the present application;
fig. 4 is a schematic diagram of a session list provided in an embodiment of the present application;
fig. 5 is a schematic diagram of another session list provided in an embodiment of the present application;
FIG. 6 is a schematic diagram of a details interface of a session list provided in an embodiment of the present application;
fig. 7 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application;
fig. 8 is a block diagram of a software structure of a mobile terminal according to an embodiment of the present disclosure.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
The embodiment of the application provides a method for displaying communication messages of a mobile terminal, which can be applied to the mobile terminal. Optionally, the mobile terminal may be a mobile phone, a tablet computer, a notebook computer, or a wearable device. For example, the mobile terminal may be a mobile phone. Moreover, the operating system of the mobile terminal may be an Android operating system (Android).
Referring to fig. 1, the method may include:
step 101, receiving a communication message sent by an operator server and a message identifier of the communication message.
The operator server may send a communication message to the mobile terminal, along with a message identification for the communication message. Accordingly, the mobile terminal may receive the communication message, as well as the message identification of the communication message.
Wherein, the message identification comprises: a service identifier (service ID), and/or an SMS number. The SMS number may correspond to at least one service identifier.
If the mobile terminal determines that the message identifier of the communication message comprises: a service identifier, the communication message may be determined to be an RCS message. If the mobile terminal determines that the message identifier of the communication message is an SMS number, the communication message can be determined to be a short message or a multimedia message.
Step 102, based on the corresponding relation between the service identifier and the session list, a target session list corresponding to the service identifier of the communication message is determined from a plurality of session lists of the mobile terminal.
After receiving the communication message sent by the operator server and the message identifier corresponding to the communication message of the mobile terminal, the mobile terminal may determine, from the multiple session lists, a target session list corresponding to the service identifier of the communication message based on a correspondence between a service identifier stored in advance and the session list.
Therefore, after receiving the communication message (such as the short message, the multimedia message, or the RCS message), the mobile terminal can display the communication message in the target session list corresponding to the service identifier of the communication message. Moreover, since one service identifier corresponds to one session list and one SMS number corresponds to at least one service identifier, for a plurality of communication messages with the same SMS number but different service identifiers, the mobile terminal provided in the embodiment of the present application can display the plurality of communication messages in different session lists, thereby enriching display manners of the communication messages.
Furthermore, since the plurality of communication messages can be displayed separately, the source of the displayed communication messages can be made clear and viewable, thereby improving the user experience.
Step 103, displaying the communication message in the target session list.
After determining the meeting mark session list corresponding to the service identifier of the communication message, the mobile terminal may add the communication message to the target session list, that is, may display the communication message in the target session list.
In summary, the embodiment of the present application provides a method for displaying a communication message of a mobile terminal, where the mobile terminal may determine a target session list based on a message identifier of a received communication message and a correspondence between a service identifier and the session list, and then display the communication message in the target session list. Since the target session list corresponds to the service identifier of the communication message, and one SMS number may correspond to at least one service identifier, the mobile terminal provided in the embodiment of the present application is capable of displaying a plurality of communication messages in different session lists for the plurality of communication messages having the same SMS number but different service identifiers. Compared with the prior art that the plurality of communication messages are displayed in the same conversation list, the method provided by the embodiment of the application enriches the display modes of the communication messages.
Fig. 2 is another method for displaying a communication message of a mobile terminal according to an embodiment of the present disclosure, where the method may be applied to the mobile terminal, and referring to fig. 2, the mobile terminal may include:
step 201, receiving a communication message sent by an operator server and a message identifier of the communication message.
The operator server may send a communication message to the mobile terminal, along with a message identification for the communication message. Accordingly, the mobile terminal may receive the communication message, as well as the message identification of the communication message.
The communication message can be a short message, a multimedia message or an RCS message. The RCS message is a communication message appearing in a platform (MaaP) technology, and may also be referred to as a MaaP message. The RCS message may be text, pictures, video, audio, electronic business cards, maps, business cards, applet cards, red packets, and the like.
The message identification of the communication message may include: a service identifier (service ID), and/or an SMS number. The SMS number may correspond to at least one service identifier. For example, the message identification of the communication message is a service identifier. Alternatively, the message identification of the communication message may be an SMS number. Alternatively, the message identification of the communication message may be a service identifier and an SMS number.
The service identifier may be the address of the sender of the RCS message. The sender address may be in the format xxx @ bootplan, rcs, china mobile, or the sender address may be in the format sip xxx @ bootplan, rcs, china mobile.
Alternatively, the SMS number may be a private number of a communication network provider, or may be a public service number permitted by a user. For example, the SMS number may be 10086, and 10010, etc.
In this embodiment of the present application, if the message identifier of the communication message includes: a service identifier, the mobile terminal may determine that the communication message is an RCS message. If the message identifier of the communication message is an SMS number, the mobile terminal may determine that the communication message is a short message or a multimedia message.
Step 202, a target session list corresponding to the service identifier of the communication message is determined from a plurality of session lists of the mobile terminal based on the correspondence between the service identifier and the session list.
After receiving the communication message sent by the operator server and the message identifier corresponding to the communication message of the mobile terminal, the mobile terminal may determine, based on the correspondence between the service identifier and the session list, a target session list corresponding to the service identifier of the communication message from the session lists after determining that the target session list corresponding to the message identifier of the communication message exists in the session lists.
The correspondence between the service identifier and the session list may refer to a correspondence between the service identifier and a list ID of the session list. The correspondence of the service identifier to the session list may be created and stored in advance by the mobile terminal based on the message identification of the history communication message. And the mobile terminal can continuously update the corresponding relation.
Alternatively, the mobile terminal may store the correspondence between the service identifier and the session list in a form of a list, that is, the mobile terminal may record the correspondence between the service identifier and the session list in the first correspondence table. Also, the first correspondence table may further record a correspondence between the service identifier and the SMS number. For example, the first correspondence table (which may also be referred to as an address table) is shown in table 1.
TABLE 1
Figure BDA0002912599800000071
As can be seen from table 1, the table may include: an address (address) field for indicating a source of the communication message, a private (is _ private) field for indicating whether the communication message corresponding to the service identifier is a public service message, a chatbot _ SMS _ addr field for indicating that the address field corresponds to the SMS number, an update _ time field for indicating a latest update time of the session list, and a list ID field for uniquely identifying one session list. If the value of the is _ private field is 0, it indicates that the communication message corresponding to the service identifier is a public service message. The most recent update time may refer to the time in the session list at which the communication message was last added.
With continued reference to table 1, service identifier 1201@ botplatform. rc. mobile, and service identifier 1203@ botplatform. rc. mobile, each correspond to SMS number 1200. And the list ID of the session list corresponding to the service identifier 1201@ botplatform. rc. china mobile is 1, and the latest update time of the session list is 1: 10 minutes (') 46 seconds ("), i.e., 1 hour, 10 minutes 46 seconds. The list ID of the session list corresponding to the service identifier 1203@ bootplatform. 9' 50 ", i.e. 2 hours, 9 minutes, 50 seconds.
In the embodiment of the present application, the mobile terminal may further store a second correspondence table (also referred to as a chatbot _ info table) in which correspondence between all service identifiers and SMS numbers is recorded. The second correspondence table is responsible for update and maintenance by a third-party Software Development Kit (SDK). For example, if the mobile terminal determines that the third party SDK updates an SMS number corresponding to a certain service identifier in the second mapping table, the SMS number corresponding to the service identifier in the first mapping table may be updated to a changed SMS number through a database trigger (trigger) device, so as to ensure accuracy of a target session list determined by a subsequent mobile terminal.
For example, the second correspondence table may be as shown in table 2. As can be seen from fig. 2, the second correspondence table may further include: a name (name) field for indicating the name of the session list (which may also be referred to as a service name) to which each service identifier corresponds.
TABLE 2
Name (R) service ID SMS number
A 1201@botplatform.rcs.chinamobile 1200
B 1203@botplatform.rcs.chinamobile 1200
C 4567@botplatform.rcs.chinamobile 4560
D 5677@botplatform.rcs.chinamobile
E 6677@botplatform.rcs.chinamobile 6670
With continued reference to table 2, the service identifier 1201@ botplatform. rc. china mobile corresponds to an SMS number of 1200 and the name of the corresponding session list is a. The SMS number corresponding to the service identifier 5677@ botplatform.rc.
In an optional implementation manner, after the mobile terminal receives the communication message sent by the operator server and the message identifier corresponding to the communication message, the mobile terminal may determine, based on the correspondence between the service identifier and the session list, that a session list corresponding to the message identifier exists in the multiple session lists of the mobile terminal, and then may execute step 202.
In this embodiment of the present application, for a scenario in which a message identifier of a communication message includes a service identifier, after receiving the message identifier, the mobile terminal may detect whether a service identifier identical to the service identifier of the communication message exists in a plurality of service identifiers recorded in correspondence between the service identifier and a session list. If the mobile terminal determines that the service identifier identical to the service identifier of the communication message exists in the plurality of service identifiers, it may be determined that a session list corresponding to the message identifier exists in a plurality of session lists of the mobile terminal.
For a scenario in which a message identifier of a communication message is an SMS number, if a correspondence between a service identifier and an SMS number is not recorded in the correspondence, the mobile terminal may determine at least one service identifier corresponding to the SMS number based on the correspondence between the SMS number and the service identifier. Thereafter, the mobile terminal may determine whether a service identifier identical to any one of the at least one service identifier exists among the plurality of service identifiers recorded in the correspondence. If the mobile terminal determines that the same service identifier as any one of the plurality of service identifiers exists, it may be determined that a session list corresponding to the message identifier of the communication message exists in the plurality of session lists. Wherein, the corresponding relation between the SMS number and the service identifier can be pre-stored in the mobile terminal.
If the correspondence relationship records a correspondence relationship between the service identifier and the SMS number, that is, the correspondence relationship records SMS numbers corresponding to the plurality of session lists in the mobile terminal corresponding to the service identifier, the mobile terminal may detect whether there is an SMS number identical to the SMS number of the communication message in at least one SMS number recorded in the correspondence relationship. If the mobile terminal determines that there is an SMS number in the at least one SMS number that is the same as the SMS number for the communication, it may be determined that there is a session list in the plurality of session lists that corresponds to the message identification of the communication message.
After determining that a session list corresponding to the message identifier of the communication message exists in the multiple session lists of the mobile terminal, the mobile terminal may determine a target session list corresponding to the service identifier of the communication message from the multiple session lists based on the correspondence between the service identifier and the session list. Wherein, the service identifier of the communication message may be a service identifier directly transmitted by the operator server. Alternatively, the service identifier may be a server identifier corresponding to an SMS number sent by an operator server.
In the embodiment of the application, for a scene in which the message identifier of the communication message includes a service identifier, the mobile terminal determines, as the target session list, the session list corresponding to the service identifier that is the same as the service identifier of the communication message directly based on the correspondence between the service identifier and the session list.
For a scenario in which a message identifier of a communication message is an SMS number, if the mobile terminal determines that the SMS number corresponds to one service identifier based on a correspondence between the service identifier and the SMS number, a session list corresponding to a service identifier that is the same as the service identifier in the correspondence may be determined as a target session list.
If the mobile terminal determines that the SMS number corresponds to the plurality of service identifiers based on the correspondence between the SMS number and the service identifier, referring to fig. 3, the process of the mobile terminal determining a target session list corresponding to the service identifier of the communication message from the plurality of session lists of the mobile terminal based on the correspondence between the service identifier and the session list may include:
step 2021, for each service identifier corresponding to the SMS number, determining an alternative session list corresponding to the service identifier from the multiple session lists based on the correspondence between the service identifier and the session list, and obtaining multiple alternative session lists.
For each service identifier in the plurality of service identifiers corresponding to the SMS number, the mobile terminal may determine, from the plurality of session lists of the mobile terminal, an alternative session list corresponding to the service identifier based on the correspondence between the service identifier and the session list, thereby obtaining a plurality of alternative session lists.
Step 2022, determine the candidate session list to which the communication message is recently added from the multiple candidate session lists as the target session list.
In this embodiment, for each of the plurality of session lists, if the message identifier of the communication message received by the mobile terminal is the same as the message identifier corresponding to the session list, the communication message may be added to the session list to update the session list. And, the mobile terminal may also record the most recent update time of the session list.
Based on this, after obtaining the multiple candidate session lists, the mobile terminal may compare the update times of the multiple candidate session lists, thereby determining a most recently updated candidate session list in the multiple candidate session lists, that is, a candidate session list to which a communication message is recently added, and determining the most recently updated candidate session list as the target session list.
Optionally, for each candidate session list in the multiple candidate session lists, the mobile terminal may determine a time difference between the update time of the candidate session list and the current time of the mobile terminal, so as to obtain multiple time differences. Then, the mobile terminal may compare the magnitudes of the time difference values, and may determine, as the target session list, the candidate session list indicated by the smallest time difference value among the time difference values.
For example, assume that the first mapping table is shown in table 1, and the message identifier of the communication message received by the mobile terminal is 1200. The mobile terminal may determine that the 1200 corresponding service identifier based on the first correspondence table includes: 1201@ botplatform, rcs. The latest update time of the session list corresponding to the service identifier 1201@ botplatform. rc. china mobile is 1: 10' 46 ", the last update time of the session list corresponding to the service identifier 1203@ bootplatform. 9' 50 ".
Since the time difference between the latest update time of the session list corresponding to the service identifier 1203@ bootplatform. rc. mobile and the current time is smaller than the time difference between the latest update time of the session list corresponding to the service identifier 1201@ bootplatform. rc. mobile and the current time. Therefore, the mobile terminal may determine a session list corresponding to the service identifier 1201@ bootplatform.
In another alternative implementation manner, after receiving the communication message sent by the operator server and the message identifier corresponding to the communication message, the mobile terminal may filter out, from the first correspondence table, a message identifier that is the same as the message identifier of the communication message, a session list corresponding to the message identifier, and a latest update time of the session list based on the message identifier, and mark a type (type) of the filtered first content (i.e., the message identifier that is the same as the message identifier of the communication message, the session list corresponding to the message identifier, and the latest update time of the session list) as the first identifier. Moreover, the mobile terminal may further screen a message identifier that is the same as the message identifier of the communication message from the second correspondence table, and mark the type of the screened second content (i.e., the message identifier that is the same as the message identifier of the communication message) as the second identifier. Wherein the first identifier is different from the second identifier.
In this embodiment, for a scenario in which the message identifier includes a service identifier, the mobile terminal may directly screen, from an address field in the first mapping table, a service identifier that is the same as the service identifier of the communication message, screen, from the first mapping table, a session list corresponding to the service identifier and a latest update time of the session list, and mark the type of the screened content as the first identifier. Both the first mark and the second mark may be numerical values, for example, the first mark is 1, and the second mark is 3.
For a scenario in which the message identification is an SMS number, the first identification may comprise a first sub-value and a second sub-value. The mobile terminal may screen out the same SMS number as the SMS number of the communication message from the address field of the first correspondence table, and screen out a session list corresponding to the SMS number and the latest update time of the session list from the first correspondence table. Then, the mobile terminal may mark the screened type of the content as a first sub-value.
The mobile terminal may further filter an SMS number identical to the SMS number of the communication message from the chatbot _ SMS _ addr field of the first correspondence table, filter a service identifier corresponding to the SMS number, a session list corresponding to the service identifier, and a latest update time of the session list from the first correspondence table, and mark the type of the filtered contents as a second sub-value. Wherein the first sub-value is different from the second sub-value. For example, the first sub-value is 1 and the second sub-value is 2.
Then, if the mobile terminal determines that the screened content includes content whose type is marked as the first identifier, that is, includes the first content, and the first content includes a session list, the session list in the first content may be directly determined as the target session list.
If the first content includes a plurality of session lists corresponding to the service identifier, the mobile terminal may determine, as the target session list, a most recently updated session list of the plurality of session lists based on a most recently updated time of each session list of the plurality of session lists.
As can be seen from the above description, the mobile terminal may determine the target session list corresponding to the service identifier of the communication message by means of a joint query (i.e., a query based on the first corresponding relation table and the second corresponding relation table at the same time), and detecting the value marked by the type of the screened content.
For example, assuming that the first mapping table is shown in table 1, the second mapping table is shown in table 2, and the SMS number of the communication message received by the mobile terminal is 4560, the content marked as the first identifier determined by the mobile terminal based on the first mapping table includes the content shown in table 3 below.
TABLE 3
Figure BDA0002912599800000121
As can be seen from table 4, the SMS number 4560 corresponds to two session lists, but only the session list with the list ID 3 corresponds to the service identifier 4567@ bootplatform.
Step 203, the communication message is displayed in the target session list.
After determining the meeting mark session list corresponding to the service identifier of the communication message, the mobile terminal may add the communication message to the target session list, that is, may display the communication message in the target session list.
Optionally, after the mobile terminal adds the communication message to the target session list, the mobile terminal may further update the latest update time of the session list.
Optionally, the target session list may also be displayed with its name, and the corresponding SMS number.
For example, assuming that the current list interface of the mobile terminal is shown in fig. 4, as can be seen from fig. 4, the list interface may include: a message search box 01, a list of sessions named C, a list of sessions named a, and a list of sessions named B, an icon 02 for each list of sessions, a message addition control 03, and a navigation bar 04. Wherein the icons 02 of the different session lists are different.
Referring to fig. 4, the user touches the session list named a, and accordingly, the mobile terminal may display a session interface of the session list. The session interface may display the names of the session list, and the SMS numbers 1200 corresponding to the session list, and the history messages received by the mobile terminal.
The mobile terminal can display the received historical short messages/multimedia messages and the historical RCS messages in different areas of the conversation interface. As shown in fig. 4, the mobile terminal may display a history RCS message "hello" on the left side of the session interface, and a history sms/mms message "ask you for you what? ".
Assume that the service identifier of the session list named a is 1201@ bootform. rc. mobile, and the mobile terminal receives the RCS message, and the service identifier of the RCS message is 1201@ bootform. rc. mobile, and the content is "do you have time? ". Since the service identifier of the received RCS message is the same as the service identifier corresponding to the session list shown in fig. 4, the mobile terminal may display the received RCS message in the display area of the RCS message shown in fig. 4.
Fig. 5 shows the session interface of another session list with corresponding SMS number 1200, which is named B in fig. 5. Let the service identifier corresponding to the session list be 1203@ bootplatform, RCS. ".
Since the service identifier of the received RCS message is the same as the service identifier corresponding to the session list shown in fig. 5, the mobile terminal displays the received RCS message "how recently did you? ".
As can be seen from fig. 4 and 5, the SMS number corresponding to the session interface shown in fig. 4 is the same as the SMS number corresponding to the session interface shown in fig. 5. Therefore, the mobile terminal provided by the embodiment of the application can display the communication message in the target session list corresponding to the service identifier of the communication message, but not display all the communication messages with the same SMS number in one session list. Thereby, the flexibility of the display of the communication message is improved.
In the embodiment of the application, a user can touch an icon of a session list, and correspondingly, the mobile terminal can respond to the touch operation of the user on the icon of the session list and display a service identifier corresponding to the session list.
For example, assuming that the service identifier corresponding to the session list with the name B is 1203@ botplatform. The details interface may include the service identifier 1203@ bootplan.
Also, as can be seen from fig. 6, the detail interface may further include: the session list includes information such as service introduction of service identifier, account body, provider, service type, callback phone, SMS number, email box, service website, and detailed address.
Further, as shown in fig. 6, the details interface may further include: save control 05 (i.e., the save-to-local control in fig. 6) and enter chat control 06.
The mobile terminal may save the detailed information about the session list shown in fig. 6 to the local of the mobile terminal in response to the touch operation of the user with respect to the saving control 05. The mobile terminal can also respond to the touch operation of the user for entering the chat control 06 and return the session interface of the session list.
And step 204, if the conversation lists corresponding to the message identifications do not exist in the plurality of conversation lists, newly establishing a first conversation list.
Optionally, when determining that the session list corresponding to the message identifier does not exist in the plurality of session lists, the mobile terminal may further generate a first session list identifier.
In the embodiment of the application, after receiving a communication message sent by an operator server and a message identifier corresponding to the communication message, a mobile terminal determines whether a scene of a session list corresponding to the message identifier exists in a plurality of session lists of the mobile terminal based on a corresponding relationship between a service identifier and the session lists. If the message identifier of the communication message includes the service identifier, the mobile terminal does not have the same service identifier as the service identifier of the communication message in the plurality of service identifiers recorded in the correspondence relationship between the service identifier and the session list, and thus it can be determined that the session list corresponding to the message identifier does not exist in the plurality of session lists of the mobile terminal.
If the message identifier of the communication message is an SMS number and the correspondence between the service identifier and the session list does not record the correspondence between the service identifier and the SMS number, the mobile terminal may determine that the session list corresponding to the message identifier does not exist in the plurality of session lists of the mobile terminal when it is determined that any one of the at least one service identifier corresponding to the SMS number is different from each of the plurality of service identifiers.
If the correspondence between the service identifier and the session list records the correspondence between the service identifier and the SMS number, the mobile terminal may determine that a session list corresponding to the message identifier does not exist in the plurality of session lists of the mobile terminal when determining that each SMS number is different from the SMS number of the communication message in at least one SMS number recorded in the correspondence.
For example, it is assumed that the first mapping table is shown in table 1, and the message identifier of the communication message received by the mobile terminal is 6677@ botplatform. Since the session list corresponding to the 6677@ bootplatform. rc. mobile does not exist in table 1, the mobile terminal may determine that a target session list corresponding to the service identifier of the communication message does not exist in the session lists, and then may create a first session list, where the list ID of the first session list may be 5.
And for the scene that the mobile terminal screens the content from the first corresponding relation table and the second corresponding relation table after receiving the communication message and the message identifier thereof, if the content screened by the mobile terminal does not include: the type flag is the content of the first identifier, the mobile terminal may determine that there is no target session list corresponding to the message identifier of the communication message in the plurality of session lists.
Step 205 displays the communication message in the first session list.
After the first session list is newly created, the mobile terminal may add the communication message to the first session list, that is, the mobile terminal may display the communication message in the first session list.
Optionally, after the mobile terminal adds the communication message to the first session list, the adding completion time after the communication message is added may also be recorded, so that after the communication message with the same SMS number as the communication message is subsequently received, the accuracy of the subsequently determined target session list may be ensured.
Step 206, recording the corresponding relation between the message identifier and the first session list in the corresponding relation table.
After the first session list is newly created, the mobile terminal may further record the corresponding relationship between the message identifier and the first session list in the corresponding relationship between the service identifier and the session list.
Therefore, the mobile terminal can be ensured to display the communication message in the first session list after subsequently receiving the communication message with the message identifier which is the same as the message identifier, without newly establishing a new session list, thereby ensuring the integrity of the displayed communication message.
It should be further noted that, the order of the steps of the method for displaying a communication message of a mobile terminal provided in the embodiment of the present application may be appropriately adjusted, and the steps may also be increased or decreased according to the situation. For example, steps 204 to 207 may also be performed before step 202. Any method that can be easily conceived by a person skilled in the art within the technical scope disclosed in the present application is covered by the protection scope of the present application, and thus the detailed description thereof is omitted.
In summary, the embodiment of the present application provides a method for displaying a communication message of a mobile terminal, where the mobile terminal may determine a target session list based on a message identifier of a received communication message and a correspondence between a service identifier and the session list, and then display the communication message in the target session list. Since the target session list corresponds to the service identifier of the communication message, and one SMS number may correspond to at least one service identifier, the mobile terminal provided in the embodiment of the present application is capable of displaying a plurality of communication messages in different session lists for the plurality of communication messages having the same SMS number but different service identifiers. Compared with the prior art that the plurality of communication messages are displayed in the same conversation list, the method provided by the embodiment of the application enriches the display modes of the communication messages.
The embodiment of the application provides a mobile terminal, and the mobile terminal can be used for executing the method for displaying the communication message of the mobile terminal provided by the embodiment of the method. Referring to fig. 7, the mobile terminal may include: there is provided a mobile terminal including: a processor 1101 and a display screen 131. The processor 1101 may be configured to:
receiving a communication message sent by an operator server and a message identifier of the communication message, wherein the message identifier comprises: the service identifier and/or the short message service number corresponds to at least one service identifier;
determining a target session list corresponding to the service identifier of the communication message from a plurality of session lists of the mobile terminal based on the correspondence of the service identifier to the session lists;
the display screen is controlled to display the communication message in the target session list.
Optionally, the message identifier is a short message service number, and the short message service number corresponds to a plurality of service identifiers. The processor 1101 may be configured to:
for each service identifier corresponding to the short message service number, determining an alternative session list corresponding to the service identifier from the multiple session lists based on the corresponding relation, and obtaining multiple alternative session lists;
and determining the alternative session list to which the communication message is recently added in the plurality of alternative session lists as a target session list.
Optionally, the processor 1101 may be configured to:
and determining at least one service identifier corresponding to the short message service number based on the corresponding relation between the short message service number and the service identifier.
Optionally, the processor 1101 may further be configured to:
if the session list corresponding to the message identifier does not exist in the plurality of session lists based on the corresponding relation between the service identifier and the session lists, a first session list is newly established;
the communication message is displayed in the first session list.
Optionally, the processor 1101 may further be configured to:
and recording the message identification and the corresponding first session list in the corresponding relation.
In summary, the embodiment of the present application provides a mobile terminal, which may determine a target session list based on a message identifier of a received communication message and a correspondence between a service identifier and the session list, and then display the communication message in the target session list. Since the target session list corresponds to the service identifier of the communication message, and one SMS number may correspond to at least one service identifier, the mobile terminal provided in the embodiment of the present application is capable of displaying a plurality of communication messages in different session lists for the plurality of communication messages having the same SMS number but different service identifiers. Compared with the prior art in which the plurality of communication messages are displayed on the same session list, the mobile terminal provided by the embodiment of the application has a rich communication message display mode.
As shown in fig. 7, the mobile terminal 110 may further include: a display unit 130, a Radio Frequency (RF) circuit 150, an audio circuit 160, a wireless fidelity (Wi-Fi) module 170, a bluetooth module 180, a power supply 190, and a camera 121.
The camera 121 may be used to capture still pictures or video, among other things. The object generates an optical picture through the lens and projects the optical picture to the photosensitive element. The photosensitive element may be a Charge Coupled Device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The light sensitive elements convert the light signals into electrical signals which are then passed to the processor 1101 for conversion into digital picture signals.
The processor 1101 is a control center of the mobile terminal 110, connects various parts of the entire terminal using various interfaces and lines, and performs various functions of the mobile terminal 110 and processes data by running or executing software programs stored in the memory 140 and calling data stored in the memory 140. In some embodiments, processor 1101 may include one or more processing units; the processor 1101 may also integrate an application processor, which mainly handles operating systems, user interfaces, applications, etc., and a baseband processor, which mainly handles wireless communications. It will be appreciated that the baseband processor described above may not be integrated into the processor 1101. In the present application, the processor 1101 may run an operating system and an application program, may control a user interface to display, and may implement the method for displaying a communication message of a mobile terminal provided in the embodiment of the present application. Additionally, processor 1101 is coupled to input unit and display unit 130.
The display unit 130 may be used to receive input numeric or character information and generate signal inputs related to user settings and function control of the mobile terminal 110, and optionally, the display unit 130 may also be used to display information input by the user or information provided to the user and a Graphical User Interface (GUI) of various menus of the mobile terminal 110. The display unit 130 may include a display screen 131 disposed on the front surface of the mobile terminal 110. The display screen 131 may be configured in the form of a liquid crystal display, a light emitting diode, or the like. The display unit 130 may be used to display various graphical user interfaces described herein.
The display unit 130 includes: a display screen 131 and a touch screen 132 disposed on the front of the mobile terminal 110. The display screen 131 may be used to display preview pictures. Touch screen 132 may collect touch operations on or near by the user, such as clicking a button, dragging a scroll box, and the like. The touch screen 132 may be covered on the display screen 131, or the touch screen 132 and the display screen 131 may be integrated to implement the input and output functions of the mobile terminal 110, and after the integration, the touch screen may be referred to as a touch display screen for short.
Memory 140 may be used to store software programs and data. The processor 1101 executes various functions of the mobile terminal 110 and data processing by executing software programs or data stored in the memory 140. The memory 140 may include high speed random access memory and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Memory 140 stores an operating system that enables mobile terminal 110 to operate. The memory 140 may store an operating system and various application programs, and may also store codes for performing display of a communication message of the mobile terminal according to the embodiment of the present application.
The RF circuit 150 may be configured to receive and transmit signals during information transmission and reception or during a call, and may receive downlink data of a base station and then deliver the downlink data to the processor 1101 for processing; the uplink data may be transmitted to the base station. Typically, the RF circuitry 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.
Audio circuitry 160, speaker 161, and microphone 162 may provide an audio interface between a user and mobile terminal 110. The audio circuit 160 may transmit the electrical signal converted from the received audio data to the speaker 161, and convert the electrical signal into a sound signal for output by the speaker 161. Mobile terminal 110 may also be configured with a volume button for adjusting the volume of the sound signal. On the other hand, the microphone 162 converts the collected sound signal into an electrical signal, converts the electrical signal into audio data after being received by the audio circuit 160, and then outputs the audio data to the RF circuit 150 to be transmitted to, for example, another terminal or outputs the audio data to the memory 140 for further processing. In this application, the microphone 162 may capture the voice of the user.
Wi-Fi belongs to a short-distance wireless transmission technology, and the mobile terminal 110 may help a user to send and receive e-mails, browse webpages, access streaming media, and the like through the Wi-Fi module 170, which provides a wireless broadband internet access for the user.
And the Bluetooth module 180 is used for performing information interaction with other Bluetooth devices with Bluetooth modules through a Bluetooth protocol. For example, the mobile terminal 110 may establish a bluetooth connection with a wearable electronic device (e.g., a smart watch) also equipped with a bluetooth module through the bluetooth module 180, so as to perform data interaction.
Mobile terminal 110 also includes a power supply 190 (e.g., a battery) that powers the various components. The power supply may be logically coupled to the processor 1101 through a power management system to manage charging, discharging, and power consumption functions through the power management system. The mobile terminal 110 may also be configured with a power button for powering on and off the terminal, and locking the screen.
The mobile terminal 110 may include at least one sensor 1110, such as a motion sensor 11101, a distance sensor 11102, a fingerprint sensor 11103, and a temperature sensor 11104. Mobile terminal 110 may also be configured with other sensors such as gyroscopes, barometers, hygrometers, thermometers, and infrared sensors.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the mobile terminal and each device described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
Fig. 8 is a block diagram of a software structure of a mobile terminal according to an embodiment of the present application. The layered architecture divides the software 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 is divided into four layers, an application layer, an application framework layer, an Android Runtime (ART) and system library, and a kernel layer from top to bottom.
The application layer may include a series of application packages. As shown in fig. 8, the application package may include applications such as camera, gallery, calendar, phone call, map, navigation, WLAN, bluetooth, music, video, short message, etc. The application framework layer provides an Application Programming Interface (API) and a programming framework for the application program of the application layer. The application framework layer includes a number of predefined functions.
As shown in FIG. 8, the application framework layers may include a window manager, content provider, view system, phone manager, resource manager, notification manager, and the like.
The window manager is used for managing window programs. The window manager can obtain 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. The data may include video, pictures, audio, calls made and received, browsing history and bookmarks, phone books, etc.
The view system includes visual controls such as controls to display text, controls to display 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 including the short message notification icon may include a view for displaying text and a view for displaying pictures.
The phone manager is used to provide communication functions of the mobile terminal 110. Such as management of call status (including on, off, etc.).
The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and the like.
The notification manager enables the application to display notification information in the status bar, can be used to convey notification-type messages, can disappear automatically after a short dwell, and does not require user interaction. Such as a notification manager used to inform download completion, message alerts, etc. The notification manager may also be a notification that appears in the form of a chart or scroll bar text at the top status bar of the system, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, text information is prompted in the status bar, a prompt tone is given, the communication terminal vibrates, and an indicator light flashes.
The android runtime comprises a core library and a virtual machine. The android runtime is responsible for scheduling and management of the android system.
The core library comprises two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. And executing java files of the application program layer and the application program framework layer into a binary file by the virtual machine. The virtual machine is used for performing the functions of object life cycle management, stack management, thread management, safety and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface managers (surface managers), media libraries (media libraries), three-dimensional graphics processing libraries (e.g., openGL ES), 2D graphics engines (e.g., SGL), and the like.
The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
The media library supports a variety of commonly used audio, video format playback and recording, and still picture files, etc. The media library may support a variety of audio-video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, picture rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
The embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored, and the computer program is loaded by a processor and executes a method for displaying a communication message of a mobile terminal provided in the above embodiment, for example, the method shown in fig. 1 or fig. 2.
The embodiment of the present application further provides a computer program product containing instructions, which when run on a computer, causes the computer to execute the method for displaying a communication message of a mobile terminal provided in the foregoing embodiment, for example, the method shown in fig. 1 or fig. 2.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
It should be understood that reference herein to "and/or" means that there may be three relationships, for example, a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. Also, the term "at least one" in the present application means one or more, and the term "a plurality" in the present application means two or more.
The terms "first," "second," and the like in this application are used for distinguishing between similar items and items that have substantially the same function or similar functionality, and it should be understood that "first," "second," and "nth" do not have any logical or temporal dependency or limitation on the number or order of execution. For example, the first correspondence table may be referred to as a second correspondence table, and similarly, the second correspondence table may be referred to as the first correspondence table, without departing from the scope of the various described examples.
The above description is only exemplary of the present application and should not be taken as limiting the present application, and any modifications, equivalents, improvements and the like that are made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (10)

1. A mobile terminal, characterized in that the mobile terminal comprises: a processor and a display screen; the processor is configured to:
receiving a communication message sent by an operator server and a message identifier of the communication message, wherein the message identifier comprises: the system comprises a service identifier and/or a short message service number, wherein the short message service number corresponds to at least one service identifier;
determining a target session list corresponding to the service identifier of the communication message from a plurality of session lists of the mobile terminal based on the correspondence of the service identifier to the session lists;
and controlling the display screen to display the communication message in the target session list.
2. The mobile terminal of claim 1, wherein the message identifier is a short message service number, and the short message service number corresponds to a plurality of service identifiers; the processor is configured to:
for each service identifier corresponding to the short message service number, determining an alternative session list corresponding to the service identifier from the multiple session lists based on the corresponding relation, and obtaining multiple alternative session lists;
and determining the alternative session list to which the communication message is recently added in the plurality of alternative session lists as a target session list.
3. The mobile terminal of claim 1, wherein the processor is further configured to:
and determining at least one service identifier corresponding to the short message service number based on the corresponding relation between the short message service number and the service identifier.
4. The mobile terminal of any of claims 1 to 3, wherein the processor is further configured to:
if the session list corresponding to the message identifier does not exist in the plurality of session lists based on the corresponding relation between the service identifier and the session lists, a first session list is newly established;
displaying the communication message in the first session list.
5. The mobile terminal of claim 4, wherein the processor is further configured to:
and recording the message identification and the corresponding first session list in the corresponding relation.
6. A method for displaying communication messages of a mobile terminal, the method comprising:
receiving a communication message sent by an operator server and a message identifier of the communication message, wherein the message identifier comprises: the system comprises a service identifier and/or a short message service number, wherein the short message service number corresponds to at least one service identifier;
determining a target session list corresponding to the service identifier of the communication message from a plurality of session lists of the mobile terminal based on the correspondence of the service identifier to the session lists;
displaying the communication message in the target session list.
7. The method of claim 6, wherein the message identifier is a short message service number, and wherein the short message service number corresponds to a plurality of service identifiers; the determining, from a plurality of session lists of the mobile terminal, a target session list corresponding to the service identifier of the communication message based on the correspondence between the service identifier and the session list, includes:
for each service identifier corresponding to the short message service number, determining an alternative session list corresponding to the service identifier from the multiple session lists based on the corresponding relation, and obtaining multiple alternative session lists;
and determining the alternative session list to which the communication message is recently added in the plurality of alternative session lists as a target session list.
8. The method of claim 6, wherein before determining the target session list corresponding to the service identifier of the communication message from the plurality of session lists of the mobile terminal based on the correspondence between the service identifier and the session list, the method further comprises:
and determining at least one service identifier corresponding to the short message service number based on the corresponding relation between the short message service number and the service identifier.
9. The method according to any one of claims 6 to 8, further comprising:
if the session list corresponding to the message identifier does not exist in the plurality of session lists based on the corresponding relation between the service identifier and the session lists, a first session list is newly established;
displaying the communication message in the first session list.
10. The method of claim 9, wherein after the creating the first session list, the method further comprises:
and recording the message identification and the corresponding first session list in the corresponding relation.
CN202110090823.8A 2021-01-22 2021-01-22 Mobile terminal and display method of communication message thereof Pending CN114827340A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110090823.8A CN114827340A (en) 2021-01-22 2021-01-22 Mobile terminal and display method of communication message thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110090823.8A CN114827340A (en) 2021-01-22 2021-01-22 Mobile terminal and display method of communication message thereof

Publications (1)

Publication Number Publication Date
CN114827340A true CN114827340A (en) 2022-07-29

Family

ID=82524533

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110090823.8A Pending CN114827340A (en) 2021-01-22 2021-01-22 Mobile terminal and display method of communication message thereof

Country Status (1)

Country Link
CN (1) CN114827340A (en)

Similar Documents

Publication Publication Date Title
CN103631580B (en) Method and device for generating theme icon
CN111367456A (en) Communication terminal and display method in multi-window mode
CN111857531A (en) Mobile terminal and file display method thereof
CN113709026B (en) Method, device, storage medium and program product for processing instant communication message
CN111176766A (en) Communication terminal and component display method
CN112163033B (en) Mobile terminal and travel list display method thereof
CN112000408B (en) Mobile terminal and display method thereof
CN114371895B (en) Terminal equipment, mail marking method and storage medium
CN113542488B (en) Method, device and storage medium for controlling controlled terminal using terminal device
CN114610202A (en) Silence help seeking method and terminal equipment
CN114020379A (en) Terminal device, information feedback method and storage medium
CN114827340A (en) Mobile terminal and display method of communication message thereof
CN112954622A (en) Mobile terminal and short message sending method thereof
CN112351144A (en) Mobile terminal and state prompting method thereof
CN113760164A (en) Display device and response method of control operation thereof
CN113642010A (en) Method for acquiring data of extended storage device and mobile terminal
CN110852717A (en) Travel updating method and intelligent communication terminal
CN106681845B (en) Method and device for managing communication messages
CN112786022A (en) Terminal, first voice server, second voice server and voice recognition method
CN111414142B (en) Mobile terminal and display method of application interface thereof
CN112668061B (en) Electronic equipment and equipment code reporting method thereof
CN113641533B (en) Terminal and short message processing method
CN112312509A (en) Mobile terminal and network access method thereof
CN113742037A (en) Mobile terminal and application control method thereof
CN111913772A (en) Terminal and desktop display method

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