CN105721680B - A kind of processing method and processing device of short message session - Google Patents

A kind of processing method and processing device of short message session Download PDF

Info

Publication number
CN105721680B
CN105721680B CN201610040171.6A CN201610040171A CN105721680B CN 105721680 B CN105721680 B CN 105721680B CN 201610040171 A CN201610040171 A CN 201610040171A CN 105721680 B CN105721680 B CN 105721680B
Authority
CN
China
Prior art keywords
session
note number
note
short message
determining
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.)
Active
Application number
CN201610040171.6A
Other languages
Chinese (zh)
Other versions
CN105721680A (en
Inventor
王双
张艳凤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN201610040171.6A priority Critical patent/CN105721680B/en
Publication of CN105721680A publication Critical patent/CN105721680A/en
Application granted granted Critical
Publication of CN105721680B publication Critical patent/CN105721680B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72436User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for text messaging, e.g. short messaging services [SMS] or e-mails
    • 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]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Human Computer Interaction (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The present invention relates to mobile communication field more particularly to a kind of processing method and processing devices of short message session.This method is, when the prefix of note number is specific field, using the preset first accurate matching rule, the session identification in note number and note data library is matched, and when determining that matching is failed, creates a new session;For above-mentioned new session, use the preset second accurate matching rule, the identification of contacts by note number and locally saved matches, obtain corresponding contact information, and it is shown in the interface of above-mentioned new session, in this way, it can will be distinctly displayed in different sessions for note number and regular handset number that prefix is specific field, and the guarantee of the display at session interface is corresponding correct contact information, transmitting-receiving operation pointedly is carried out to the number that regular handset number and prefix are specific field in session interface convenient for user, guarantee the correctness of short message receiving-transmitting operation.

Description

A kind of processing method and processing device of short message session
Technical field
The present invention relates to mobile communication field more particularly to a kind of processing method and processing devices of short message session.
Background technique
Currently, Fetion client can be installed in Android (Android) mobile phone of the mobile standard of support, pass through Fetion visitor Family end and other mobile phone terminals carry out the transmitting-receiving operation of short message, and by the note number that Fetion client is sent all be with 12520 beginnings, i.e., note number is 12520+ regular handset number.
It in the prior art, is rear 11 progress based on note number in the design that short message is applied in Android platform It is matched, in this way, can be considered for example, note number is 1252013905320000 and note number is 13905320000 It is the same contact person, is stored in the same session, the short message session in Android platform is described below down, refering to fig. 1 It is shown:
In short message application in Android platform, the data at short message session list interface are by short message enquiry data Thread (threads) table obtains in library, the data line in the corresponding threads table of each session entry (Item), The corresponding different identification of contacts (recipient_ids) of the mark (_ id) of every a line in threads table, and Recipient_ids field be again in canonical address (canonical_addresses) table _ id be it is one-to-one, Each of middle canonical_addresses table _ id corresponds to a different address field again, wherein address Field is exactly note number, that is to say, that the corresponding address field of each session.
Also, in information (Mms) upper layer application, identification of contacts caches (RecipientIdCache.java) file In there is a Map<Long, String>type cached variable mCache to be specifically used to save canonical_addresses table In _ corresponding relationship of id and address (address) field, there are also another contact person (Contact.java) file be for Save contact information, such as the contents such as number, name, label, stickers of contact person, each contact corresponding one A caching for being used to save contact example, mNumber variable therein are that uniquely, corresponding one of each Contact is not With contact number (mNumber), and each mNumber be again and RecipientIdCache cache in number It (number) is one-to-one.
In this way, whether when sending or receiving short message it is existing right to be gone in threads table to inquire first according to note number The session identification (threadId) answered, and the judgement of threadId is obtained according to inquiry canonical_addresses table , according to 11 matching rules after note number, according in the canonical_addresses table to match with note number Address Field Inquiry is corresponding _ id, such note number 13905320000 and 1252013905320000 is due to latter 11 Be consistent, so will be considered that is identical _ id, would not go again creation it is new _ id, so also would not be in threads table The new threadId of middle creation, therefore, they can be shown in the same session in short message session list.
It can be seen that under the prior art, with Fetion number and regular handset the number meeting when receiving and sending messages of 12520 beginnings It is stored in the same session, in this way, user does not just know that the corresponding address of this session is 1252013905320000 on earth Or 13905320000, and if show to be 13905320000 in the interface of short message session at this time, but really save Address is the number of 12520 beginnings, then editing short message carries out being possible to send when sending operation in this session interface Failure or other side do not receive, this is because addressee address be 1252013905320000 rather than 13905320000, still, under the prior art, there are no corresponding solutions.
Summary of the invention
The embodiment of the present invention provides a kind of processing method and processing device of short message session, to solve in the prior art in short message meeting Fetion number and common number cannot be distinguished in words, and then may cause the problem of short message sends or receives unsuccessfully.
Specific technical solution provided in an embodiment of the present invention is as follows:
A kind of processing method of short message session, comprising:
When receiving a short message, the note number of said short message is obtained, and in the prefix for determining said short message number When being specific field, using the preset first accurate matching rule, by the session mark in said short message number and note data library Knowledge is matched, and when determining that matching is failed, creates a new session;
For above-mentioned new session, using the preset second accurate matching rule, by said short message number and locally save Identification of contacts is matched, if successful match, directly acquires the corresponding contact information of said short message number, and above-mentioned It is shown in the interface of new session, if matching is failed, by said short message number and preset information, as said short message number Corresponding contact information is shown in the interface of above-mentioned new session.
In the embodiment of the present invention, when receiving a short message, the note number of said short message is obtained, and above-mentioned determining When the prefix of note number is specific field, using the preset first accurate matching rule, by said short message number and short message number It is matched according to the session identification in library, when determining that matching is failed, creates a new session;For above-mentioned new session, make With above-mentioned preset second accurate matching rule, the identification of contacts by said short message number and locally saved is matched, if Successful match then directly acquires the corresponding contact information of said short message number, and shows in the interface of above-mentioned new session, if Matching is failed, then by said short message number and preset information, as the corresponding contact information of said short message number, upper It states in the interface of new session and shows, in this way, being the note number of specific field for prefix, respectively using the first accurate matching rule Then with the second accurate matching rule, to complete the display of the creation of session and the contact information at session interface, before can will being Sew and is distinctly displayed in different sessions for the note number and regular handset number of specific field, and the display at session interface Guarantee to be corresponding correct contact information, convenient for user pointedly to regular handset number and prefix in session interface Transmitting-receiving operation is carried out for the number of specific field, guarantees the correctness of short message receiving-transmitting operation.
Preferably, further comprising:
It, will be upper using the preset first accurate matching rule when determining the prefix of said short message number is specific field The session identification stated in note number and note data library is matched, when determining successful match, directly from note data library The corresponding session of middle acquisition said short message number.
Preferably, above-mentioned preset first accurate matching rule is, since the first bit digital of said short message number with And successively matched since the first bit digital of above-mentioned session identification, until terminating;
Above-mentioned preset second accurate matching rule is, since the first bit digital of said short message number and from above-mentioned First bit digital of identification of contacts starts successively to be matched, until terminating.
Preferably, further comprising:
When the prefix for determining said short message number is not specific field, digit matching rule is set after use, it will be above-mentioned Session identification in note number and note data library is matched, when determining successful match, directly from note data library It obtains the corresponding session of said short message number and otherwise creates a new session.
Preferably, further comprising:
For when the prefix for determining note number is not specific field, said short message directly is obtained from note data library The corresponding session of number, sets digit matching rule after use, the identification of contacts by said short message number and locally saved into Row matching, if successful match, directly acquires the corresponding contact information of said short message number, and in the interface of above-mentioned session It has been shown that, if matching is failed, by said short message number and preset information, as the corresponding contact person's letter of said short message number Breath, shows in the interface of above-mentioned session;
For when the prefix for determining note number is not specific field, the new session of creation sets digit after use With rule, the identification of contacts by said short message number and locally saved is matched, if successful match, is directly acquired above-mentioned The corresponding contact information of note number, and shown in the interface of above-mentioned session, if matching is failed, by said short message number Code and preset information are shown in the interface of above-mentioned session as the corresponding contact information of said short message number.
A kind of processing unit of short message session, comprising:
Session creating unit, for obtaining the note number of said short message, and in determination when receiving a short message When the prefix for stating note number is specific field, using the preset first accurate matching rule, by said short message number and short message Session identification in database is matched, and when determining that matching is failed, creates a new session;
Session interface display unit, will be above-mentioned using the preset second accurate matching rule for being directed to above-mentioned new session Note number and the identification of contacts locally saved are matched, if successful match, it is corresponding to directly acquire said short message number Contact information, and shown in the interface of above-mentioned new session, if matching is failed, by said short message number and preset Information is shown in the interface of above-mentioned new session as the corresponding contact information of said short message number.
In the embodiment of the present invention, when receiving a short message, the note number of said short message is obtained, and above-mentioned determining When the prefix of note number is specific field, using the preset first accurate matching rule, by said short message number and short message number It is matched according to the session identification in library, when determining that matching is failed, creates a new session;For above-mentioned new session, make With above-mentioned preset second accurate matching rule, the identification of contacts by said short message number and locally saved is matched, if Successful match then directly acquires the corresponding contact information of said short message number, and shows in the interface of above-mentioned new session, if Matching is failed, then by said short message number and preset information, as the corresponding contact information of said short message number, upper It states in the interface of new session and shows, in this way, being the note number of specific field for prefix, respectively using the first accurate matching rule Then with the second accurate matching rule, to complete the display of the creation of session and the contact information at session interface, before can will being Sew and is distinctly displayed in different sessions for the note number and regular handset number of specific field, and the display at session interface Guarantee to be corresponding correct contact information, convenient for user pointedly to regular handset number and prefix in session interface Transmitting-receiving operation is carried out for the number of specific field, guarantees the correctness of short message receiving-transmitting operation.
Preferably, further comprising, acquisition conversation unit is used for:
It, will be upper using the preset first accurate matching rule when determining the prefix of said short message number is specific field The session identification stated in note number and note data library is matched, when determining successful match, directly from note data library The corresponding session of middle acquisition said short message number.
Preferably, above-mentioned preset first accurate matching rule is, since the first bit digital of said short message number with And successively matched since the first bit digital of above-mentioned session identification, until terminating;
Above-mentioned preset second accurate matching rule is, since the first bit digital of said short message number and from above-mentioned First bit digital of identification of contacts starts successively to be matched, until terminating.
Preferably, acquisition conversation unit is further used for:
When the prefix for determining said short message number is not specific field, digit matching rule is set after use, it will be above-mentioned Session identification in note number and note data library is matched, when determining successful match, directly from note data library Obtain the corresponding session of said short message number;
Session creating unit is further used for: when the prefix for determining said short message number is not specific field, after use Digit matching rule is set, the session identification in said short message number and note data library is matched, is matched not when determining When success, a new session is created.
Preferably, session interface display unit is further used for:
For when the prefix for determining note number is not specific field, said short message directly is obtained from note data library The corresponding session of number, sets digit matching rule after use, the identification of contacts by said short message number and locally saved into Row matching, if successful match, directly acquires the corresponding contact information of said short message number, and in the interface of above-mentioned session It has been shown that, if matching is failed, by said short message number and preset information, as the corresponding contact person's letter of said short message number Breath, shows in the interface of above-mentioned session;
For when the prefix for determining note number is not specific field, the new session of creation sets digit after use With rule, the identification of contacts by said short message number and locally saved is matched, if successful match, is directly acquired above-mentioned The corresponding contact information of note number, and shown in the interface of above-mentioned session, if matching is failed, by said short message number Code and preset information are shown in the interface of above-mentioned session as the corresponding contact information of said short message number.
Detailed description of the invention
Fig. 1 is the relation schematic diagram in note data library and Mms application in the prior art;
Fig. 2 is the general introduction flow chart of the processing method of short message session in the embodiment of the present invention;
Fig. 3 is the detail flowchart of acquisition conversation method in the embodiment of the present invention;
Fig. 4 is session interface display detail flowchart in the embodiment of the present invention;
Fig. 5 is the structural schematic diagram of the processing unit of short message session in the embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, is not whole embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
In order to solve that Fetion number and common number cannot be distinguished in short message session in the prior art, and then may cause The problem of short message sends or receives unsuccessfully in the embodiment of the present invention, when the prefix for determining note number is specific field, uses Session identification in accurate matching rule and note data library is matched, and the corresponding session of said short message number is obtained, and And using accurate matching rule, and the identification of contacts locally saved is matched, and obtains the corresponding connection of said short message number People's information.
The present invention program is described in detail below by specific embodiment, certainly, the present invention is not limited to following realities Apply example.
As shown in fig.2, the detailed process of the processing method of short message session is as follows in the embodiment of the present invention:
Step 100: when handling a short message, obtaining the note number of said short message, and determining said short message number Prefix when being specific field, will be in said short message number and note data library using the preset first accurate matching rule Session identification is matched, and when determining that matching is failed, creates a new session.
Wherein, handling a short message particularly may be divided into two kinds of situations:
The first situation: to receive a short message, then the note number obtained is sender's number.
Second situation: to send a short message, then the note number obtained is addressee's number.
Wherein, the preset first accurate matching rule is, since the first bit digital of note number and from session mark The first bit digital known starts successively to be matched, until terminating, when there is one-bit digital not identical, then it fails to match, works as short message When number and completely the same session identification, successful match is just determined.
When executing step 100, specifically include:
Firstly, obtaining the note number of said short message when handling a short message.
Then, whether the prefix for judging said short message number is specific field, for example, specific field is 12520, i.e. Fetion The prefix of number, will using the preset first accurate matching rule when determining the prefix of said short message number is specific field Session identification in said short message number and note data library is matched.
In practice, in the short message application in Android platform, each session Item is corresponded in note data library Data line in threads table, in threads table every a line _ the corresponding different recipient_ids of id, and Recipient_ids be again in canonical_addresses table _ id is one-to-one, wherein canonical_ Each of addresses table _ id corresponds to a different address field again, that is to say, that each session corresponding one A address field, wherein saving in address field is number.
In this way, being using the first essence when being matched the session identification in said short message number and note data library Address field in true matching rule and canonical_addresses table is matched.
Finally, creating a new session when determining that matching is failed.
When determining that matching is failed, one _ id and _ id and short message number are created in canonical_addresses table The corresponding relationship of code, then create a new session mark accordingly from threads table, that is, create a new session.
Further, when determining successful match, the corresponding meeting of said short message number is obtained directly from note data library Words.
If it is determined that successful match, then explanation has had the corresponding session of said short message number in threads table, so that it may Directly to obtain corresponding session from threads table, without resettling new session.
Further, digit matching rule are set when the prefix for determining said short message number is not specific field, after use Then, the session identification in said short message number and note data library is matched, when determining successful match, directly from short message The corresponding session of said short message number is obtained in database otherwise creates a new session.
Wherein, in above-mentioned rear setting digit matching rule, the rear digit that sets is preferably 11 latter, that is, existing hand Machine number length.
In this way, the session that note number prefix is specific field is obtained, for short message number using the first accurate matching rule When the prefix of code is not specific field, digit matching rule is set after use, obtains corresponding session, so that it may by Fetion number It is shown in different sessions with the differentiation of common number.
Step 110: above-mentioned new session is directed to, using above-mentioned preset second accurate matching rule, by said short message number The identification of contacts locally saved is matched, if successful match, directly acquires the corresponding contact person of said short message number Information, and shown in the interface of above-mentioned new session, if matching is failed, said short message number and preset information are made For the corresponding contact information of said short message number, shown in the interface of above-mentioned new session.
Wherein, above-mentioned preset second accurate matching rule is, since the first bit digital of said short message number and It is successively matched since the first bit digital of above-mentioned identification of contacts, until terminating.
When executing step 110, specifically include:
Firstly, above-mentioned new session is directed to, using above-mentioned preset second accurate matching rule, by said short message number and this The identification of contacts that ground saves is matched.
In practice, when conversating interface display and the corresponding caching contact person's cached variable of contact file (mContactsHash) address in is matched, and when successful match, obtains contact example, and at session interface Middle display, when matching failed, one new contact example of creation is simultaneously stored in mContactsHash, and by creation New contact example is shown in session interface, wherein contact file is the database of contact information, including each Number, head portrait, name of contact person etc., for example, address list in mobile phone terminal.
Prefix for note number is the session of specific field, in caching corresponding with contact file When address in mContactsHash is matched, using the second accurate matching rule, in this way, in session interface display When, can correctly be shown, user also can in session interface pointedly to common number and Fetion number into Row transmitting-receiving operation.
Then, however, it is determined that successful match then directly acquires the corresponding contact information of said short message number, and above-mentioned new It is shown in the interface of session, however, it is determined that matching is failed, then by said short message number and preset information, as said short message number The corresponding contact information of code, shows in the interface of above-mentioned new session.
That is, what is shown in above-mentioned new session interface is just the local contact person saved if successful match Information, user can learn the information such as the number, head portrait, name of corresponding contact person in the new session;If matching not at Function, what is shown in above-mentioned new session interface is just note number and preset information, wherein preset information includes default Head portrait etc., in this way, user learns the number of corresponding contact person, head portrait of default etc. in the new session.
Further, it is not the corresponding session of specific field for the prefix of note number, is included in determining note number Prefix when not being specific field, the new meeting of said short message number corresponding session and creation is obtained directly from note data library Words, set digit matching rule after use, the identification of contacts by said short message number and locally saved matches, if matching Success, then directly acquire the corresponding contact information of said short message number, and show in the interface of above-mentioned session, if matching is not Success, then by said short message number and preset information, as the corresponding contact information of said short message number, in above-mentioned session Interface in show.
Short message Dialog processing process can be divided into the process of acquisition conversation process and session interface display, use one below Specific application scenarios introduce the two processes respectively.
As shown in fig.3, the detailed process of acquisition conversation is as follows.
Step 200: when handling a short message, note number is obtained, two kinds of situations are specifically divided into:
The first situation: when sending short message, the note number of acquisition is addressee's number.
Second situation: when receiving short message, the note number of acquisition is sender's number.
Step 201: judging whether note number prefix is specific field, if so, thening follow the steps 202, otherwise, execute Step 203.
Step 202: the first accurate matching rule is used, by session identification progress in note number and note data library Match.
Step 203: digit matching rule is set after use, by session identification progress in note number and note data library Match.
Wherein, digit is set as current phone number digit afterwards, for example, phone number digit is 11 at present, then It is rear 11 matching rules with rule.
Step 204: judging whether matching succeeds, if so, thening follow the steps 206, otherwise, execute step 205.
Step 205: one new session of creation specifically includes:
In the corresponding relationship of canonical_addresses table one _ id of creation and _ id and note number, then from A new session mark is created in threads table accordingly.
Step 206: corresponding session is directly obtained from note data library.
For method shown in Fig. 3, each note number can correspond to a session, for example, distinguishing for note number For 13905320000 and 1252013905320000, two different sessions can be corresponded to,
As shown in fig.4, the detailed process of session interface display is as follows.
Step 300: obtaining a session.
Step 301: whether the corresponding note number prefix of session is specific field, if so, 302 are thened follow the steps, otherwise, Execute step 303.
Step 302: the identification of contacts using the second accurate matching rule and locally saved is matched.
Wherein, the identification of contacts locally saved, for example, phone number in cell phone address book database, in practice, It matches each time and is not directly to be matched in address list, but matched in address list caching.
Step 303: the identification of contacts for setting digit matching rule after use and locally saving is matched.
Step 304: judging whether matching succeeds, if so, thening follow the steps 306, otherwise, execute step 305.
Step 305: by note number and preset information, as corresponding contact information, and in the interface of session Display.
For example, presupposed information only has an image, then what is shown in session interface is only note number and a default Head portrait.
Step 306: directly acquiring corresponding contact information, and shown in the interface of session.
Based on the above embodiment, as shown in fig.5, in the embodiment of the present invention, the processing unit of short message session is specific to wrap It includes:
Session creating unit 40, for obtaining the note number of said short message, and in determination when receiving a short message When the prefix of said short message number is specific field, using the preset first accurate matching rule, by said short message number and short Session identification in telecommunications databases is matched, and when determining that matching is failed, creates a new session;
Session interface display unit 41, will be upper using the preset second accurate matching rule for being directed to above-mentioned new session The identification of contacts stating note number and locally saving is matched, if successful match, directly acquires said short message number pair The contact information answered, and shown in the interface of above-mentioned new session, if matching is failed, by said short message number and preset Information shown in the interface of above-mentioned new session as the corresponding contact information of said short message number.
Preferably, further comprising, acquisition conversation unit 42 is used for:
It, will be upper using the preset first accurate matching rule when determining the prefix of said short message number is specific field The session identification stated in note number and note data library is matched, when determining successful match, directly from note data library The corresponding session of middle acquisition said short message number.
Preferably, above-mentioned preset first accurate matching rule is, since the first bit digital of said short message number with And successively matched since the first bit digital of above-mentioned session identification, until terminating;
Above-mentioned preset second accurate matching rule is, since the first bit digital of said short message number and from above-mentioned First bit digital of identification of contacts starts successively to be matched, until terminating.
Preferably, acquisition conversation unit 42 is further used for:
When the prefix for determining said short message number is not specific field, digit matching rule is set after use, it will be above-mentioned Session identification in note number and note data library is matched, when determining successful match, directly from note data library Obtain the corresponding session of said short message number;
Session creating unit 40, is further used for: when the prefix for determining said short message number is not specific field, using Digit matching rule is set afterwards, the session identification in said short message number and note data library is matched, and is matched when determining When failed, a new session is created.
Preferably, session interface display unit 41 is further used for:
For when the prefix for determining note number is not specific field, said short message directly is obtained from note data library The corresponding session of number, sets digit matching rule after use, the identification of contacts by said short message number and locally saved into Row matching, if successful match, directly acquires the corresponding contact information of said short message number, and in the interface of above-mentioned session It has been shown that, if matching is failed, by said short message number and preset information, as the corresponding contact person's letter of said short message number Breath, shows in the interface of above-mentioned session;
For when the prefix for determining note number is not specific field, the new session of creation sets digit after use With rule, the identification of contacts by said short message number and locally saved is matched, if successful match, is directly acquired above-mentioned The corresponding contact information of note number, and shown in the interface of above-mentioned session, if matching is failed, by said short message number Code and preset information are shown in the interface of above-mentioned session as the corresponding contact information of said short message number.
In conclusion, when receiving a short message, the note number of said short message is obtained in the embodiment of the present invention, and When determining the prefix of said short message number is specific field, using the preset first accurate matching rule, by said short message number Session identification in code and note data library is matched, and when determining that matching is failed, creates a new session;For above-mentioned New session, using above-mentioned preset second accurate matching rule, the identification of contacts that by said short message number and locally saves into Row matching, if successful match, directly acquires the corresponding contact information of said short message number, and at the interface of above-mentioned new session Middle display, if matching is failed, by said short message number and preset information, as the corresponding contact person of said short message number Information is shown in the interface of above-mentioned new session, in this way, being the note number of specific field for prefix, uses first respectively Accurate matching rule and the second accurate matching rule, to complete the display of the creation of session and the contact information at session interface, It can will be distinctly displayed in different sessions for note number and regular handset number that prefix is specific field, and session circle The guarantee of the display in face is corresponding correct contact information, convenient for user pointedly to regular handset in session interface Number and prefix are that the number of specific field carries out transmitting-receiving operation, guarantee the correctness of short message receiving-transmitting operation.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, those skilled in the art can carry out various modification and variations without departing from this hair to the embodiment of the present invention The spirit and scope of bright embodiment.In this way, if these modifications and variations of the embodiment of the present invention belong to the claims in the present invention And its within the scope of equivalent technologies, then the present invention is also intended to include these modifications and variations.

Claims (10)

1. a kind of processing method of short message session characterized by comprising
When handling a short message, the note number of the short message is obtained, and determining that the prefix of the note number is specified When field, using the preset first accurate matching rule, the session identification in the note number and note data library is carried out Matching creates a new session when determining that matching is failed;
For the new session, using the preset second accurate matching rule, the connection that by the note number and locally saves People's mark matches, if successful match, directly acquires the corresponding contact information of the note number, and in the new meeting It is shown in the interface of words, it is corresponding as the note number by the note number and preset information if matching is failed Contact information, shown in the interface of the new session.
2. the method as described in claim 1, which is characterized in that further comprise:
It, will be described short using the preset first accurate matching rule when determining the prefix of the note number is specific field Session identification in signal code and note data library is matched, and when determining successful match, is directly obtained from note data library Take the corresponding session of the note number.
3. method according to claim 1 or 2, which is characterized in that the preset first accurate matching rule is, from described First bit digital of note number starts and is successively matched since the first bit digital of the session identification, until knot Beam;
The preset second accurate matching rule is, since the first bit digital of the note number and from the connection First bit digital of people's mark starts successively to match, until terminating.
4. the method as described in claim 1, which is characterized in that further comprise:
When the prefix for determining the note number is not specific field, digit matching rule is set after use, by the short message Session identification in number and note data library is matched, and when determining successful match, is directly obtained from note data library Otherwise the corresponding session of the note number creates a new session.
5. method as claimed in claim 4, which is characterized in that further comprise:
For when the prefix for determining note number is not specific field, the note number is directly obtained from note data library Corresponding session, sets digit matching rule after use, the identification of contacts progress by the note number and locally saved Match, if successful match, directly acquire the corresponding contact information of the note number, and is shown in the interface of the session Show, if matching is failed, by the note number and preset information, as the corresponding contact person's letter of the note number Breath, shows in the interface of the session;
For when the prefix for determining note number is not specific field, the new session of creation sets digit matching rule after use Then, the identification of contacts saved by the note number and locally matches, if successful match, directly acquires the short message The corresponding contact information of number, and being shown in the interface of the session, if matching is failed, by the note number and Preset information is shown in the interface of the session as the corresponding contact information of the note number.
6. a kind of processing unit of short message session characterized by comprising
Session creating unit, for when receiving a short message, obtaining the note number of the short message, and it is described short determining When the prefix of signal code is specific field, using the preset first accurate matching rule, by the note number and note data Session identification in library is matched, and when determining that matching is failed, creates a new session;
Session interface display unit, for being directed to the new session, using the preset second accurate matching rule, by the short message Number and the identification of contacts locally saved are matched, if successful match, it is corresponding to directly acquire the note number It is people's information, and shown in the interface of the new session, if matching is failed, by the note number and preset letter Breath, as the corresponding contact information of the note number, shows in the interface of the new session.
7. device as claimed in claim 6, which is characterized in that further comprise that acquisition conversation unit is used for:
It, will be described short using the preset first accurate matching rule when determining the prefix of the note number is specific field Session identification in signal code and note data library is matched, and when determining successful match, is directly obtained from note data library Take the corresponding session of the note number.
8. device as claimed in claims 6 or 7, which is characterized in that the preset first accurate matching rule is, from described First bit digital of note number starts and is successively matched since the first bit digital of the session identification, until knot Beam;
The preset second accurate matching rule is, since the first bit digital of the note number and from the connection First bit digital of people's mark starts successively to match, until terminating.
9. device as claimed in claim 6, which is characterized in that acquisition conversation unit is further used for:
When the prefix for determining the note number is not specific field, digit matching rule is set after use, by the short message Session identification in number and note data library is matched, and when determining successful match, is directly obtained from note data library The corresponding session of the note number;
Session creating unit is further used for: when the prefix for determining the note number is not specific field, setting after use Digit matching rule matches the session identification in the note number and note data library, matches not successfully when determining When, create a new session.
10. device as claimed in claim 9, which is characterized in that session interface display unit is further used for:
For when the prefix for determining note number is not specific field, the note number is directly obtained from note data library Corresponding session, sets digit matching rule after use, the identification of contacts progress by the note number and locally saved Match, if successful match, directly acquire the corresponding contact information of the note number, and is shown in the interface of the session Show, if matching is failed, by the note number and preset information, as the corresponding contact person's letter of the note number Breath, shows in the interface of the session;
For when the prefix for determining note number is not specific field, the new session of creation sets digit matching rule after use Then, the identification of contacts saved by the note number and locally matches, if successful match, directly acquires the short message The corresponding contact information of number, and being shown in the interface of the session, if matching is failed, by the note number and Preset information is shown in the interface of the session as the corresponding contact information of the note number.
CN201610040171.6A 2016-01-21 2016-01-21 A kind of processing method and processing device of short message session Active CN105721680B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610040171.6A CN105721680B (en) 2016-01-21 2016-01-21 A kind of processing method and processing device of short message session

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610040171.6A CN105721680B (en) 2016-01-21 2016-01-21 A kind of processing method and processing device of short message session

Publications (2)

Publication Number Publication Date
CN105721680A CN105721680A (en) 2016-06-29
CN105721680B true CN105721680B (en) 2019-05-10

Family

ID=56153750

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610040171.6A Active CN105721680B (en) 2016-01-21 2016-01-21 A kind of processing method and processing device of short message session

Country Status (1)

Country Link
CN (1) CN105721680B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110300222B (en) * 2019-05-29 2021-05-14 深圳市梦网科技发展有限公司 Short message display method, system, terminal equipment and computer readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2353161C (en) * 2000-07-19 2005-01-25 Research In Motion Limited User interface and method for viewing short messages on a wireless device
CN1917662A (en) * 2005-08-15 2007-02-21 深圳市经纬科技有限公司 Unit and method for automatic processing short message of handset
CN101060555A (en) * 2007-05-22 2007-10-24 华为技术有限公司 Number matching method and terminal
CN101426053A (en) * 2008-10-24 2009-05-06 深圳市金立通信设备有限公司 System and method for fast searching phone book and call record when standby
CN101808161A (en) * 2010-03-24 2010-08-18 深圳市五巨科技有限公司 Method and device for inquiring area to which phone number is attributed and type of SIM card for phone number
CN103067610A (en) * 2013-01-23 2013-04-24 广东欧珀移动通信有限公司 Method and system and mobile terminal of interception of junk short message

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2353161C (en) * 2000-07-19 2005-01-25 Research In Motion Limited User interface and method for viewing short messages on a wireless device
CN1917662A (en) * 2005-08-15 2007-02-21 深圳市经纬科技有限公司 Unit and method for automatic processing short message of handset
CN101060555A (en) * 2007-05-22 2007-10-24 华为技术有限公司 Number matching method and terminal
CN101426053A (en) * 2008-10-24 2009-05-06 深圳市金立通信设备有限公司 System and method for fast searching phone book and call record when standby
CN101808161A (en) * 2010-03-24 2010-08-18 深圳市五巨科技有限公司 Method and device for inquiring area to which phone number is attributed and type of SIM card for phone number
CN103067610A (en) * 2013-01-23 2013-04-24 广东欧珀移动通信有限公司 Method and system and mobile terminal of interception of junk short message

Also Published As

Publication number Publication date
CN105721680A (en) 2016-06-29

Similar Documents

Publication Publication Date Title
US11184314B2 (en) Method and apparatus for prompting message reading state, and electronic device
CN106648391B (en) Handwriting synchronization method, device and system
CN103747132B (en) The method of display message and terminal
CN102209044B (en) Method for displaying picture message, apparatus and system thereof
CN105574398B (en) A kind of verification code verification method and device
CN106130998A (en) A kind of identifying code transmission method and device
CN103107974A (en) Method for registration and login of users and mobile terminal
CN110391974A (en) A kind of message synchronization method, server-side, terminal and system
CN108830113A (en) A kind of acquisition methods of Android device unique identification
CN106302129A (en) A kind of chat method based on geographical position and mobile terminal
CN104980899B (en) Communication means, system, mobile terminal and the server of mobile terminal
CN112615753A (en) Link abnormity tracking method, first node, second node and link
CN105678625A (en) Method and equipment for determining identity information of user
CN109379343A (en) A kind of the isomery common recognition method and terminal of block chain
CN108305065A (en) Data processing method, terminal device and data processing system
CN110912805B (en) Message reading state synchronization method, terminal, server and system
CN110519151B (en) Controllable friend adding method and device, terminal equipment and storage medium
CN105721680B (en) A kind of processing method and processing device of short message session
CN113630307A (en) Message prompting method and device, electronic equipment and storage medium
CN111031063B (en) Data transmission method and device based on family education machine
CN104932661A (en) Information prompt method and electronic device
WO2016058385A1 (en) Information storage method and device, and terminal
CN113791984B (en) Automatic interface testing method and device
CN103338148A (en) Address book updating methods and address book updating device
CN105119801B (en) A kind of social message management method, system, user terminal and server

Legal Events

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