Information display method and device and terminal
Technical Field
The present invention relates to the field of mobile communications technologies, and in particular, to an information display method, an information display apparatus, and a terminal.
Background
With the development of mobile communication technology, mobile phones have become one of the communication tools frequently used for people to communicate.
However, when people use the mobile phone to communicate with other people, the people cannot hear the incoming call of the other party every time, for example, when the mobile phone is turned off or no signal is given, the incoming call of the other party cannot be connected. Therefore, in order to remind the user of the missed call, a reminding method is generally adopted, which includes: the operator server sends reminding information comprising the telephone number of the opposite party and the incoming call time to the terminal; the terminal displays the reminding information after receiving the reminding information, so that a user can obtain the missed call information after reading the reminding information displayed by the terminal.
In the process of implementing the invention, the inventor finds that the scheme at least has the following problems:
since the user usually only memorizes the phone numbers of the friends very close to the user, but does not memorize the phone numbers of all the friends stored in the address book, and the reminding information displayed by the terminal only includes the phone number of the other party and the incoming call time, this results in that although the user stores the contact corresponding to the phone number in the address book, such as the friend 'xiaoming' corresponding to the number '1234567', the terminal only displays the number '4512367', so that the user cannot know whether the friend 'xiaoming', 'xiaoming' or 'xiaoming' calls the user, and the practicability is low.
Disclosure of Invention
In order to solve the problem that in the background art, a user cannot know which friend sends a call to the user through information displayed by a terminal, and therefore the practicability of the information displayed by the terminal is low, the embodiment of the invention provides an information display method, an information display device and the terminal. The technical scheme is as follows:
in a first aspect, an information display method is provided, which includes:
detecting whether the content of the received information contains a telephone number;
if the detection result is that the content of the information contains the telephone number, inquiring the attribute of the contact person corresponding to the telephone number;
and displaying the inquired contact person attribute corresponding to the telephone number.
Preferably, if the detection result is that the content of the information includes a phone number, the method further includes:
detecting whether a query instruction for querying the contact person attribute corresponding to the telephone number is received;
and if the detection result is that the inquiry instruction is received, executing the step of inquiring the contact person attribute corresponding to the telephone number.
Preferably, the displaying the queried contact attribute corresponding to the phone number includes:
replacing the telephone number contained in the content of the information with the inquired contact person attribute corresponding to the telephone number;
displaying the information after the replaced content;
or,
adding the inquired contact person attribute corresponding to the telephone number before or after the telephone number contained in the content of the information;
displaying the information with the content added;
or,
displaying the inquired contact person attribute corresponding to the telephone number at a preset position in a display area of the information when the information is displayed;
or,
and after the information is displayed, redisplaying a piece of information comprising the inquired contact attribute corresponding to the telephone number.
Preferably, the information is any one of a short message SMS, an instant messaging program IM, an email, a microblog and a webpage;
the contact attributes include at least one of contact name, number attribution, and operator information.
Preferably, if the contact attribute includes a contact name, the querying the contact attribute corresponding to the phone number includes:
inquiring the contact name corresponding to the telephone number in a locally stored address book; or,
inquiring the contact name corresponding to the telephone number in an address book stored on a remote server; or,
inquiring the contact name corresponding to the telephone number in a locally stored address book, and when the corresponding contact name cannot be inquired, continuously inquiring the contact name corresponding to the telephone number in the address book stored on a remote server;
if the contact person attribute comprises a number attribution, the inquiring of the contact person attribute corresponding to the telephone number comprises the following steps:
inquiring a number attribution corresponding to the telephone number in a database which is locally stored and used for storing the number attribution;
if the contact person attribute comprises operator information, the inquiring of the contact person attribute corresponding to the telephone number comprises the following steps:
and inquiring operator information corresponding to the telephone number according to the number segment of the telephone number.
In a second aspect, there is provided an information display apparatus, the apparatus comprising:
the number detection module is used for detecting whether the content of the received information contains a telephone number;
the information query module is used for querying the contact person attribute corresponding to the telephone number when the detection result of the number detection module is that the content of the information contains the telephone number;
and the information display module is used for displaying the contact person attribute which is inquired by the information inquiry module and corresponds to the telephone number.
Preferably, the apparatus further comprises:
the instruction detection module is used for detecting whether an inquiry instruction for inquiring the attribute of the contact person corresponding to the telephone number is received or not;
and the information query module is used for executing the step of querying the contact person attribute corresponding to the telephone number when the detection result of the instruction detection module is that a query instruction for querying the contact person attribute corresponding to the telephone number is received.
Preferably, the information display module includes:
the information replacing unit is used for replacing the telephone number contained in the content of the information with the inquired contact person attribute corresponding to the telephone number; the first display unit is used for displaying the information after the content is replaced by the information replacement unit; or,
the information adding unit is used for adding the inquired contact person attribute corresponding to the telephone number before or after the telephone number contained in the content of the information; the second display unit is used for displaying the information added by the information adding unit after the content is added; or,
the third display unit is used for displaying the inquired contact person attribute corresponding to the telephone number at a preset position in a display area of the information when the information is displayed; or,
and the fourth display unit is used for redisplaying a piece of information comprising the inquired contact person attribute corresponding to the telephone number after the information is displayed.
Preferably, the information is any one of a short message SMS, an instant messaging program IM, an email, a microblog and a webpage;
the contact attributes include at least one of contact name, number attribution, and operator information.
Preferably, the information query module includes:
at least one of the first, second and third query units;
the first query unit is used for querying the contact person attribute corresponding to the telephone number in a locally stored address book when the contact person attribute comprises a contact person name; or when the contact person attribute comprises a contact person name, inquiring the contact person attribute corresponding to the telephone number in an address book stored on a remote server; or, when the contact attribute comprises a contact name, inquiring the contact name corresponding to the telephone number in a locally stored address book, and when the corresponding contact name is not inquired, continuously inquiring the contact name corresponding to the telephone number in the address book stored on the remote server;
the second query unit is used for querying a number attribution corresponding to the telephone number in a database which is locally stored and used for storing the number attribution when the contact person attribution comprises the number attribution;
and the third inquiring unit is used for inquiring the operator information corresponding to the telephone number according to the number segment of the telephone number when the contact person attribute comprises the operator information.
In a third aspect, a terminal is provided, which includes the above information display device.
The technical scheme provided by the embodiment of the invention has the beneficial effects that:
when the content of the received information is detected to contain the telephone number, inquiring the attribute of the contact person corresponding to the telephone number, and displaying the inquired attribute of the contact person corresponding to the telephone number; the problem that after the terminal displays the reminding information, a user still cannot know which friend sends a call to the user, and the practicability is low is solved; the effect that the terminal can directly display the contact person attribute corresponding to the telephone number is achieved, and therefore the user can conveniently acquire the information of the opposite party.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, 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 of displaying information according to an embodiment of the present invention;
FIG. 2 is a flowchart of a method of displaying information according to a second embodiment of the present invention;
fig. 2A is a schematic diagram illustrating a terminal querying a contact attribute corresponding to a phone number according to a second embodiment of the present invention;
fig. 2B is another schematic diagram of querying a contact attribute corresponding to a phone number by the terminal according to the second embodiment of the present invention;
fig. 2C is a schematic diagram of a terminal displaying contact attributes corresponding to phone numbers according to a second embodiment of the present invention;
FIG. 3 is a flowchart of a method of displaying information according to a third embodiment of the present invention;
fig. 4 is a block diagram showing the structure of an information display device according to a fourth embodiment of the present invention;
fig. 5 is a block diagram of an information display module according to a fifth embodiment of the present invention;
fig. 6 is a block diagram illustrating a structure of an information query module according to a fifth embodiment of the present invention;
fig. 7 is a block diagram of an information display device according to a sixth embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the present invention will be further described in detail with reference to the accompanying drawings, and it is to be understood that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. 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.
Example one
Referring to fig. 1, a flowchart of a method of displaying information according to an embodiment of the present invention is shown, where the method includes:
step 101, detecting whether the content of the received information contains a telephone number;
step 102, if the detection result is that the content of the information contains a telephone number, inquiring the attribute of a contact person corresponding to the telephone number;
and 103, displaying the inquired contact person attribute corresponding to the telephone number.
In summary, in the information display method provided in this embodiment, when it is detected that the content of the received information includes the phone number, the contact attribute corresponding to the phone number is queried, so as to display the queried contact attribute corresponding to the phone number; the problem that after the terminal displays the reminding information, a user still cannot know which friend sends a call to the user, and the practicability is low is solved; the effect that the terminal can directly display the contact person attribute corresponding to the telephone number is achieved, and therefore the user can conveniently acquire the information of the opposite party.
Example two
Referring to fig. 2, a flowchart of an information display method according to a second embodiment of the present invention is shown, where the information display method may be used in a terminal such as a mobile phone, a tablet computer, or a desktop computer, and the information display method may include:
step 201, detecting whether the content of the received information contains a telephone number;
when a friend of a user calls himself, but the mobile phone is powered off or does not have a signal and the other party can not be received, the operator server can send information to the terminal, and therefore the user is reminded of missed call information. In order to know which friend the other party is, the terminal can detect whether the content of the received information contains the telephone number after receiving the information.
Step 202, if the detection result is that the content of the information contains a telephone number, inquiring the contact person attribute corresponding to the telephone number, wherein the contact person attribute comprises at least one of a contact person name, a number attribution and operator information;
since the user usually only memorizes the telephone numbers of friends very close to the user, but does not memorize the telephone numbers of all friends stored in the address book, even if the content of the information includes the telephone number of the other party, the user cannot necessarily know which friend gives the call to the user according to the telephone number, so that after the terminal detects that the content of the information includes the telephone number, the terminal can inquire the contact attribute corresponding to the telephone number. Wherein the information may be sent to the terminal by means of a short message SMS, and the contact attributes may include at least one of a contact name, a home location of a phone number, and operator information.
In practical implementation, when the contact attribute includes a contact name, the query mode of the terminal for querying the contact attribute corresponding to the phone number may include any one of the following modes:
firstly, searching a contact name corresponding to a telephone number in a locally stored address book;
when the terminal detects that the content of the information includes a phone number, the terminal may query a contact name corresponding to the phone number in an address book stored locally in order to determine which friend the phone number corresponds to.
For example, referring to fig. 2A, if the information received by the terminal is '8: 15 min 7654321, and you make a call', the terminal may query the contact name corresponding to the phone number 7654321 in the locally stored address book, so as to determine that the caller of the missed call is friend 'zhanxi'.
Secondly, searching a contact name corresponding to the telephone number in an address book stored on a remote server;
with the development of information technology, a user can store an address book in a remote server, so after the terminal detects that the content of the received information contains a telephone number, the terminal can also inquire a contact name corresponding to the telephone number in the address book stored on the remote server.
For example, referring to fig. 2B, taking an example that the user stores the address book in the cloud server, and the information received by the terminal is '8: 15 part number 6547893 to call you', the terminal may query the address book stored in the cloud server for the contact name corresponding to the phone number 6547893, so as to determine that the caller of the missed call is a friend's old man'.
Thirdly, a contact name corresponding to the phone number is inquired in the address book stored locally, and when the corresponding contact name is not inquired, the contact name corresponding to the phone number is continuously inquired in the address book stored on the remote server.
Since the user can store the phone numbers of a part of friends in the local and store the phone numbers of a part of friends in the remote server, after detecting that the content of the information includes the phone numbers, the terminal can firstly query the contact names corresponding to the phone numbers in the address book stored in the local, and when the contact names are not queried, the contact names corresponding to the phone numbers are continuously queried in the address book stored in the remote server, and the detailed query details can refer to the two steps, which are not described herein again.
When the contact attribute includes a number attribution, the query mode of the terminal for querying the contact attribute corresponding to the phone number may include:
and inquiring a number attribution corresponding to the telephone number in a database which is locally stored and used for storing the number attribution.
Since the terminal can store the home location database including the correspondence between each telephone number and the number home location, after the terminal detects that the received information content includes the telephone number, the terminal can inquire the number home location corresponding to the telephone number in the database storing the number home location.
When the contact attribute includes the operator information, the query mode of the terminal for querying the contact attribute corresponding to the phone number may include:
and inquiring operator information corresponding to the telephone number according to the number segment of the telephone number.
In the existing communication system, the system has assigned a number segment to each carrier, so after the terminal detects that the received information contains a telephone number, the terminal can confirm carrier information corresponding to the telephone number according to the number segment of the telephone number.
For example, in the conventional communication system, the telephone numbers beginning with 135, 139, 147 and 188 in the telephone numbers are allocated to mobile use, the telephone numbers beginning with 130, 132, 134 and 186 are allocated to communication use, and the telephone numbers beginning with 133 and 189 are allocated to telecommunication use, so that after the terminal detects that the received information contains the telephone numbers, the terminal can determine the operator information according to the beginning digits of the telephone numbers.
The first point to be supplemented is that the server may also send the information to the terminal in any one of the ways of instant messaging program IM, email, microblog, web page, etc., and the specific sending form of the information is not limited in this embodiment;
the second point to be described in addition is that, in actual implementation, the contact attribute may also include any two or three of a contact name, a number attribution, and operator information, so that the terminal may query corresponding information according to the query method, and then simultaneously use each information as the contact attribute, which is not described in detail herein, and this embodiment takes the example that the contact attribute includes the contact name.
And step 203, displaying the inquired contact person attribute corresponding to the telephone number.
After the terminal inquires the contact person attribute corresponding to the telephone number in the received information, the terminal can display the inquired contact person attribute corresponding to the telephone number, so that a user can clearly know which friend dials own telephone according to the contact person attribute displayed by the terminal.
In actual implementation, the display modes of the terminal for displaying the inquired contact person attribute corresponding to the telephone number at least include 4 types;
the first may include:
firstly, replacing a telephone number contained in the content of the information with a contact person attribute corresponding to the inquired telephone number;
before the terminal displays the queried contact attribute corresponding to the phone number, the terminal may replace the phone number included in the content of the information with the queried contact attribute corresponding to the phone number.
For example, if the terminal receives the information of ' 8:15 semicolon 7654321, calls you, and the terminal inquires that the contact attribute corresponding to the phone number is ' zhanli ', the terminal can replace the phone number ' 7654321 ' in the received information with the contact attribute ' zhanli '.
Second, the information after the replaced content is displayed.
After the terminal replaces the phone number in the information with the contact attribute, the terminal may display the information after replacing the content.
For example, if the phone number '7654321' is replaced with the contact attribute 'zhai', the terminal may display information that the content is '8: 15 fen number zhai to you call', so that after reading the information displayed by the terminal, the user can clearly know that the friend 'zhai' dials his phone.
The second may include:
firstly, adding the inquired contact person attribute corresponding to the telephone number before or after the telephone number contained in the content of the information;
alternatively, before the terminal displays the queried contact attribute corresponding to the phone number, the terminal may further add the queried contact attribute corresponding to the phone number before or after the phone number included in the content of the information.
For example, still taking the example that the information received by the terminal is the ' 8:15 semicolon 7654321 and the terminal inquires that the contact attribute corresponding to the phone number is ' zhanxi ', the terminal may add the inquired contact attribute ' zhanxi ' before or after the phone number 7654321.
Second, the information to which the content is added is displayed.
The terminal may display the information after the content is added before or after the terminal adds the contact attribute to the phone number.
For example, taking the example that the terminal adds the contact attribute ' zhanli ' to the phone number ' 7654321 ', the terminal may display the information that the content is ' 8:15 part number 7654321 (zhanli) calls you, so that after reading the information displayed by the terminal, the user can clearly know that the friend ' zhanli ' dials his phone.
The third may include:
and displaying the inquired contact person attribute corresponding to the telephone number at a preset position in the information display area when the information is displayed.
As still another alternative, the terminal may display the searched contact attribute corresponding to the phone number at a predetermined position in a display area of the information when displaying the information.
For example, if the terminal first displays the received information that the content is '8: 15 min 7654321' to call you, after the terminal detects the contact attribute 'zhai' corresponding to the phone number '7654321', the terminal may display the contact attribute corresponding to the phone number in a predetermined area in a dialog box displaying the original information, and the specific display manner may refer to fig. 2C.
The fourth may include:
after the information is displayed, a piece of information including the searched contact attribute corresponding to the telephone number is redisplayed.
As still another alternative, the terminal may display the received information and, after displaying the information, redisplay a piece of information including the queried contact attribute corresponding to the phone number.
For example, the terminal may display information that you have called with the received content of' 8:15 min 7654321, and redisplay a piece of information that the content includes the contact attribute corresponding to the phone number after the terminal inquires about the contact attribute corresponding to the phone number. The information that includes the contact attribute corresponding to the phone number and is redisplayed by the terminal may be the phone number replaced with the contact attribute, or may be the conditional contact attribute before or after the phone number, which is specifically referred to in the first and second embodiments and will not be described herein again.
In summary, in the information display method provided in this embodiment, when it is detected that the content of the received information includes the phone number, the contact attribute corresponding to the phone number is queried, so as to display the queried contact attribute corresponding to the phone number; the problem that after the terminal displays the reminding information, a user still cannot know which friend sends a call to the user, and the practicability is low is solved; the effect that the terminal can directly display the contact person attribute corresponding to the telephone number is achieved, and therefore the user can conveniently acquire the information of the opposite party. Meanwhile, in the embodiment, before the terminal displays the received information, the terminal automatically detects the contact person attribute corresponding to the telephone number in the information, so that the information including the contact person attribute is displayed, and the effect that a user can clearly know which friend dials the own telephone without performing any operation is achieved, and the use is extremely simple and convenient.
EXAMPLE III
Referring to fig. 3, a flowchart of a method of displaying information according to a third embodiment of the present invention is shown, where the method of displaying information can be used in a terminal such as a mobile phone, a tablet computer, or a desktop computer. The difference between this embodiment and the above-mentioned embodiment is that the terminal displays the received information first, and then the user inputs the selection signal and then queries the contact attribute corresponding to the phone number. The information display method may include:
step 301, detecting whether the content of the received information contains a telephone number;
when a friend of a user calls himself, but the mobile phone is powered off or does not have a signal and the other party can not be received, the operator server can send information to the terminal, and therefore the user is reminded of missed call information. In order to know which friend the other party is, the terminal can detect whether the content of the received information contains the telephone number after receiving the information.
Step 302, if the detection result is that the content of the information contains a telephone number, detecting whether a query instruction for querying the contact person attribute corresponding to the telephone number is received;
since the user usually only memorizes the telephone numbers of friends very close to the user and does not memorize the telephone numbers of all friends stored in the address book, even if the content of the information includes the telephone number of the other party, the user cannot necessarily know which friend has an incoming call to the user according to the telephone number, so that after the terminal detects that the content of the information includes the telephone number, the terminal can display the received information and detect whether an inquiry instruction for the contact attribute corresponding to the inquiry telephone number is received.
The query instruction for querying the contact attribute corresponding to the phone number may be a click signal applied by the user to the phone number displayed on the terminal, or may also be a query signal input by the user through a selection menu for querying a contact name corresponding to the phone number, which is not limited in this embodiment.
It should be added that the terminal may display the received information first, and then detect whether the content of the information includes the phone number, or may detect whether the content of the information includes the phone number first, and then display the received information, which is not limited in this embodiment.
Step 303, if the detection result is that a query instruction for querying the contact attribute corresponding to the telephone number is received, executing a step of querying the contact attribute corresponding to the telephone number;
if the terminal detects a query instruction for querying the contact attribute corresponding to the telephone number, the terminal may query the contact attribute corresponding to the telephone number in order to obtain the contact attribute corresponding to the telephone number.
For example, taking the example that the query instruction for querying the contact name corresponding to the phone number is the click signal of the user, after the terminal displays the information that the content is' 8:15 min 7654321 to call you, the user clicks the phone number displayed on the terminal, so that the terminal can detect the query instruction at this time, and thereby begin to query the contact attribute corresponding to the phone number.
In practical implementation, when the contact attribute includes a contact name, the query mode of the terminal for querying the contact attribute corresponding to the phone number may include any one of the following modes:
firstly, inquiring the contact person attribute corresponding to the telephone number in a locally stored address book;
secondly, inquiring the contact person attribute corresponding to the telephone number in an address book stored on a remote server;
thirdly, a contact name corresponding to the phone number is inquired in the address book stored locally, and when the corresponding contact name is not inquired, the contact name corresponding to the phone number is continuously inquired in the address book stored on the remote server.
When the contact attribute includes a number attribution, the query mode of the terminal for querying the contact attribute corresponding to the phone number may include:
and inquiring a number attribution corresponding to the telephone number in a database which is locally stored and used for storing the number attribution.
When the contact attribute includes the operator information, the query mode of the terminal for querying the contact attribute corresponding to the phone number may include:
and inquiring operator information corresponding to the telephone number according to the number segment of the telephone number.
It should be added that this step is the same as the query method of the terminal querying the contact attribute corresponding to the phone number in the second embodiment, and please refer to step 202 for detailed technical details, which will not be described herein again.
And step 304, displaying the inquired contact person attribute corresponding to the telephone number.
After the terminal detects the contact attribute corresponding to the phone number, the terminal may display the queried contact attribute corresponding to the phone number.
The display modes of the terminal for displaying the contact person attribute corresponding to the inquired telephone number may include at least the following 4 types.
The first may include:
firstly, replacing a telephone number contained in the content of the information with a contact person attribute corresponding to the inquired telephone number;
before the terminal displays the queried contact attribute corresponding to the phone number, the terminal may replace the phone number included in the content of the information with the queried contact attribute corresponding to the phone number.
Second, the information after the replaced content is displayed.
After the terminal replaces the telephone number in the information with the contact person attribute, the terminal can display the information after the content is replaced, so that a user can clearly know which friend dials the own telephone according to the contact person attribute displayed by the terminal.
The second may include:
firstly, adding the inquired contact person attribute corresponding to the telephone number before or after the telephone number contained in the content of the information;
alternatively, before the terminal displays the queried contact attribute corresponding to the phone number, the terminal may further add the queried contact attribute corresponding to the phone number before or after the phone number included in the content of the information.
Second, the information to which the content is added is displayed.
The terminal may display the information after the content is added before or after the terminal adds the contact attribute to the phone number.
The third may include:
and displaying the inquired contact person attribute corresponding to the telephone number at a preset position in the information display area when the information is displayed.
As still another alternative, the terminal may display the searched contact attribute corresponding to the phone number at a predetermined position in a display area of the information when displaying the information.
The fourth may include:
after the information is displayed, a piece of information including the searched contact attribute corresponding to the telephone number is redisplayed.
As still another alternative, the terminal may display the received information and, after displaying the information, redisplay a piece of information including the queried contact attribute corresponding to the phone number.
The information that includes the contact attribute corresponding to the phone number and is redisplayed by the terminal may be the phone number replaced with the contact attribute, or may be conditional contact attributes before or after the phone number, which is specifically referred to in the first and second embodiments and will not be described herein again.
It should be added that the display mode of the terminal displaying the contact attribute corresponding to the phone number is the same as the display mode in the second embodiment, please refer to step 203 specifically, which is not described herein again.
In summary, in the information display method provided in this embodiment, when it is detected that the content of the received information includes the phone number, the contact attribute corresponding to the phone number is queried, so as to display the queried contact attribute corresponding to the phone number; the problem that after the terminal displays the reminding information, a user still cannot know which friend sends a call to the user, and the practicability is low is solved; the effect that the terminal can directly display the contact person attribute corresponding to the telephone number is achieved, and therefore the user can conveniently acquire the information of the opposite party. Meanwhile, in this embodiment, after detecting that the information content includes the phone number, the terminal detects whether a selection signal acting on the phone number is received, that is, whether an inquiry request signal for inquiring the contact attribute corresponding to the phone number in the information is received, and when receiving the inquiry request, inquires the contact attribute corresponding to the phone number, so that the information including the contact attribute is displayed, and the user can display the content according to the terminal. The effect of knowing exactly which friend dialed his phone is.
Example four
Referring to fig. 4, a block diagram of an information display apparatus according to a fourth embodiment of the present invention is shown, where the information display apparatus may be implemented as a part or all of a terminal, and the information display apparatus may include: a number detection module 410, an information inquiry module 420 and an information display module 430;
the number detection module 410 is configured to detect whether the content of the received information includes a phone number;
the information query module 420 is configured to query a contact attribute corresponding to a phone number when a detection result of the number detection module 410 is that the content of the information includes the phone number;
the information display module 430 is configured to display the contact attribute corresponding to the phone number, which is queried by the information query module 420.
In summary, the information display apparatus provided in this embodiment queries, when it is detected that the content of the received information includes a phone number, the contact attribute corresponding to the phone number, so as to display the queried contact attribute corresponding to the phone number; the problem that after the terminal displays the reminding information, a user still cannot know which friend sends a call to the user, and the practicability is low is solved; the effect that the terminal can directly display the contact person attribute corresponding to the telephone number is achieved, and therefore the user can conveniently acquire the information of the opposite party.
EXAMPLE five
An embodiment of the present invention provides an information display apparatus, where the information display apparatus may be implemented as a part or all of a terminal, and the information display apparatus may include: a number detection module 410, an information inquiry module 420 and an information display module 430;
the number detection module 410 is configured to detect whether the content of the received information includes a phone number;
the information query module 420 is configured to query a contact attribute corresponding to a phone number when a detection result of the number detection module 410 is that the content of the information includes the phone number;
the information display module 430 is configured to display the contact attribute corresponding to the phone number, which is queried by the information query module 420.
Preferably, referring to fig. 5, the information display module 430 includes: an information replacing unit 431, a first display unit 432, an information adding unit 433, a second display unit 434, a third display unit 435, a fourth display unit 436;
the information replacing unit 431 is configured to replace a phone number included in the content of the information with the queried contact attribute corresponding to the phone number;
the first display unit 432 is configured to display the information of the content replaced by the information replacing unit 431;
the information adding unit 433 is configured to add the queried contact attribute corresponding to the phone number before or after the phone number included in the content of the information;
the second display unit 434 is configured to display the information after the content is added by the information adding unit 433;
the third display unit 435 is configured to display the queried contact attribute corresponding to the phone number at a predetermined position in a display area of the information when the information is displayed;
the fourth display unit 436 is configured to redisplay a piece of information including the queried contact attribute corresponding to the phone number after displaying the information.
Preferably, the information is any one of a short message SMS, an instant messaging program IM, an email, a microblog and a webpage;
the contact attributes include at least one of contact name, number attribution, and operator information.
Preferably, referring to fig. 6, the information query module 420 includes: at least one of the first, second and third lookup units 421, 422 and 423;
the first query unit 421 is configured to query, when the contact attribute includes a contact name, a contact attribute corresponding to the phone number in an address book stored locally; or when the contact person attribute comprises a contact person name, inquiring the contact person attribute corresponding to the telephone number in an address book stored on a remote server; or, when the contact attribute comprises a contact name, inquiring the contact name corresponding to the telephone number in a locally stored address book, and when the corresponding contact name is not inquired, continuously inquiring the contact name corresponding to the telephone number in the address book stored on the remote server;
the second querying unit 422 is configured to query, when the contact attribute includes a number attribution, a number attribution corresponding to the phone number in a database for storing number attributions, where the database is locally stored;
the third querying unit 423 is configured to query, when the contact attribute includes carrier information, carrier information corresponding to the telephone number according to the number segment of the telephone number.
In summary, the information display apparatus provided in this embodiment queries, when it is detected that the content of the received information includes a phone number, the contact attribute corresponding to the phone number, so as to display the queried contact attribute corresponding to the phone number; the problem that after the terminal displays the reminding information, a user still cannot know which friend sends a call to the user, and the practicability is low is solved; the effect that the terminal can directly display the contact person attribute corresponding to the telephone number is achieved, and therefore the user can conveniently acquire the information of the opposite party. Meanwhile, in the embodiment, before the terminal displays the received information, the terminal automatically detects the contact person attribute corresponding to the telephone number in the information, so that the information including the contact person attribute is displayed, and the effect that a user can clearly know which friend dials the own telephone without performing any operation is achieved, and the use is extremely simple and convenient.
EXAMPLE six
The sixth embodiment provides an information display apparatus, which may be implemented as a part or all of a terminal, and the information display apparatus may include: a number detection module 410, an information inquiry module 420 and an information display module 430;
the number detection module 410 is configured to detect whether the content of the received information includes a phone number;
the information query module 420 is configured to query a contact attribute corresponding to a phone number when a detection result of the number detection module 410 is that the content of the information includes the phone number;
the information display module 430 is configured to display the contact attribute corresponding to the phone number, which is queried by the information query module 420.
Preferably, referring to fig. 7, the apparatus may further include: an instruction detection module 440;
the instruction detection module 440 is configured to detect whether a query instruction for querying an attribute of a contact corresponding to the phone number is received;
the information query module 420 is configured to, when the detection result of the instruction detection module 440 is that a query instruction for querying the contact attribute corresponding to the phone number is received, perform the step of querying the contact attribute corresponding to the phone number.
Preferably, the information display module 430 includes: an information replacing unit 431, a first display unit 432, an information adding unit 433, a second display unit 434, a third display unit 435, a fourth display unit 436;
an information replacing unit 431, configured to replace a phone number included in the content of the information with the queried contact attribute corresponding to the phone number;
a first display unit 432 for displaying the information of which the content is replaced by the information replacement unit 431;
an information adding unit 433, configured to add the queried contact attribute corresponding to the phone number before or after the phone number included in the content of the information;
a second display unit 434, configured to display the information to which the content is added by the information adding unit 433;
a third display unit 435, configured to display the queried contact attribute corresponding to the phone number at a predetermined location in a display area of the information when the information is displayed;
a fourth display unit 436, configured to redisplay a piece of information including the queried contact attribute corresponding to the phone number after displaying the information.
Preferably, the information is any one of a short message SMS, an instant messaging program IM, an email, a microblog and a webpage;
the contact attributes include at least one of contact name, number attribution, and operator information.
Preferably, the information query module 420 includes: the method comprises the following steps: at least one of the first, second and third lookup units 421, 422 and 423;
the first query unit 421 is configured to query, when the contact attribute includes a contact name, a contact attribute corresponding to the phone number in an address book stored locally; or when the contact person attribute comprises a contact person name, inquiring the contact person attribute corresponding to the telephone number in an address book stored on a remote server; or, when the contact attribute comprises a contact name, inquiring the contact name corresponding to the telephone number in a locally stored address book, and when the corresponding contact name is not inquired, continuously inquiring the contact name corresponding to the telephone number in the address book stored on the remote server;
the second querying unit 422 is configured to query, when the contact attribute includes a number attribution, a number attribution corresponding to the phone number in a database for storing number attributions, where the database is locally stored;
the third querying unit 423 is configured to query, when the contact attribute includes operator information, operator information corresponding to the phone number according to the number segment of the phone number.
In summary, the information display apparatus provided in this embodiment queries, when it is detected that the content of the received information includes a phone number, the contact attribute corresponding to the phone number, so as to display the queried contact attribute corresponding to the phone number; the problem that after the terminal displays the reminding information, a user still cannot know which friend sends a call to the user, and the practicability is low is solved; the effect that the terminal can directly display the contact person attribute corresponding to the telephone number is achieved, and therefore the user can conveniently acquire the information of the opposite party. Meanwhile, in this embodiment, after detecting that the information content includes the phone number, the terminal detects whether a selection signal acting on the phone number is received, that is, whether an inquiry request signal for inquiring the contact attribute corresponding to the phone number in the information is received, and when receiving the inquiry request, inquires the contact attribute corresponding to the phone number, so that the information including the contact attribute is displayed, and the user can display the content according to the terminal. The effect of knowing exactly which friend dialed his phone is.
It should be noted that: in the information display device provided in the above embodiment, when displaying information, only the division of the above functional modules is taken as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the above described functions. In addition, the information display device and the method embodiment of the information display method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiment and are not described herein again.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
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.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.