Summary of the invention
In view of this, the implementation method that the object of the present invention is to provide a kind of short message automatically to cover is effectively avoided too much the memory space of useless out-of-date short message occupied terminal.
In order to achieve the above object, the invention provides the implementation method that a kind of short message covers automatically, this method comprises step:
A1: after terminal is received short message, judge whether and can in the short message of storage, search the number identical with the calling number of the short message of receiving, if, execution in step A21 then, otherwise, handle according to common short message handling process;
Search and the identical short message of receiving of short message host type in A21, the short message that judges whether insteps A 1, to search, if, execution in step A22 then, otherwise, handle according to common short message handling process;
Search and the identical short message of receiving of short message subtype in A22, the short message that judges whether in steps A 21, to search, if, then use the short message receive to cover described and the identical short message of receiving of short message subtype, otherwise, handle according to common short message handling process.
If described host type is the main business sign, then described subtype is the subservice sign that comprises in the main business sign.
Judge whether described in thesteps A 1 and can in the short message of storage, search the short message that meets coverage condition, further comprise: judge that the short message whether the short message sending entity is received is set to upgrade automatically short message before, if then continue to judge whether and in the short message of storage, to search the short message that meets coverage condition; Otherwise, handle according to common short message handling process.
According to the proposed method, after terminal is received short message, can judge whether and in the short message of storage, to search the short message that meets coverage condition, if, then use the short message of receiving to cover this short message, promptly use the current short message covering that receives to store, from same calling number, the short message of same type, otherwise, handle according to common short message handling process, make that the relevant short message of storing on user's the terminal is up-to-date all the time, effectively avoid the memory space of too much occupied terminal, reduce the excessive useless information of storing in the short message inbox, improve the short message operating factor of memory space, guarantee user's proper communication.What relate among the present invention is the short message of point-to-point, and the related entities that the intermediate transport link involves need not to carry out any special processing.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, the present invention is described in further detail below in conjunction with accompanying drawing.
Among the present invention, consider at from same calling number, the short message of same type only is that the short message of up-to-date reception is valuable to the user, therefore, after terminal is received short message, can judge whether and in the short message of storage, to search the short message that meets coverage condition, if, then use the short message of receiving to cover this short message, promptly use the current short message covering that receives to store, from same calling number, the short message of same type, otherwise, handle according to common short message handling process, make that the relevant short message of storing on user's the terminal is up-to-date all the time, effectively avoid the memory space of too much occupied terminal, guarantee user's proper communication.
Fig. 1 shows that short message covers flow chart automatically among the present invention, and as shown in Figure 1, the implementation procedure that short message covers automatically may further comprise the steps:
Step 101: terminal is received short message.
Step 102: whether the short message that terminal judges is received is for upgrading short message automatically, if then execution instep 103; Otherwise, execution in step 106.Whether the short message that terminal judges is received can be by judging that whether carrying automatically more new logo in the short message realizes for upgrading short message automatically.When the short message sending entity sends SMS message, can be set to upgrade automatically short message by this short message, correspondingly, when terminal receives short message, can judge that the short message whether the short message sending entity is received is set to upgrade automatically short message, this step can be omitted.
Step 103: whether terminal judges can search the number identical with the calling number of the short message of receiving in the short message of storage, if then execution instep 104; Otherwise, execution instep 106.
Step 104: whether terminal judges can search the short message identical with the short message types of receiving, if then execution instep 105 in short message storage, from same calling number; Otherwise, execution in step 106.Owing to carry service identification in the short message, therefore can be by judgement to service identification in the short message, whether type is identical to determine the short message of the short message received and storage.When comprising a plurality of outside ventures in a certain business, can be by service identification being expanded the judgement that realizes type, be to comprise a lot of attached subtypes in the host type, concrete processing procedure is: at first judge whether and can store, in the short message from same calling number, the identical short message of short message host type that searches and receive, if search identical host type, then continuing to judge whether can be in storage, in the short message from same calling number, the identical short message of short message subtype that searches and receive, if, then execution instep 105, otherwise, execution instep 106; If do not search identical host type, execution in step 106.Comprise a lot of attached subtypes in the host type, be and comprise a plurality of attached subservice signs in the main business sign, concrete processing procedure is: at first judge whether and can store, in the short message from same calling number, the identical short message of short message main business sign that searches and receive, if search identical main business sign, then continuing to judge whether can be in storage, in the short message from same calling number, the identical short message of short message subservice sign that searches and receive, if, then execution instep 105, otherwise, execution instep 106; If do not search identical main business sign, execution instep 106.
The form of the above main business sign and subservice sign can be service identification is divided into two fields, first field is used to carry the main business sign, second field is used for the carrier service identification, like this, terminal first field of the service identification of judging the short message of receiving and storage, from first field of the service identification of the short message of same calling number identical after, continue to judge whether second field of service identification of the short message of receiving identical with second field of the service identification of corresponding short message; Also can be the span that the whole service sign is set, this span is divided into several sections, a kind of main business of each segment identification wherein, concrete value in this section is concrete subservice, for example, as the span that the whole service sign is set is 0 to 29, wherein, 0 to 09 1 segment identification, first main business, 0,01,02 grade identifies the subservice in this first main business respectively, 10 to 19 1 segment identification, first main business, 10,11,12 grades identify the subservice in this first main business respectively, 20 to 29 1 segment identification, first main business, 20,21,22 grades identify the subservice in this first main business respectively, like this, the section of the value of the service identification of the short message that terminal judges goes out to receive with store, from the section of the value of the service identification of the short message of same calling number when identical, as the Duan Jun of value at 20 to 29 1 sections, promptly determine the short message received and storage, main business from the short message of same calling number is identical, continue then to judge whether these two values are identical, if it is identical, short message of then receiving and storage, subservice from the short message of same calling number is also identical, if inequality, short message of then receiving and storage, subservice from the short message of same calling number is inequality.
Step 105: terminal uses the short message of receiving to cover the corresponding short message of having stored automatically, promptly uses the short message of receiving to cover search, qualified short message, finishes current flow process.
Step 106: enter common short message handling process, promptly terminal is directly stored this short message of receiving, or directly shows to the user.
For example, certain operator releases the advertising campaign that the telephone expenses that prestore are sent mobile phone, and except traditional promotional advertisement, emphasis adopts short message way to give notice to each user, and the calling number that sends SMS message is 0001.First day, this operator sent the short message advertisement notice of correlated activation with calling number 0001 to the user for the first time, and 3 sections of mobile phone models participating in this activity have been described; Second day, this operator sent the short message advertisement notice of correlated activation with calling number 0001 to the user for the second time, and 3 sections of mobile phone models participating in this activity have been described, and wherein a temporarily out of stock; The 3rd day, this operator sent the short message advertisement notice of correlated activation with calling number 0001 to the user for the third time, and 6 sections of mobile phone models participating in this activity have been described, has increased 3 sections of mobile phones newly; On the 3rd day same day, this operator the 4th time sends the short message advertisement notice of correlated activation with calling number 0001 to the user, and has illustrated and participate in 6 sections of this time movable mobile phone models, and wherein two temporarily out of stock.For the user, the up-to-date short message of receiving is only the embodiment up-to-date information, the relevant short message of those that receive is than the current up-to-date short message of the receiving information that obsolesced previously, therefore, according to the proposed method, terminal just can use the short message of receiving to cover the corresponding short message of having stored, makes the relevant short message of storing in the terminal be always up-to-date, can not store out-of-date useless short message.
In a word, the above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention.