CN107018239B - Method for processing short messages and device - Google Patents

Method for processing short messages and device Download PDF

Info

Publication number
CN107018239B
CN107018239B CN201710414611.4A CN201710414611A CN107018239B CN 107018239 B CN107018239 B CN 107018239B CN 201710414611 A CN201710414611 A CN 201710414611A CN 107018239 B CN107018239 B CN 107018239B
Authority
CN
China
Prior art keywords
short message
application
party
information
database
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
CN201710414611.4A
Other languages
Chinese (zh)
Other versions
CN107018239A (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 CN201710414611.4A priority Critical patent/CN107018239B/en
Publication of CN107018239A publication Critical patent/CN107018239A/en
Application granted granted Critical
Publication of CN107018239B publication Critical patent/CN107018239B/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. SMS or e-mail

Landscapes

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

Abstract

The invention discloses a kind of method for processing short messages and devices, belong to field of terminal technology.Method includes:, if it is third party's Information application that current default information, which is applied, to send short message to third party's Information application, and short message is stored to temporary table when receiving short message;When the time that system time distance receives short message reaching preset duration, if it is determined that short message is not stored to short message database, then applies default information from third party's Information application and switch to the included short message application of system;Short message reading ceases from temporary table;The short message application carried to system sends short message, and the short message carried by system is applied and stores short message to short message database.The present invention is by temporarily storing short message, is the short message application that system carries by default information application recovery, and short message is stored to the loss that short message is avoided to short message database when short message is not stored to short message database.

Description

Method for processing short messages and device
Technical field
The present invention relates to field of terminal technology more particularly to a kind of method for processing short messages and device.
Background technique
With the development of terminal technology, the version of terminal system alternates quickly, for example, Android (Android) system is There is the version of 4.4 or more Android, the version later from Android4.4, system uses default information application machine System, the meaning of this mechanism are the safety of strengthen the system, which, which limits only default information application, can operate end The function of data is such as written in the short message database at end from reading data in short message database or into short message database, And other non-default Information applications cannot then operate the short message database.In this regard, many thirds in application market Square Information application, needs apply for oneself for default information application if the application of information backup recovery class, with realization to terminal Restore the function of information data in short message database.
Currently, the method for short message processing is as follows: when the bottom (such as Framework layers) of terminal system receives short message Afterwards, the short message can be sent to upper layer application by way of broadcast, is such as sent to the current default information of terminal system and answers With, wherein the broadcast carries the short message being currently received.At this point, being carried if current default information is applied for system Short message application, apply to have to receive due to the short message that the system carries and short message and deposit the short message being currently received Store up to the function of short message database, therefore can normally handle the short message received in this case, by short message store to Short message database.And if it is third party's Information application that current default information, which is applied, it can be according to third party's Information application Different function different processing is carried out to short message, as third party's Information application only has the function of Backup and Restore information data Can, then the short message being currently received will not be stored to short message database, if third party's Information application, which will have, to work as Before the short message that receives store to the function of short message database, then short message can be stored to short message database.
In the implementation of the present invention, the inventor finds that the existing technology has at least the following problems:
Above-mentioned technology to short message in the process of processing, if current default information apply for information back-up it is extensive Third party's Information application of multiple class, then can not normally handle the short message received, i.e., the short message that can not will be currently received It stores to short message database, and the short message is caused to be lost.
Summary of the invention
In order to solve problems in the prior art, the embodiment of the invention provides a kind of method for processing short messages and devices.Institute It is as follows to state technical solution:
In a first aspect, providing a kind of method for processing short messages, which comprises
When receiving short message, if it is third party's Information application that current default information, which is applied, to the third Square Information application sends the short message, and the short message is stored to temporary table;
When the time that system time distance receives the short message reaching preset duration, if it is determined that the short message It is not stored to short message database, then carries the default information using switching to system from third party's Information application Short message application;
The short message is read from the temporary table;
The short message application carried to the system sends the short message, and being applied by the short message that the system carries will The short message is stored to the short message database.
It is described to send the short message packet to third party's Information application in the first implementation of first aspect It includes:
It sends and broadcasts to third party's Information application, the broadcast carries the short message.
In second of implementation of first aspect, it is described to third party's Information application send the short message it Before, the method also includes:
A finger daemon is registered, the finger daemon is used to monitor the change of the specified table in the short message database Change;
Described store the short message to temporary table include:
The short message is sent to the finger daemon, the short message is stored to described by the finger daemon and is faced When table.
In the third implementation of first aspect, the determination short message is not stored to short message database Include:
If the finger daemon does not hear the specified table and changes, it is determined that the short message is not stored To the short message database, the specified table is for storing the short message received.
In the 4th kind of implementation of first aspect, the method also includes:
If the title not phase that the short message that the title and system of the default information application recorded in registration table carry is applied Together, it is determined that current default information is applied is third party's Information application, and it is current that the registration table is used to record system Setting information.
In the 5th kind of implementation of first aspect, the short message application carried to the system sends described short Information, the short message carried by the system are applied and store the short message to the short message database, the side Method further include:
The short message is deleted from the temporary table.
In the 6th kind of implementation of first aspect, the method also includes:
When the time that system time distance receives the short message reaching preset duration, if it is determined that the short message It has been stored to the short message database, then has deleted the short message from the temporary table.
Second aspect, provides a kind of short message processing unit, and described device includes:
Sending module, for when receiving short message, if it is third party's Information application that current default information, which is applied, Then the short message is sent to third party's Information application;
Memory module, for storing the short message to temporary table;
Switching module, when the time for receiving the short message when system time distance reaches preset duration, if It determines that the short message is not stored to short message database, then applies the default information from third party's Information application Switch to the included short message application of system;
Read module, for reading the short message from the temporary table;
The sending module, the short message application for being also used to carry to the system sends the short message, by the system The included short message of system, which is applied, stores the short message to the short message database.
In the first implementation of second aspect, the sending module, for being sent out to third party's Information application Broadcast is sent, the broadcast carries the short message.
In second of implementation of second aspect, described device further includes registration module:
The registration module, for registering a finger daemon, the finger daemon is for monitoring the short message data The variation of specified table in library;
The memory module will be described by the finger daemon for the short message to be sent to the finger daemon Short message is stored to the temporary table.
In the third implementation of second aspect, the switching module, if being used for the finger daemon unlisten It changes to the specified table, it is determined that the short message is not stored to the short message database, the specified table Lattice are for storing the short message received.
In the 4th kind of implementation of second aspect, described device further include:
Determining module, if the short message that the title that the default information for recording in registration table is applied is carried with system is answered Title is not identical, it is determined that it is third party's Information application that current default information, which is applied, and the registration table is for remembering The current setting information of recording system.
In the 5th kind of implementation of second aspect, described device further include:
First removing module, for deleting the short message from the temporary table.
In the 6th kind of implementation of second aspect, described device further include:
Second removing module, when the time for receiving the short message when system time distance reaches preset duration, If it is determined that the short message has been stored to the short message database, then the short message is deleted from the temporary table Breath.
Technical solution provided in an embodiment of the present invention has the benefit that
For the current default information application not instead of included short message application of system, the feelings of third party's Information application Condition, by temporarily being stored to the short message being currently received, can the default information application fail by the short message at It is the short message application that system carries by the default information application recovery in the case that function is stored to short message database, due to The included short message of the system, which is applied, to be had the function of receiving short message and stores short message to short message database, thus eventually End can successfully be stored the short message to short message database by the short message application that the system carries, to complete to this The treatment process of short message avoids the loss of short message.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing.
Fig. 1 is a kind of flow chart of method for processing short messages provided in an embodiment of the present invention;
Fig. 2 is a kind of flow chart of method for processing short messages provided in an embodiment of the present invention;
Fig. 3 is a kind of flow chart of method for processing short messages provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of short message processing unit provided in an embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram of short message processing unit provided in an embodiment of the present invention;
Fig. 6 is a kind of structural schematic diagram of short message processing unit provided in an embodiment of the present invention;
Fig. 7 is a kind of structural schematic diagram of short message processing unit provided in an embodiment of the present invention;
Fig. 8 is a kind of structural schematic diagram of short message processing unit provided in an embodiment of the present invention;
Fig. 9 is a kind of structural schematic diagram of terminal 900 provided in an embodiment of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention Formula is described in further detail.
Fig. 1 is a kind of flow chart of method for processing short messages provided in an embodiment of the present invention.Referring to Fig. 1, this method comprises:
101, when receiving short message, if it is third party's Information application that current default information, which is applied, to this Tripartite's Information application sends the short message, and the short message is stored to temporary table.
102, when the time that system time distance receives the short message reaching preset duration, if it is determined that the short message It is not stored to short message database, then the default information is applied from third party's Information application and switches to included short of system Information application.
103, the short message is read from the temporary table.
104, the short message application carried to the system sends the short message, and the short message application carried by the system should Short message is stored to the short message database.
Method provided in an embodiment of the present invention is not that the included short message of system is answered for current default information application With, but the case where third party's Information application, it, can be in the default by temporarily being stored to the short message being currently received Information application fails in the case where successfully storing the short message to short message database, is to be by the default information application recovery The included short message application of system, applies to have and receives short message and store short message to short due to the short message that the system carries The function of information database, thus terminal can successfully be stored the short message to short by the short message application that the system carries Information database, to complete to avoid the loss of short message to the treatment process of the short message.
Optionally, this sends the short message to third party's Information application and includes:
It sends and broadcasts to third party's Information application, which carries the short message.
Optionally, before this sends the short message to third party's Information application, this method further include:
A finger daemon is registered, which is used to monitor the variation of the specified table in the short message database;
This stores the short message to temporary table
The short message is sent to the finger daemon, is stored the short message to the temporary table by the finger daemon.
Optionally, the determination short message is not stored to short message database and includes:
If the finger daemon does not hear the specified table and changes, it is determined that it is short that the short message is not stored to this Information database, the specified table is for storing the short message received.
Optionally, this method further include:
If the title not phase that the short message that the title and system of the default information application recorded in registration table carry is applied Together, it is determined that it is third party's Information application that current default information, which is applied, and for recording, system is current to be set the registration table Confidence breath.
Optionally, which sends the short message, is answered by the short message that the system carries It is stored with by the short message to the short message database, this method further include:
The short message is deleted from the temporary table.
Optionally, this method further include:
When the time that system time distance receives the short message reaching preset duration, if it is determined that the short message by It stores to the short message database, then deletes the short message from the temporary table.
All the above alternatives can form alternative embodiment of the invention using any combination, herein no longer It repeats one by one.
Fig. 2 is a kind of flow chart of method for processing short messages provided in an embodiment of the present invention.This method is executed by terminal, ginseng See Fig. 2, this method comprises:
201, when receiving short message, if it is third party's Information application that current default information, which is applied, to this Tripartite's Information application sends the short message, and the short message is stored to temporary table.
In the step 201, when (upper one layer including Modem physical layer and Modem physical layer of bottom of terminal system Framework layers) receive short message after, receive short message such as Modem physical layer and be transferred to the short message After Framework layers, if it is third party's Information application that current default information, which is applied, the Framework layer of terminal can be with Using the form of broadcast, the short message being currently received is sent to third party's Information application of terminal.It is referring to Fig. 3, Fig. 3 The Framework layer of a kind of flow chart of method for processing short messages provided in an embodiment of the present invention, terminal can be to the third party Information application sends Delivery broadcast, and Delivery broadcast carries the short message, which broadcasts as being sent to end The broadcast of the default information application at end is currently received short message for indicating, certainly, in order to guarantee that the broadcast is smoothly sent to Third party's Information application, the Bao Mingke of Delivery broadcast is with the title for third party's Information application, as the third party When Information application receives Delivery broadcast, it is short which can obtain this from Delivery broadcast Information.
In the embodiment of the present invention, terminal can establish a temporary table, and such as sms_temp table, the temporary table is for facing When the short message that is currently received of storage terminal.If current default information apply be third party's Information application, terminal to While third party's Information application sends the short message, which can also be stored to the temporary table, in order to In the case that third party's Information application does not store short message to short message database, terminal can be obtained from the temporary table The short message is taken, and then is stored the short message to short message number by other application (such as included short message application of system) According to library.
In a kind of possible implementation, terminal can judge that current default information is applied as the in the following manner Tripartite's Information application: if the title for the short message application that the title and system of the default information application recorded in registration table carry Not identical, then it is third party's Information application that terminal, which can determine that current default information is applied, and the registration table is for recording end The current setting information of end system, the relevant information (such as title) applied including current default information.Terminal is when leaving the factory Default information application is generally the included short message application of terminal system, in the use process of terminal, if default information is answered With replacing, which can be updated by terminal, i.e., answer the short message that the system recorded in the registration table carries Title is updated to the title of current default information application.Therefore, if the title recorded in registration table and system are included Short message application title it is not identical, then show that current default information application is not the included short message application of system, and It is third party's Information application, such as application of some Backup and Restore category informations or other information application.
In the embodiment of the present invention, in order to monitor whether third party's Information application can store the short message being currently received To the short message database of terminal, terminal sends the short message to third party's Information application before executing the step 201 Before, a finger daemon can be registered, which is used to monitor the variation of the specified table in the short message database, For the specified table for storing the short message received, which is all short messages received of terminal in short message number According to the position of actual storage in library, as this specifies table to can be sms table.Optionally, terminal can register one in booting The finger daemon of memory-resident, the variation of sms table in short message database is monitored by the finger daemon, such as this is guarded Process can monitor in the preset duration from bottom receives short message whether increased short message newly in the sms table, if Increased short message in the preset duration in sms table newly, then the finger daemon can receive to a change notification, guard at this time into Journey can determine that listening to the sms table is changed, and can also determine new short message write-in or storage to the short message Cease database.
Correspondingly, it may include: that terminal can should that terminal, which stores the short message to temporary table, in the step 201 Short message is sent to the finger daemon, is stored the short message to the temporary table by the finger daemon.As shown in figure 3, terminal Framework layer short message can be sent to finger daemon, the short message is kept in into sms_temp by the finger daemon In table.Finger daemon is while storing the short message into the temporary table namely terminal is to third party's Information application While sending the short message, finger daemon can recorde the current system time of terminal, receive using the time as terminal The time of the short message, and start a timer, preset duration is set by the timing duration of the timer, such as 3 minutes, In this 3 minutes, finger daemon can in real time monitor terminal short message database in specify table (such as the sms table in Fig. 3) Variation, and determine whether the short message being currently received is stored to the short message database of terminal according to snoop results.
202, when the time that system time distance receives the short message reaching preset duration, if it is determined that the short message It is not stored to short message database, then the default information is applied from third party's Information application and switches to included short of system Information application.
In the embodiment of the present invention, for terminal in above-mentioned steps 201 when receiving short message, i.e., the short message is sent Third party's Information application is given, since third party's Information application is default information application, there is the power of operation short message database Limit, therefore, in the preset duration from the terminal receives the short message or the short message is sent to third party's Information application, If it may be implemented to store short message to the function of short message database, which can be default at this Any time in duration stores the short message to short message database, and stores short message to short if it is not carried out The function of information database, then third party's Information application can not store the short message to short message number in the preset duration According to library.In the preset duration, finger daemon can monitor always the variation that table is specified in short message database.Such as Fig. 3 institute Show, finger daemon can monitor sms table in 3 minutes have it is unchanged.
Start a timer when receiving the short message for finger daemon in step 201, and by the timer Timing duration is set as preset duration, and at the end of the finger daemon timing namely system time distance receives the short message Time when reaching preset duration, terminal can determine whether the short message is stored according to the snoop results of the finger daemon To short message database.Specifically, if the finger daemon does not hear the specified table and changes, terminal can be determined The short message is not stored to the short message database.Meanwhile terminal can also determine that third party's Information application is not carried out Short message is stored to the function of short message database.Therefore, in order to successfully store the short message being currently received to this The short message database of terminal, to complete the treatment process to the short message, terminal can be by current default information application The included short message application of system is switched to from third party's Information application, the short message application carried by the system is short by this Information is stored to short message database.
It should be noted that the embodiment of the present invention is not hear the specified table with the finger daemon to change, eventually It is illustrated for holding the determining short message not to be stored to short message database, in fact, if the finger daemon listens to The specified table changes, then terminal can determine that third party's Information application is handled the short message, the short message Breath has been stored to the short message database, at this point, since terminal has been completed the place to the short message being currently received Reason process, as shown in figure 3, terminal can delete temporary be somebody's turn to do from the temporary table (the sms_temp table in such as Fig. 3) immediately Short message directly executes subsequent step 205.
203, the short message is read from the temporary table.
In the embodiment of the present invention, the same of the short message is being sent to third party's Information application for terminal in step 201 When, the short message being currently received is stored into temporary table, correspondingly, is not deposited short message in third party's Information application In the case where storage to short message database, the current default information is applied to switch to from third party's Information application by terminal is After the included short message application of system, terminal can read the short message from the temporary table, and by executing subsequent step 204 To complete the treatment process to the short message.
204, the short message application carried to the system sends the short message, and the short message application carried by the system should Short message is stored to the short message database.
In the step 204, the short message application that terminal is carried to the system sends terminal in the short message and step 201 The short message is sent similarly to third party's Information application.Specifically, the Framework layer of terminal can also be again using broadcast The short message being currently received is sent to the included short message application of terminal system by form.As shown in figure 3, Framework The short message application that layer can be carried to terminal system sends Delivery broadcast, and Delivery broadcast carries the short message, Equally, in order to guarantee that the broadcast is smoothly sent to the included short message application of the terminal system, the packet name of Delivery broadcast It can be the title for the short message application that the terminal system carries.
Since the short message that the short message application that terminal system carries may be implemented to be currently received is stored to short message Cease the function of database, therefore the included short message of terminal system is applied and receiving Delivery broadcast, and from this After obtaining the short message in Delivery broadcast, successfully short message can be stored to short message database.
205, the short message is deleted from the temporary table.
In the embodiment of the present invention, terminal is stored the short message being currently received to short message data by step 204 Behind library, that is, the treatment process to the short message is completed, at this point, in order to avoid occupying unnecessary storage resource, terminal can be with Immediately the step 205 is executed, namely deletes the short message from the temporary table.And the temporary table is used for being currently received Short message temporarily stored, can only be stored with a short message every time, therefore terminal can directly delete the temporary table In the short message kept in, and delete the temporary table after the short message then can be used for next time the short message that receives into The interim storage of row.
Method provided in an embodiment of the present invention is not that the included short message of system is answered for current default information application With, but the case where third party's Information application, it, can be in the default by temporarily being stored to the short message being currently received Information application fails in the case where successfully storing the short message to short message database, is to be by the default information application recovery The included short message application of system, applies to have and receives short message and store short message to short due to the short message that the system carries The function of information database, thus terminal can successfully be stored the short message to short by the short message application that the system carries Information database, to complete to avoid the loss of short message to the treatment process of the short message.
Fig. 4 is a kind of structural schematic diagram of short message processing unit provided in an embodiment of the present invention.Referring to Fig. 4, the device Include:
Sending module 401, for being answered if current default information is applied for third party's information when receiving short message With then sending the short message to third party's Information application;
Memory module 402, for storing the short message to temporary table;
Switching module 403, when the time for receiving the short message when system time distance reaches preset duration, if It determines that the short message is not stored to short message database, then the default information is applied from third party's Information application and switched to The included short message application of system;
Read module 404, for reading the short message from the temporary table;
The sending module 401, the short message application for being also used to carry to the system send the short message, are carried by the system Short message application the short message is stored to the short message database.
Optionally, the sending module 401, is broadcasted for sending to third party's Information application, which carries the short message Breath.
Optionally, referring to Fig. 5, which further includes registration module 405:
The registration module 405, for registering a finger daemon, the finger daemon is for monitoring in the short message database Specified table variation;
The memory module 402 is deposited the short message by the finger daemon for the short message to be sent to the finger daemon It stores up to the temporary table.
Optionally, the switching module 403 changes if not hearing the specified table for the finger daemon, Determine that the short message is not stored to the short message database, the specified table is for storing the short message received.
Optionally, referring to Fig. 6, the device further include:
Determining module 406, if the short message that title and system that the default information for recording in registration table is applied carry The title for ceasing application is not identical, it is determined that it is third party's Information application that current default information, which is applied, and the registration table is used for The current setting information of record system.
Optionally, referring to Fig. 7, the device further include:
First removing module 407, for deleting the short message from the temporary table.
Optionally, referring to Fig. 8, the device further include:
Second removing module 708, when the time for receiving the short message when system time distance reaches preset duration, If it is determined that the short message has been stored to the short message database, then the short message is deleted from the temporary table.
In the embodiment of the present invention, the short message application that instead of system is not included is applied for current default information, the The case where tripartite's Information application, can be in the default information application by temporarily being stored to the short message being currently received Fail in the case where successfully storing the short message to short message database, is what system carried by the default information application recovery Short message application, since the short message that the system carries is applied with reception short message and stores short message to short message data The function in library, thus terminal can successfully be stored the short message to short message data by the short message application that the system carries Library, to complete to avoid the loss of short message to the treatment process of the short message.
It should be understood that short message processing unit provided by the above embodiment is in short message processing, only with above-mentioned each The division progress of functional module can according to need and for example, in practical application by above-mentioned function distribution by different function Energy module is completed, i.e., the internal structure of equipment is divided into different functional modules, to complete whole described above or portion Divide function.In addition, short message processing unit provided by the above embodiment and method for processing short messages embodiment belong to same design, Its specific implementation process is detailed in embodiment of the method, and which is not described herein again.
The embodiment of the invention provides a kind of terminal 900, which can be used for executing mentions in above-mentioned each embodiment The method for processing short messages of confession.Referring to Fig. 9, which includes:
Terminal 900 may include RF (Radio Frequency, radio frequency) circuit 110, include one or more meter The memory 120 of calculation machine readable storage medium storing program for executing, input unit 130, display unit 140, sensor 150, voicefrequency circuit 160, WiFi (Wireless Fidelity, Wireless Fidelity) module 170, the processing for including one or more than one processing core The components such as device 180 and power supply 190.It will be understood by those skilled in the art that terminal structure shown in Fig. 9 is not constituted pair The restriction of terminal may include perhaps combining certain components or different component cloth than illustrating more or fewer components It sets.Wherein:
RF circuit 110 can be used for receiving and sending messages or communication process in, signal sends and receivees, particularly, by base station After downlink information receives, one or the processing of more than one processor 180 are transferred to;In addition, the data for being related to uplink are sent to Base station.In general, RF circuit 110 includes but is not limited to antenna, at least one amplifier, tuner, one or more oscillators, uses Family identity module (SIM) card, transceiver, coupler, LNA (Low Noise Amplifier, low-noise amplifier), duplex Device etc..In addition, RF circuit 110 can also be communicated with network and other equipment by wireless communication.The wireless communication can make With any communication standard or agreement, and including but not limited to GSM (Global System of Mobile communication, entirely Ball mobile communcations system), GPRS (General Packet Radio Service, general packet radio service), CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple Access, wideband code division multiple access), LTE (Long Term Evolution, long term evolution), Email, SMS (Short Messaging Service, short message service) etc..
Memory 120 can be used for storing software program and module, and processor 180 is stored in memory 120 by operation Software program and module, thereby executing various function application and data processing.Memory 120 can mainly include storage journey Sequence area and storage data area, wherein storing program area can the (ratio of application program needed for storage program area, at least one function Such as sound-playing function, image player function) etc.;Storage data area, which can be stored, uses created number according to terminal 900 According to (such as audio data, phone directory etc.) etc..In addition, memory 120 may include high-speed random access memory, can also wrap Include nonvolatile memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts. Correspondingly, memory 120 can also include Memory Controller, to provide processor 180 and input unit 130 to memory 120 access.
Input unit 130 can be used for receiving the number or character information of input, and generate and user setting and function Control related keyboard, mouse, operating stick, optics or trackball signal input.Specifically, input unit 130 may include touching Sensitive surfaces 131 and other input equipments 132.Touch sensitive surface 131, also referred to as touch display screen or Trackpad are collected and are used Family on it or nearby touch operation (such as user using any suitable object or attachment such as finger, stylus in touch-sensitive table Operation on face 131 or near touch sensitive surface 131), and corresponding attachment device is driven according to preset formula.It is optional , touch sensitive surface 131 may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus detection is used The touch orientation at family, and touch operation bring signal is detected, transmit a signal to touch controller;Touch controller is from touch Touch information is received in detection device, and is converted into contact coordinate, then gives processor 180, and can receive processor 180 The order sent simultaneously is executed.Furthermore, it is possible to using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves Realize touch sensitive surface 131.In addition to touch sensitive surface 131, input unit 130 can also include other input equipments 132.Specifically, Other input equipments 132 can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), One of trace ball, mouse, operating stick etc. are a variety of.
Display unit 140 can be used for showing information input by user or the information and terminal 900 that are supplied to user Various graphical user interface, these graphical user interface can be made of figure, text, icon, video and any combination thereof. Display unit 140 may include display panel 141, optionally, can use LCD (Liquid Crystal Display, liquid crystal Show device), the forms such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) configure display panel 141.Further, touch sensitive surface 131 can cover display panel 141, when touch sensitive surface 131 detects touching on it or nearby After touching operation, processor 180 is sent to determine the type of touch event, is followed by subsequent processing device 180 according to the type of touch event Corresponding visual output is provided on display panel 141.Although touch sensitive surface 131 and display panel 141 are conducts in Fig. 9 Two independent components realize input and input function, but in some embodiments it is possible to by touch sensitive surface 131 and display Panel 141 is integrated and realizes and outputs and inputs function.
Terminal 900 may also include at least one sensor 150, such as optical sensor, motion sensor and other sensings Device.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 141, and proximity sensor can close display when terminal 900 is moved in one's ear Panel 141 and/or backlight.As a kind of motion sensor, gravity accelerometer can detect in all directions (generally Three axis) acceleration size, can detect that size and the direction of gravity when static, can be used to identify mobile phone posture application (ratio Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);Extremely In other sensors such as gyroscope, barometer, hygrometer, thermometer, the infrared sensors that terminal 900 can also configure, herein It repeats no more.
Voicefrequency circuit 160, loudspeaker 161, microphone 162 can provide the audio interface between user and terminal 900.Audio Electric signal after the audio data received conversion can be transferred to loudspeaker 161, be converted to sound by loudspeaker 161 by circuit 160 Sound signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 162, after being received by voicefrequency circuit 160 Audio data is converted to, then by after the processing of audio data output processor 180, such as another end is sent to through RF circuit 110 End, or audio data is exported to memory 120 to be further processed.Voicefrequency circuit 160 is also possible that earphone jack, To provide the communication of peripheral hardware earphone Yu terminal 900.
WiFi belongs to short range wireless transmission technology, and terminal 900 can help user's transceiver electronics by WiFi module 170 Mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 9 is shown WiFi module 170, but it is understood that, and it is not belonging to must be configured into for terminal 900, it can according to need completely Do not change in the range of the essence of invention and omits.
Processor 180 is the control centre of terminal 900, utilizes each portion of various interfaces and connection whole mobile phone Point, by running or execute the software program and/or module that are stored in memory 120, and calls and be stored in memory 120 Interior data execute the various functions and processing data of terminal 900, to carry out integral monitoring to mobile phone.Optionally, processor 180 may include one or more processing cores;Preferably, processor 180 can integrate application processor and modem processor, Wherein, the main processing operation system of application processor, user interface and application program etc., modem processor mainly handles nothing Line communication.It is understood that above-mentioned modem processor can not also be integrated into processor 180.
Terminal 900 further includes the power supply 190 (such as battery) powered to all parts, it is preferred that power supply can pass through electricity Management system and processor 180 are logically contiguous, to realize management charging, electric discharge and power consumption by power-supply management system The functions such as management.Power supply 190 can also include one or more direct current or AC power source, recharging system, power supply event Hinder the random components such as detection circuit, power adapter or inverter, power supply status indicator.
Although being not shown, terminal 900 can also include camera, bluetooth module etc., and details are not described herein.Specifically in this reality It applies in example, the display unit of terminal is touch-screen display, and terminal further includes having memory and one or more than one Program, perhaps more than one program is stored in memory and is configured to by one or more than one processing for one of them Device executes.The one or more programs include to operate for executing terminal side in above-mentioned Fig. 1 or Fig. 2 institute embodiment Instruction.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.

Claims (14)

1. a kind of method for processing short messages, which is characterized in that the described method includes:
When receiving short message, if it is third party's Information application that current default information, which is applied, believe to the third party Breath application sends the short message, and the short message is stored to temporary table;
When the time that system time distance receives the short message reaching preset duration, if it is determined that the short message not by It stores to short message database, then the default information is applied from third party's Information application and switch to included short of system Information application;
The short message is read from the temporary table;
The short message application carried to the system sends the short message, will be described by the short message application that the system carries Short message is stored to the short message database.
2. the method according to claim 1, wherein described send the short message to third party's Information application Breath includes:
It sends and broadcasts to third party's Information application, the broadcast carries the short message.
3. the method according to claim 1, wherein described send the short message to third party's Information application Before breath, the method also includes:
A finger daemon is registered, the finger daemon is used to monitor the variation of the specified table in the short message database, The specified table is the position of all short messages received of terminal actual storage in the short message database, described to keep Shield process is used to determine whether third party's Information application will currently receive according to the snoop results for monitoring the specified table To short message store to the short message database of the terminal;
Described store the short message to temporary table include:
The short message is sent to the finger daemon, is stored the short message to the interim table by the finger daemon Lattice.
4. according to the method described in claim 3, it is characterized in that, the determination short message is not stored to short message number Include: according to library
If the finger daemon does not hear the specified table and changes, it is determined that the short message is not stored to institute Short message database is stated, the specified table is for storing the short message received.
5. the method according to claim 1, wherein the method also includes:
If the title of the default information application recorded in registration table is not identical as the title for the short message application that system carries, Determining that current default information is applied is third party's Information application, and the registration table is used to record the current setting letter of system Breath.
6. the method according to claim 1, wherein the short message application carried to the system sends institute Short message is stated, the short message carried by the system is applied and stores the short message to the short message database, institute State method further include:
The short message is deleted from the temporary table.
7. the method according to claim 1, wherein the method also includes:
When the time that system time distance receives the short message reaching preset duration, if it is determined that the short message by It stores to the short message database, then deletes the short message from the temporary table.
8. a kind of short message processing unit, which is characterized in that described device includes:
Sending module, for when receiving short message, if it is third party's Information application that current default information, which is applied, to Third party's Information application sends the short message;
Memory module, for storing the short message to temporary table;
Switching module, when the time for receiving the short message when system time distance reaches preset duration, if it is determined that The short message is not stored to short message database, then applies the default information from third party's Information application and switch The short message application carried to system;
Read module, for reading the short message from the temporary table;
The sending module, the short message application for being also used to carry to the system send the short message, certainly by the system The short message of band is applied and stores the short message to the short message database.
9. device according to claim 8, which is characterized in that the sending module, for being answered to third party's information It is broadcasted with sending, the broadcast carries the short message.
10. device according to claim 8, which is characterized in that described device further includes registration module:
The registration module, for registering a finger daemon, the finger daemon is for monitoring in the short message database Specified table variation, the specified table is that all short messages received of terminal are practical in the short message database The position of storage, the finger daemon are used to determine that third party's information is answered according to the snoop results for monitoring the specified table With whether the short message being currently received being stored to the short message database of the terminal;
The memory module, for the short message to be sent to the finger daemon, by the finger daemon by the short message Breath is stored to the temporary table.
11. device according to claim 10, which is characterized in that the switching module, if being used for the finger daemon It does not hear the specified table to change, it is determined that the short message is not stored to the short message database, described Specified table is for storing the short message received.
12. device according to claim 8, which is characterized in that described device further include:
Determining module, if the short message application that title and system that the default information for recording in registration table is applied carry Title is not identical, it is determined that it is third party's Information application that current default information, which is applied, and the registration table is for recording system It unites current setting information.
13. device according to claim 8, which is characterized in that described device further include:
First removing module, for deleting the short message from the temporary table.
14. device according to claim 8, which is characterized in that described device further include:
Second removing module, when the time for receiving the short message when system time distance reaches preset duration, if It determines that the short message has been stored to the short message database, then deletes the short message from the temporary table.
CN201710414611.4A 2017-06-05 2017-06-05 Method for processing short messages and device Active CN107018239B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710414611.4A CN107018239B (en) 2017-06-05 2017-06-05 Method for processing short messages and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710414611.4A CN107018239B (en) 2017-06-05 2017-06-05 Method for processing short messages and device

Publications (2)

Publication Number Publication Date
CN107018239A CN107018239A (en) 2017-08-04
CN107018239B true CN107018239B (en) 2019-09-20

Family

ID=59452239

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710414611.4A Active CN107018239B (en) 2017-06-05 2017-06-05 Method for processing short messages and device

Country Status (1)

Country Link
CN (1) CN107018239B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110503954B (en) * 2019-08-29 2021-12-21 百度在线网络技术(北京)有限公司 Voice skill starting method, device, equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103179124A (en) * 2013-03-25 2013-06-26 东莞宇龙通信科技有限公司 Method for certifying third-party application program, mobile terminal and cloud server
CN106210238A (en) * 2016-07-14 2016-12-07 北京小米移动软件有限公司 short message storage method and device
CN106789545A (en) * 2015-11-20 2017-05-31 北京奇虎科技有限公司 Method and mobile terminal that a kind of information sends

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11138207B2 (en) * 2015-09-22 2021-10-05 Google Llc Integrated dynamic interface for expression-based retrieval of expressive media content

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103179124A (en) * 2013-03-25 2013-06-26 东莞宇龙通信科技有限公司 Method for certifying third-party application program, mobile terminal and cloud server
CN106789545A (en) * 2015-11-20 2017-05-31 北京奇虎科技有限公司 Method and mobile terminal that a kind of information sends
CN106210238A (en) * 2016-07-14 2016-12-07 北京小米移动软件有限公司 short message storage method and device

Also Published As

Publication number Publication date
CN107018239A (en) 2017-08-04

Similar Documents

Publication Publication Date Title
CN104780164B (en) A kind of method and apparatus of running game client
CN105278937B (en) A kind of method and device showing pop-up box message
CN104636047B (en) The method, apparatus and touch screen terminal operated to the object in list
CN104427083B (en) The method and apparatus for adjusting volume
CN104519485B (en) Communication means, device and system between a kind of terminal
CN104978176B (en) Application programming interfaces call method, device and computer readable storage medium
CN104142868B (en) Establish the method and device of connection
CN105871694B (en) Instant messaging service processing method and processing device
CN103365419B (en) A kind of method and apparatus triggering alarm clock control command
CN106488296B (en) A kind of method and apparatus showing video barrage
CN104915091B (en) A kind of method and apparatus for the prompt information that Shows Status Bar
CN106791955B (en) A kind of method and system of determining live streaming duration
CN105389259B (en) A kind of method, apparatus and system for carrying out Application testing
CN104104656B (en) Give the method and device of account number for change
CN106951139A (en) Message notifying frame display methods and device
CN106303605B (en) A kind of methods, devices and systems to send a notification message
CN106775262A (en) A kind of method and system of mark display management of not interpreting blueprints
CN107396193B (en) The method and apparatus of video playing
CN106789307B (en) Configuration data processing method, apparatus and system
CN108090345A (en) Linux system external command performs method and device
CN107066860B (en) A kind of fingerprint identification method and mobile terminal
CN106210838B (en) Caption presentation method and device
CN105763929B (en) Audio switching method and device
CN107423050A (en) A kind of method and apparatus for penetrating operation
CN106484615B (en) The method and apparatus of record log

Legal Events

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