CN103685669B - SMS processing method and terminal - Google Patents

SMS processing method and terminal Download PDF

Info

Publication number
CN103685669B
CN103685669B CN201310660136.0A CN201310660136A CN103685669B CN 103685669 B CN103685669 B CN 103685669B CN 201310660136 A CN201310660136 A CN 201310660136A CN 103685669 B CN103685669 B CN 103685669B
Authority
CN
China
Prior art keywords
short message
application layer
short
memory cell
storage area
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
CN201310660136.0A
Other languages
Chinese (zh)
Other versions
CN103685669A (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.)
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Shenzhen Coolpad Technologies Co Ltd
Original Assignee
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Shenzhen Coolpad Technologies 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 Yulong Computer Telecommunication Scientific Shenzhen Co Ltd, Shenzhen Coolpad Technologies Co Ltd filed Critical Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority to CN201310660136.0A priority Critical patent/CN103685669B/en
Publication of CN103685669A publication Critical patent/CN103685669A/en
Application granted granted Critical
Publication of CN103685669B publication Critical patent/CN103685669B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a kind of SMS processing method and a kind of terminal, wherein, the SMS processing method includes:The new message that will be received is stored in the designated storage area into terminal, and notifying messages application layer obtains the new message;After the short message application layer obtains the new message, the new message in the designated storage area is deleted.By technical scheme so that when there are abnormal conditions, the short message that will can be received is stored to designated storage area terminal, obtained after recovering normally so as to terminal, it is ensured that terminal can not miss short message.

Description

SMS processing method and terminal
Technical field
The present invention relates to communication technical field, in particular to a kind of SMS processing method and a kind of terminal.
Background technology
In the related art, terminal is reported to short message application layer after the short message for receiving network transmission, and in short message application After layer obtains the short message for receiving, short message is stored in note data storehouse.
But, when terminal receives short message, if terminal is in offline mode, occurs card or the abnormal situation of communication module When, may result in the short message for receiving and be not reported to short message application layer, there is the phenomenon that can not receive short message.
Therefore, how to ensure that terminal can not miss short message as technical problem urgently to be resolved hurrily.
The content of the invention
The present invention is based at least one above-mentioned technical problem, it is proposed that a kind of new short message processing scheme so that eventually When there are abnormal conditions, the short message that will can be received is stored to designated storage area at end, after recovering normal so as to terminal Obtained, it is ensured that terminal can not miss short message.
In view of this, the present invention proposes a kind of SMS processing method, including:The new message that will be received is stored to terminal In designated storage area in, and notifying messages application layer obtains the new message;Obtain described new in the short message application layer After short message, the new message in the designated storage area is deleted.
In the technical scheme, stored in the designated storage area into terminal by the new message that will be received, and lead to Know that short message application layer obtains the new message for receiving so that abnormal conditions is occurring in terminal(Such as there is card, communication module different Often or in offline mode)When, the short message that will can be received is stored to designated storage area, after recovering normal so as to terminal Obtained, it is ensured that terminal can not miss short message.And after obtaining the new message in short message application layer, by designated storage area New message in domain is deleted, and new message cannot be received after being occupied full with the memory space for avoiding designated storage area, is optimized The performance of terminal.Wherein, designated storage area can be the short message buffer area for setting in the terminal.
In the above-mentioned technical solutions, it is preferable that also include:Judge whether the terminal is met to the designated storage area Testing conditions, whether include the short message that the short message application layer is not obtained in the designated storage area if so, then detecting, And when the short message not obtained comprising described in the designated storage area is detected, notify that the short message application layer is obtained described All short messages in designated storage area.
In the technical scheme, specifically, it is required for after short message is received being reported to short message application layer due to terminal, And to being reported to the short message after short message application layer to carry out deletion action, if so existence information in designated storage area, can Can, due to not being reported to short message application layer caused by terminal abnormal, therefore be included by detecting in designated storage area When having the short message that short message application layer is not obtained, notifying messages application layer obtains all short messages in the designated storage area, can be with SMS notification short message application layer that is being received during by terminal abnormal but not being reported to short message application layer is obtained, so that The short message that user can be received when reading terminals are abnormal in time.
In the above-mentioned technical solutions, it is preferable that the testing conditions include at least one of or its combination:Again open Machine, re-accessing network, the time apart from the last time detection designated storage area reach Preset Time, receive to the finger Determine the detection instruction of storage region, receive new message.
In the technical scheme, can be turned back in terminal and/or during re-accessing network, in designated storage area Whether the short message for having short message application layer not obtain is detected, it is also possible to often by prefixed time interval in designated storage area Whether the short message for having short message application layer not obtain detected, can also receiving to the detection instruction of designated storage area or Whether person is when new message is received every time, to there is the short message that short message application layer is not obtained to examine in designated storage area Survey.When the short message quantity in designated storage area reaches predetermined quantity(Short message quantity in such as designated storage area reaches most Big quantity)When, it is also possible to notifying messages application layer obtains the short message in designated storage area, to avoid depositing for designated storage area Storage space cannot receive new message after being occupied full.
In the above-mentioned technical solutions, it is preferable that notify that the short message application layer obtains the designated storage area described After interior all short messages, also include:After all short messages that the short message application layer obtains in the designated storage area, delete Except all short messages in the designated storage area.
In the technical scheme, by after all short messages that short message application layer obtains in designated storage area, emptying finger Determine all short messages in storage region so that can remove in time in designated storage area by short message application layer obtain it is short Letter, cannot receive new message after being occupied full so as to the memory space for avoiding designated storage area, optimize the performance of terminal.
In the above-mentioned technical solutions, it is preferable that also include:Short message quantity in the designated storage area reaches maximum During quantity, if receiving new message, the short message application layer is directly notified, so that the short message application layer is deposited to described specifying Short message in storage area domain is processed.
In the technical scheme, maximum quantity is reached by the short message quantity in designated storage area, and receive again During to new message, notifying messages application layer is processed, it is to avoid terminal communication module causes designated storage area extremely(Such as Short message buffer area)In short message quantity when reaching maximum quantity, terminal no longer preserves the new message for receiving, less should to short message Notified with layer, caused user it is not clear whether receiving new message, and why do not receive new message, it is ensured that referred to Even if when determining the short message quantity in storage region and reaching maximum quantity, also can be when new message be received again, notifying messages should With layer, so that user makes corresponding treatment, such as all short messages in designated storage area are obtained, or directly delete specified Short message in storage region(The short message of all short messages or specified quantity), received with to new message, optimize the property of terminal Energy.
In the above-mentioned technical solutions, it is preferable that before the new message deleted in the designated storage area Also include:The new message that the short message application layer gets is preserved to storage region corresponding with the short message application layer It is interior.
In the technical scheme, after getting the new message that terminal is received in short message application layer, by what is got New message is preserved to storage region corresponding with short message application layer so that the short message that terminal can get to short message application layer Backed up, checked with user friendly.
According to another aspect of the present invention, it is also proposed that a kind of terminal, including:First memory cell, receives for storing The new message for arriving, and when the deletion to the new message for receiving the transmission of short message application layer control unit is instructed, delete The new message;Notification unit, after storing the new message in first memory cell, sends to short message application layer Obtain the notice of the new message;The short message application layer control unit is described new for controlling the short message application layer to obtain Short message, and after the short message application layer obtains the new message, send described deletion to first memory cell and instruct.
In the technical scheme, stored in the first memory cell into terminal by the new message that will be received, and lead to Know that short message application layer obtains the new message for receiving so that abnormal conditions is occurring in terminal(Such as there is card, communication module different Often or in offline mode)When, the short message that will can be received is stored to the first memory cell, after recovering normal so as to terminal Obtained, it is ensured that terminal can not miss short message.And after obtaining the new message in short message application layer, the first storage is single New message in unit is deleted, and new message cannot be received after being occupied full with the memory space for avoiding the first memory cell, is optimized The performance of terminal.Wherein, the first memory cell can be the short message buffer area for setting in the terminal.
In the above-mentioned technical solutions, it is preferable that also include:Judging unit, for judging whether the terminal is met to institute State the testing conditions of the first memory cell;Detection unit, for judging that the terminal is met to described the in the judging unit During the testing conditions of one memory cell, detect in first memory cell whether include what the short message application layer was not obtained Short message;The notification unit is additionally operable to:Detected in first memory cell in the detection unit and do not obtained comprising described Short message when, the notice for obtaining all short messages in first memory cell is sent to the short message application layer.
In the technical scheme, specifically, it is required for after short message is received being reported to short message application layer due to terminal, And to being reported to the short message after short message application layer to carry out deletion action, if so existence information in the first memory cell, can Can, due to not being reported to short message application layer caused by terminal abnormal, therefore be included in the first memory cell by detecting When having the short message that short message application layer is not obtained, notifying messages application layer obtains all short messages in first memory cell, can be with SMS notification short message application layer that is being received during by terminal abnormal but not being reported to short message application layer is obtained, so that The short message that user can be received when reading terminals are abnormal in time.
In the above-mentioned technical solutions, it is preferable that the testing conditions include at least one of or its combination:Again open Machine, re-accessing network, detected that the time of first memory cell reaches Preset Time, receives to described the apart from last time The detection of one memory cell is instructed, receives new message.
In the technical scheme, can be turned back in terminal and/or during re-accessing network, in the first memory cell Whether the short message for having short message application layer not obtain is detected, it is also possible to often by prefixed time interval in the first memory cell Whether the short message for having short message application layer not obtain detected, can also receiving to the detection instruction of the first memory cell or Whether person is when new message is received every time, to there is the short message that short message application layer is not obtained to examine in the first memory cell Survey.When the short message quantity in the first memory cell reaches predetermined quantity(Short message quantity in such as the first memory cell reaches most Big quantity)When, it is also possible to notifying messages application layer obtains the short message in the first memory cell, to avoid depositing for the first memory cell Storage space cannot receive new message after being occupied full.
In the above-mentioned technical solutions, it is preferable that the short message application layer control unit is additionally operable to:Control the short message application Layer obtains all short messages in first memory cell, and is obtained in first memory cell in the short message application layer All short messages after, the instruction for deleting all short messages is sent to first memory cell;First storage region is also For:When the instruction of deletion all short messages that the short message application layer control unit sends is received, the institute is deleted There is short message.
In the technical scheme, by after all short messages that short message application layer obtains in the first memory cell, will empty All short messages in first memory cell so that can remove in time in the first memory cell by short message application layer obtain it is short Letter, cannot receive new message after being occupied full so as to the memory space for avoiding the first memory cell, optimize the performance of terminal.
In the above-mentioned technical solutions, it is preferable that also include:Detection unit, for detecting in first memory cell Whether short message quantity reaches maximum quantity;The notification unit is additionally operable to:First storage is detected in the detection unit When short message quantity in unit reaches maximum quantity, if receiving new message, the short message application layer is directly notified, so that institute Short message application layer is stated to process the short message in first memory cell.
In the technical scheme, maximum quantity is reached by the short message quantity in the first memory cell, and receive again During to new message, notifying messages application layer is processed, it is to avoid terminal communication module causes the first memory cell extremely(Such as Short message buffer area)In short message quantity when reaching maximum quantity, terminal no longer preserves the new message for receiving, less should to short message Notified with layer, caused user it is not clear whether receiving new message, and why do not receive new message, it is ensured that Even if the short message quantity in a memory cell reaches maximum quantity, also can be when new message be received again, notifying messages should With layer, so that user makes corresponding treatment, such as all short messages in the first memory cell are obtained, or directly delete first Short message in memory cell(The short message of all short messages or specified quantity), received with to new message, optimize the property of terminal Energy.
In the above-mentioned technical solutions, it is preferable that the short message application layer control unit is additionally operable to:To the described first storage Before unit sends the deletion instruction, storage is sent to the second memory cell corresponding with the short message application layer described new short The instruction of letter;Second memory cell, for described new in the storage for receiving the short message application layer control unit transmission During the instruction of short message, the new message is stored.
In the technical scheme, after getting the new message that terminal is received in short message application layer, by what is got New message is preserved to storage region corresponding with short message application layer so that the short message that terminal can get to short message application layer Backed up, checked with user friendly.
By above technical scheme so that when there are abnormal conditions, the short message that will can be received is stored to short terminal In letter buffer area, obtained after recovering normally so as to terminal, it is ensured that terminal can not miss short message.Meanwhile, can be in short message After application layer obtains new message, the new message in short message buffer area is deleted, to avoid the memory space of short message buffer area occupied New message cannot be received after full, the performance of terminal is optimized.
Brief description of the drawings
Fig. 1 shows the schematic flow diagram of SMS processing method according to an embodiment of the invention;
Fig. 2 shows the schematic block diagram of terminal according to an embodiment of the invention;
The schematic flow diagram of processing information when Fig. 3 shows starting up of terminal according to an embodiment of the invention;
Process chart when Fig. 4 shows that terminal according to an embodiment of the invention receives new message.
Specific embodiment
It is below in conjunction with the accompanying drawings and specific real in order to be more clearly understood that the above objects, features and advantages of the present invention Mode is applied to be further described in detail the present invention.It should be noted that in the case where not conflicting, the implementation of the application Feature in example and embodiment can be mutually combined.
Many details are elaborated in the following description in order to fully understand the present invention, but, the present invention may be used also Implemented with being different from other modes described here using other, therefore, protection scope of the present invention is not by described below Specific embodiment limitation.
Fig. 1 shows the schematic flow diagram of SMS processing method according to an embodiment of the invention.
As shown in figure 1, SMS processing method according to an embodiment of the invention, including:Step 102 is new by what is received Short message is stored in the designated storage area into terminal, and notifying messages application layer obtains the new message;Step 104, institute After stating the short message application layer acquisition new message, the new message in the designated storage area is deleted.
In the technical scheme, stored in the designated storage area into terminal by the new message that will be received, and lead to Know that short message application layer obtains the new message for receiving so that abnormal conditions is occurring in terminal(Such as there is card, communication module different Often or in offline mode)When, the short message that will can be received is stored to designated storage area, after recovering normal so as to terminal Obtained, it is ensured that terminal can not miss short message.And after obtaining the new message in short message application layer, by designated storage area New message in domain is deleted, and new message cannot be received after being occupied full with the memory space for avoiding designated storage area, is optimized The performance of terminal.Wherein, designated storage area can be the short message buffer area for setting in the terminal.
In the above-mentioned technical solutions, it is preferable that also include:Judge whether the terminal is met to the designated storage area Testing conditions, whether include the short message that the short message application layer is not obtained in the designated storage area if so, then detecting, And when the short message not obtained comprising described in the designated storage area is detected, notify that the short message application layer is obtained described All short messages in designated storage area.
In the technical scheme, specifically, it is required for after short message is received being reported to short message application layer due to terminal, And to being reported to the short message after short message application layer to carry out deletion action, if so existence information in designated storage area, can Can, due to not being reported to short message application layer caused by terminal abnormal, therefore be included by detecting in designated storage area When having the short message that short message application layer is not obtained, notifying messages application layer obtains all short messages in the designated storage area, can be with SMS notification short message application layer that is being received during by terminal abnormal but not being reported to short message application layer is obtained, so that The short message that user can be received when reading terminals are abnormal in time.
In the above-mentioned technical solutions, it is preferable that the testing conditions include at least one of or its combination:Again open Machine, re-accessing network, the time apart from the last time detection designated storage area reach Preset Time, receive to the finger Determine the detection instruction of storage region, receive new message.
In the technical scheme, can be turned back in terminal and/or during re-accessing network, in designated storage area Whether the short message for having short message application layer not obtain is detected, it is also possible to often by prefixed time interval in designated storage area Whether the short message for having short message application layer not obtain detected, can also receiving to the detection instruction of designated storage area or Whether person is when new message is received every time, to there is the short message that short message application layer is not obtained to examine in designated storage area Survey.When the short message quantity in designated storage area reaches predetermined quantity(Short message quantity in such as designated storage area reaches most Big quantity)When, it is also possible to notifying messages application layer obtains the short message in designated storage area, to avoid depositing for designated storage area Storage space cannot receive new message after being occupied full.
In the above-mentioned technical solutions, it is preferable that notify that the short message application layer obtains the designated storage area described After interior all short messages, also include:After all short messages that the short message application layer obtains in the designated storage area, delete Except all short messages in the designated storage area.
In the technical scheme, by after all short messages that short message application layer obtains in designated storage area, will empty All short messages in designated storage area so that can remove in time in designated storage area by short message application layer obtain it is short Letter, cannot receive new message after being occupied full so as to the memory space for avoiding designated storage area, optimize the performance of terminal.
In the above-mentioned technical solutions, it is preferable that also include:Short message quantity in the designated storage area reaches maximum During quantity, if receiving new message, the short message application layer is directly notified, so that the short message application layer is deposited to described specifying Short message in storage area domain is processed.
In the technical scheme, maximum quantity is reached by the short message quantity in designated storage area, and receive again During to new message, notifying messages application layer is processed, it is to avoid terminal communication module causes designated storage area extremely(Such as Short message buffer area)In short message quantity when reaching maximum quantity, terminal no longer preserves the new message for receiving, less should to short message Notified with layer, caused user it is not clear whether receiving new message, and why do not receive new message, it is ensured that referred to Even if when determining the short message quantity in storage region and reaching maximum quantity, also can be when new message be received again, notifying messages should With layer, so that user makes corresponding treatment, such as all short messages in designated storage area are obtained, or directly delete specified Short message in storage region(The short message of all short messages or specified quantity), received with to new message, optimize the property of terminal Energy.
In the above-mentioned technical solutions, it is preferable that before the new message deleted in the designated storage area Also include:The new message that the short message application layer gets is preserved to storage region corresponding with the short message application layer It is interior.
In the technical scheme, after getting the new message that terminal is received in short message application layer, by what is got New message is preserved to storage region corresponding with short message application layer so that the short message that terminal can get to short message application layer Backed up, checked with user friendly.
Fig. 2 shows the schematic block diagram of terminal according to an embodiment of the invention.
As shown in Fig. 2 terminal 200 according to an embodiment of the invention, including:First memory cell 202, connects for storing The new message for receiving, and when the deletion to the new message for receiving the transmission of short message application layer control unit 206 is instructed, Delete the new message;Notification unit 204, after storing the new message in first memory cell, should to short message The notice for obtaining the new message is sent with layer;The short message application layer control unit 206, for controlling the short message application layer The new message is obtained, and after the short message application layer obtains the new message, institute is sent to first memory cell State deletion instruction.
In the technical scheme, the first memory cell 202 into terminal 200 is stored by the new message that will be received It is interior, and notifying messages application layer obtains the new message for receiving so that is there are abnormal conditions in terminal 200(Such as occur card, Communication module is abnormal or in offline mode)When, the short message that will can be received is stored to the first memory cell 202, so as to Terminal 200 is obtained after recovering normally, it is ensured that terminal 200 can not miss short message.And should by being obtained in short message application layer After new message, the new message in the first memory cell 202 is deleted, to avoid the memory space of the first memory cell 202 occupied New message cannot be received after full, the performance of terminal 200 is optimized.Wherein, the first memory cell 202 can be in terminal 200 The short message buffer area of middle setting.
In the above-mentioned technical solutions, it is preferable that also include:Judging unit 208, for judging whether the terminal 200 is full Testing conditions of the foot to first memory cell 202;Detection unit 210, for judging the end in the judging unit 208 When end 200 meets the testing conditions to first memory cell 202, detect whether included in first memory cell 202 There is the short message that the short message application layer is not obtained;The notification unit 204 is additionally operable to:Institute is detected in the detection unit 210 When stating the short message not obtained comprising described in the first memory cell 202, send acquisition described first to the short message application layer and deposit The notice of all short messages in storage unit 202.
In the technical scheme, specifically, because terminal 200 is required for being reported to short message application after short message is received Layer, and to being reported to the short message after short message application layer to carry out deletion action, if so there is letter in the first memory cell 202 Breath, then be probably not to be reported to short message application layer because the exception of terminal 200 is caused, therefore by detecting the first storage When including the short message that short message application layer is not obtained in unit 202, notifying messages application layer is obtained in first memory cell 202 All short messages, SMS notification short message application that is terminal 200 being received when abnormal but not being reported to short message application layer Layer is obtained, and enables a user to the short message received when timely reading terminals 200 are abnormal.
In the above-mentioned technical solutions, it is preferable that the testing conditions include at least one of or its combination:Again open Machine, re-accessing network, the time apart from last time detection first memory cell 202 reach Preset Time, receive to institute State the detection instruction of the first memory cell 202, receive new message.
In the technical scheme, can be turned back in terminal 200 and/or during re-accessing network, it is single to the first storage Whether there is the short message that short message application layer is not obtained to be detected in unit 202, it is also possible to often to be deposited to first by prefixed time interval Whether there is the short message that short message application layer is not obtained to be detected in storage unit 202, can also receive to the first memory cell Whether 202 detection is instructed or when new message is received every time, to having short message application layer not in the first memory cell 202 The short message of acquisition is detected.When the short message quantity in the first memory cell 202 reaches predetermined quantity(Such as the first memory cell Short message quantity in 202 reaches maximum quantity)When, it is also possible to notifying messages application layer obtains short in the first memory cell 202 Letter, new message cannot be received after being occupied full with the memory space for avoiding the first memory cell 202.
In the above-mentioned technical solutions, it is preferable that the short message application layer control unit 206 is additionally operable to:Control the short message Application layer obtains all short messages in first memory cell 202, and is deposited in short message application layer acquisition described first After all short messages in storage unit 202, when sending the instruction for deleting all short messages to first memory cell 202;Institute The first storage region is stated to be additionally operable to:Receiving deletion all short messages that the short message application layer control unit 206 sends Instruction, delete all short messages.
In the technical scheme, by after all short messages that short message application layer obtains in the first memory cell 202, by clearly All short messages in empty first memory cell 202 so that can remove in time in the first memory cell 202 by short message application layer The short message of acquisition, new message cannot be received after being occupied full so as to the memory space for avoiding the first memory cell 202, optimize end The performance at end 200.
In the above-mentioned technical solutions, it is preferable that also include:Detection unit 210, for detecting first memory cell Whether the short message quantity in 202 reaches maximum quantity;The notification unit 204 is additionally operable to:Detected in the detection unit 210 When short message quantity in first memory cell 202 reaches maximum quantity, if receiving new message, directly notify described short Letter application layer, so that the short message application layer is processed the short message in first memory cell 202.
In the technical scheme, maximum quantity is reached by the short message quantity in the first memory cell 202, and connect again When receiving new message, notifying messages application layer is processed, it is to avoid terminal communication module causes the first memory cell 202 extremely (Such as short message buffer area)In short message quantity when reaching maximum quantity, terminal no longer preserves the new message for receiving, less to Short message application layer notified, causes user it is not clear whether receiving new message, and why do not receive new message, it is ensured that Even if the short message quantity in the first memory cell 202 reaches maximum quantity, can also lead to when new message is received again Know short message application layer, so that user makes corresponding treatment, such as obtain all short messages in the first memory cell 202, or Directly delete the short message in the first memory cell 202(The short message of all short messages or specified quantity), received with to new message, Optimize the performance of terminal.
In the above-mentioned technical solutions, it is preferable that the short message application layer control unit 206 is additionally operable to:To described first Before memory cell 202 sends the deletion instruction, sent to the second memory cell 212 corresponding with the short message application layer and stored up Deposit the instruction of the new message;Second memory cell 212, for receiving the short message application layer control unit 206 During the instruction of the storage new message of transmission, the new message is stored.
In the technical scheme, after getting the new message that terminal 200 is received in short message application layer, will get New message preserve to storage region corresponding with short message application layer so that terminal 200 can get to short message application layer Short message backed up, checked with user friendly.
The schematic flow diagram of processing information when Fig. 3 shows starting up of terminal according to an embodiment of the invention.
As shown in figure 3, according to an embodiment of the invention starting up of terminal when processing information process include:
Step 302, starting up of terminal.
Whether step 304, have the new message that short message application layer is not obtained, if so, then performing step in short message enquiry buffer area Rapid 306, otherwise, terminate.
Step 306, when there is the new message that short message application layer is not obtained in inquiring short message buffer area, notifying messages application Layer obtains the new message in short message buffer area and preserves into database, and deletes the new message in short message buffer area.
Process chart when Fig. 4 shows that terminal according to an embodiment of the invention receives new message.
As shown in figure 4, processing procedure when terminal receives new message according to an embodiment of the invention includes:
Step 402, terminal receives new message.
Step 404, the new message that terminal will be received is preserved to short message buffer area, and notifying messages application layer is obtained and received The new message for arriving.
Step 406 is new in deletion short message buffer area after short message application layer gets new message and preserves to database Short message.
Technical scheme is described in detail above in association with accompanying drawing, it is contemplated that in the related art, terminal receives short During letter, if terminal is in offline mode, occurs card or communication module abnormal situation, the short message for receiving can be caused not go up , there is the phenomenon that can not receive short message in short message of reporting for work application layer.Therefore, the present invention proposes a kind of new short message processing scheme, makes Terminal is obtained when there are abnormal conditions, the short message that will can be received is stored to designated storage area, so that terminal is recovered just Obtained after often, it is ensured that terminal can not miss short message.
The preferred embodiments of the present invention are the foregoing is only, is not intended to limit the invention, for the skill of this area For art personnel, the present invention can have various modifications and variations.It is all within the spirit and principles in the present invention, made any repair Change, equivalent, improvement etc., should be included within the scope of the present invention.

Claims (8)

1. a kind of SMS processing method, it is characterised in that including:
The new message that will be received is stored in the designated storage area into terminal, and notifying messages application layer obtains described new short Letter;
After the short message application layer obtains the new message, the new message in the designated storage area is deleted;
Wherein, the SMS processing method also includes:When the short message quantity in the designated storage area reaches predetermined quantity, Notify that the short message application layer obtains the short message in the designated storage area;
Also included before the new message deleted in the designated storage area:
The new message that the short message application layer gets is preserved to storage region corresponding with the short message application layer.
2. SMS processing method according to claim 1, it is characterised in that also include:
Judge whether the terminal meets the testing conditions to the designated storage area, if so, then detecting the specified storage Whether include the short message that the short message application layer is not obtained in region, and detecting in the designated storage area comprising institute When stating the short message not obtained, notify that the short message application layer obtains all short messages in the designated storage area.
3. SMS processing method according to claim 2, it is characterised in that notify that the short message application layer is obtained described After all short messages in the designated storage area, also include:
After all short messages that the short message application layer obtains in the designated storage area, delete in the designated storage area All short messages.
4. SMS processing method according to claim 1, it is characterised in that also include:
When short message quantity in the designated storage area reaches maximum quantity, if receiving new message, institute is directly notified Short message application layer is stated, so that the short message application layer is processed the short message in the designated storage area.
5. a kind of terminal, it is characterised in that including:
First memory cell, for storing the new message for receiving, and is receiving the transmission of short message application layer control unit When deletion to the new message is instructed, the new message is deleted;
Notification unit, after storing the new message in first memory cell, sends to short message application layer and obtains institute State the notice of new message;
The short message application layer control unit, for controlling the short message application layer to obtain the new message, and described short After letter application layer obtains the new message, send described deletion to first memory cell and instruct;
Wherein, the notification unit is additionally operable to:When the short message quantity in the designated storage area reaches predetermined quantity, notify The short message application layer obtains the short message in the designated storage area;
The short message application layer control unit is additionally operable to:
Before the deletion instruction is sent to first memory cell, to the corresponding with the short message application layer second storage Unit sends the instruction of the storage new message;
Second memory cell, for receiving the storage new message that the short message application layer control unit sends During instruction, the new message is stored.
6. terminal according to claim 5, it is characterised in that also include:
Judging unit, for judging whether the terminal meets the testing conditions to first memory cell;
Detection unit, for judging that the terminal meets the testing conditions to first memory cell in the judging unit When, detect in first memory cell whether include the short message that the short message application layer is not obtained;
The notification unit is additionally operable to:Detect what is do not obtained comprising described in first memory cell in the detection unit During short message, the notice for obtaining all short messages in first memory cell is sent to the short message application layer.
7. terminal according to claim 6, it is characterised in that:
The short message application layer control unit is additionally operable to:The short message application layer is controlled to obtain the institute in first memory cell There is short message, and after all short messages that the short message application layer obtains in first memory cell, to the described first storage Unit sends the instruction for deleting all short messages;
First storage region is additionally operable to:It is described all short in the deletion for receiving the short message application layer control unit transmission During the instruction of letter, all short messages are deleted.
8. terminal according to claim 5, it is characterised in that also include:
Detection unit, for detecting whether the short message quantity in first memory cell reaches maximum quantity;
The notification unit is additionally operable to:The short message quantity in first memory cell is detected in the detection unit to reach most During big quantity, if receiving new message, the short message application layer is directly notified, so that the short message application layer is to described first Short message in memory cell is processed.
CN201310660136.0A 2013-12-06 2013-12-06 SMS processing method and terminal Active CN103685669B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310660136.0A CN103685669B (en) 2013-12-06 2013-12-06 SMS processing method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310660136.0A CN103685669B (en) 2013-12-06 2013-12-06 SMS processing method and terminal

Publications (2)

Publication Number Publication Date
CN103685669A CN103685669A (en) 2014-03-26
CN103685669B true CN103685669B (en) 2017-06-16

Family

ID=50321927

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310660136.0A Active CN103685669B (en) 2013-12-06 2013-12-06 SMS processing method and terminal

Country Status (1)

Country Link
CN (1) CN103685669B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103986779B (en) * 2014-05-29 2017-10-13 沈文策 A kind of application data transmission method, device and terminal device
CN105554712B (en) * 2015-09-25 2019-04-12 宇龙计算机通信科技(深圳)有限公司 A kind of SMS processing method and user terminal
CN107634890B (en) * 2017-09-05 2020-10-09 深圳市沃特沃德股份有限公司 Communication method and communication device
CN109688179B (en) * 2017-10-19 2021-06-22 华为技术有限公司 Communication method and communication device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101217587A (en) * 2008-01-14 2008-07-09 深圳国人通信有限公司 SMS receiving method and device
CN101984642A (en) * 2010-10-13 2011-03-09 中兴通讯股份有限公司 Method for automatically deleting short messages and device thereof

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100584319B1 (en) * 2003-12-08 2006-05-26 삼성전자주식회사 Mobile phone for deleting short message stored in receiving part and method for transmitting and deleting short message using the same
CN101778359A (en) * 2010-01-22 2010-07-14 华为终端有限公司 Method, device and communication terminal for receiving short message

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101217587A (en) * 2008-01-14 2008-07-09 深圳国人通信有限公司 SMS receiving method and device
CN101984642A (en) * 2010-10-13 2011-03-09 中兴通讯股份有限公司 Method for automatically deleting short messages and device thereof

Also Published As

Publication number Publication date
CN103685669A (en) 2014-03-26

Similar Documents

Publication Publication Date Title
CN103685669B (en) SMS processing method and terminal
CN104270524A (en) Information processing method and device
CN104021218B (en) A kind of method for information display and device
CN102378136B (en) Short message processing method and device
CN104965731B (en) A kind of data processing method and electric terminal
CN112511517B (en) Mail detection method, device, equipment and medium
CN103841261B (en) A kind of method and communication terminal extracting communication information
CN104881279A (en) Mass messaging method and device
US10104215B2 (en) Blacklist management method and device
CN102710837A (en) Terminal and address book managing method
US10027607B2 (en) Message processing using deactivation condition and after scheduled end time
CN105634909B (en) Message display method and message display device
EP2930995A1 (en) Terminal peripheral management method and m2m gateway
CN106547868A (en) A kind of file management method and terminal
CN103179024B (en) Mail filtering method and device
CN108093441A (en) The switching method and device of a kind of access controller
KR101473652B1 (en) Method and appratus for detecting malicious message
CN105721664A (en) Short message processing method and apparatus
CN104378506B (en) Data manipulation method, data operation device and terminal
CN102346822B (en) Traceable mobile storage device, system and tracking method
CN106452905A (en) Message processing method and device
CN104618556A (en) Information saving method and terminal
CN104412274A (en) Portable terminal, program, and control method
CN107145572B (en) Data processing method and device, computer equipment and storage medium
CN105791089B (en) Communication message processing method and device and electronic equipment

Legal Events

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