CN102123202A - Method and device for backing up various messages of mobile phone - Google Patents

Method and device for backing up various messages of mobile phone Download PDF

Info

Publication number
CN102123202A
CN102123202A CN2011100283435A CN201110028343A CN102123202A CN 102123202 A CN102123202 A CN 102123202A CN 2011100283435 A CN2011100283435 A CN 2011100283435A CN 201110028343 A CN201110028343 A CN 201110028343A CN 102123202 A CN102123202 A CN 102123202A
Authority
CN
China
Prior art keywords
backup
messages
message
mobile phone
text
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.)
Pending
Application number
CN2011100283435A
Other languages
Chinese (zh)
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.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication 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 Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN2011100283435A priority Critical patent/CN102123202A/en
Publication of CN102123202A publication Critical patent/CN102123202A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention relates to the field of mobile communication terminals, and discloses a method for backing up various messages of a mobile phone. In the invention, when a message needs to be backed up, all the text contents in a message body needs to be backed up are acquired through a character string pointer in a message structure; a back-up file is established through an application program interface function of the file operation provided by a platform of the mobile phone; one message is backed up, and one interface function is called up; all the text contents in the message body needs to be backed up are written into the back-up file in sequence, so as to lead a new function backing up all the messages to be increased in the mobile phone, and all the messages in the mobile phone can be conveniently backed up, thus important message content can be stored. The method and the device provided by the invention have the advantage of realizing back-up of all the messages only by calling up the file operation provided by the platform, the realization principle is simple and feasible, thus users can conveniently back up various messages, and can conveniently look up, manage and print the messages stored in the fixed back-up file, thereby providing convenience for users.

Description

A kind of backup method of mobile phone various types of messages and back-up device
Technical field
The present invention relates to the mobile communication terminal field, in particular a kind of backup method of mobile phone various types of messages and back-up device.
Background technology
Along with the development of mobile communication and the raising of people's living standard, the use of mobile communication terminal such as mobile phone is more and more universal.Present mobile phone provides the various types of messages function, as short message (SMS), and multimedia message (MMS), instant message (Instance Message) etc., and much the content of short messages all has a lot of important information, as contact method, schedule, important personal information etc.The mobile phone of prior art does not have good message backup functionality, and loss of data accidentally causes damage to the user.
Therefore, prior art has yet to be improved and developed.
Summary of the invention
The technical problem to be solved in the present invention is, above-mentioned defective at prior art, a kind of backup method and back-up device of mobile phone various types of messages are provided, it makes mobile phone increase the new function that various types of messages is backed up, can realize easily various types of messages in the mobile phone is backed up, so that preserve important message content, provide users with the convenient.
The technical scheme that technical solution problem of the present invention is adopted is as follows:
A kind of backup method of mobile phone various types of messages wherein, comprises step:
A, when the need backup messages, obtain all content of text in this need backup message body by the character string pointer in the message structure;
The application program interface function of B, the file operation that provides by cell phone platform is created backup file;
C, every backup a piece of news then in calling interface function this need backup message body that will obtain all content of text write backup file in order.
The backup method of described mobile phone various types of messages wherein, comprises also before the described steps A that step: a, reception user's operational order is selected the message backup functionality.
The backup method of described mobile phone various types of messages, wherein, described various types of messages is that the form with structure exists on the application layer of mobile phone, wherein the particular content of message then is to preserve with the form of character string.
The backup method of described mobile phone various types of messages, wherein, the backup file text formatting of described establishment is appointed as the TXT text formatting, and the filename of establishment and path are imported this interface function into as parameter.
The backup method of described mobile phone various types of messages, wherein, described step C specifically comprises: the ending that is provided with to described backup file according to a parameter of importing writes all content of text that obtained; The memory address that writes all content of text that obtained is to import this interface function into the parameter of pointer form, adds operation to finish backup.
The backup method of described mobile phone various types of messages, wherein, described message comprises short message, multimedia message, instant message.
A kind of back-up device of mobile phone various types of messages wherein, comprising:
The text acquisition module is used for obtaining all content of text in this need backup message body by the character string pointer in the message structure when needing backup messages;
The backup file creation module, the application program interface function that the file operation that provides by cell phone platform is provided is created backup file;
Backup module, be used for every backup a piece of news then calling interface function this all content of text of need backup message body that will obtain write backup file in order.
The back-up device of described mobile phone various types of messages, wherein, it also comprises: receiver module, the operational order that is used to receive the user is selected the message backup functionality.
The back-up device of described mobile phone various types of messages, wherein, the backup file text formatting of described establishment is appointed as the TXT text formatting, and the filename of establishment and path are imported this interface function into as parameter.
The back-up device of described mobile phone various types of messages, wherein, described backup module further comprises: the ending backup units is used for writing all content of text that obtained according to the ending that a parameter of importing is provided with to described backup file; The memory address that writes all content of text that obtained is to import this interface function into the parameter of pointer form, adds operation to finish backup;
Described message comprises short message, multimedia message, instant message.
The backup method of mobile phone various types of messages provided by the present invention and back-up device owing to adopted when needing backup messages, obtain all content of text in this need backup message body by the character string pointer in the message structure; The application program interface function of the file operation that provides by cell phone platform is created backup file; Every backup a piece of news then in calling interface function this need backup message body that will obtain all content of text write backup file in order, it makes mobile phone increase the new function that various types of messages is backed up, can realize easily various types of messages in the mobile phone is backed up, so that preserve important message content, advantage is, the file operation interface that only calling platform provided can be realized, the realization principle is simple, make the user back up various types of messages more expediently, be kept at and also be convenient to consulting of user in the fixing backup file, management, print etc., provide users with the convenient.
Description of drawings
Fig. 1 is the backup method flow chart of embodiment of the invention mobile phone various types of messages.
Fig. 2 is the back-up device theory diagram of the mobile phone various types of messages of the embodiment of the invention.
Fig. 3 is the inside theory diagram of backup module in the back-up device of mobile phone various types of messages of the embodiment of the invention.
Embodiment
The backup method of a kind of mobile phone various types of messages provided by the present invention and back-up device, clearer, clear and definite for making purpose of the present invention, technical scheme and advantage, below develop simultaneously with reference to accompanying drawing that the present invention is described in more detail for embodiment.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
The backup method of a kind of mobile phone various types of messages of the embodiment of the invention as shown in Figure 1, mainly may further comprise the steps:
Step S100, reception user's operational order is selected the message backup functionality.
For example, the user can select the message backup functionality by the menu in the various types of messages application program.
Confirm to preserve certain bar message (mention " message " among the present invention and include but not limited to the short message of mobile phone in using, multimedia message, instant message etc.) as the user, then the content of text in the message is extracted, and be saved in the fixed text file, as described below:
Step S200: when the need backup messages, obtain all content of text in this need backup message body by the character string pointer in the message structure.
For example, various types of messages on the application layer of mobile phone normally the form with structure exist, wherein the particular content of message is then preserved with the form of character string.With the C language is example, and the message structure body is:
Struct?{
Other elements in the // above expression message structure
Char * pMessage; The pointer of // refer message character string
}?xxMessage;
Can obtain the particular content of message body by above-mentioned character string pointer.Change step S300 then over to.
The application program interface function of step S300, the file operation that provides by cell phone platform is created backup file.Wherein, the backup file text formatting of described establishment is appointed as the TXT text formatting, and the filename of establishment and path are imported this interface function into as parameter.
Step S400, every backup a piece of news then in calling interface function this need backup message body that will obtain all content of text write backup file in order.This step specifically comprises: the ending that is provided with to described backup file according to a parameter of importing writes all content of text that obtained; The memory address that writes all content of text that obtained is to import this interface function into the parameter of pointer form, adds operation to finish backup.
For example, the application programming interfaces of the file operation that provides by cell phone platform are created backup file, and all content of text in this need backup message body that obtains are added into backup file.With the high pass binary runtime environment for wireless is example:
-interface function IFILEMGR_OpenFile () is used to create file, for same form is handled with being convenient to, the backup file text formatting of newly creating can be appointed as TXT text formatting commonly used, the backup file filename and the path of establishment are then imported this interface function into as parameter;
The ending that-function IFILE_Write () can be provided with according to the parameter of input to the backup text writes content, and the memory address that writes content then imports this function into the parameter of pointer form, adds operation thereby finish.
Information of the every backup of user is then called this interface this section text is write EOF.
Therefore the backup method of the mobile phone various types of messages of the embodiment of the invention can be realized various types of messages in the mobile phone is backed up easily, so that preserve important message content, provides users with the convenient.
Based on the backup method of the mobile phone various types of messages of the foregoing description, the embodiment of the invention also provides a kind of back-up device of mobile phone various types of messages, and as shown in Figure 2, it comprises:
Receiver module 510, the operational order that is used to receive the user is selected the message backup functionality.
Text acquisition module 520 is used for obtaining all content of text in this need backup message body by the character string pointer in the message structure when needing backup messages.Wherein, described message comprises short message, multimedia message, instant message.
Backup file creation module 530, the application program interface function that the file operation that provides by cell phone platform is provided is created backup file.Wherein, the backup file text formatting of described establishment is appointed as the TXT text formatting, and the filename of establishment and path are imported this interface function into as parameter.
Backup module 540, be used for every backup a piece of news then calling interface function this all content of text of need backup message body that will obtain write backup file in order.
Wherein, as shown in Figure 3, described backup module 540 further comprises: ending backup units 541 is used for writing all content of text that obtained according to the ending that a parameter of importing is provided with to described backup file; The memory address that writes all content of text that obtained is to import this interface function into the parameter of pointer form, adds operation to finish backup.
In sum, the backup method of mobile phone various types of messages provided by the present invention and back-up device, it makes mobile phone increase the new function that various types of messages is backed up, can realize easily various types of messages in the mobile phone is backed up, so that preserve important message content, advantage is, the file operation interface that only calling platform provided can be realized, the realization principle is simple, make the user back up various types of messages more expediently, be kept at also be convenient to the consulting of user in the fixing backup file, manage, printing etc., provide users with the convenient.
Should be understood that application of the present invention is not limited to above-mentioned giving an example, for those of ordinary skills, can be improved according to the above description or conversion that all these improvement and conversion all should belong to the protection range of claims of the present invention.

Claims (10)

1. the backup method of a mobile phone various types of messages is characterized in that, comprises step:
A, when the need backup messages, obtain all content of text in this need backup message body by the character string pointer in the message structure;
The application program interface function of B, the file operation that provides by cell phone platform is created backup file;
C, every backup a piece of news then in calling interface function this need backup message body that will obtain all content of text write backup file in order.
2. according to the backup method of the described mobile phone various types of messages of claim 1, it is characterized in that, comprise also before the described steps A that step: a, reception user's operational order is selected the message backup functionality.
3. according to the backup method of the described mobile phone various types of messages of claim 1, it is characterized in that described various types of messages is that the form with structure exists on the application layer of mobile phone, wherein the particular content of message then is to preserve with the form of character string.
4. according to the backup method of the described mobile phone various types of messages of claim 1, it is characterized in that the backup file text formatting of described establishment is appointed as the TXT text formatting, the filename of establishment and path are imported described interface function into as parameter.
5. according to the backup method of the described mobile phone various types of messages of claim 1, it is characterized in that described step C specifically comprises: the ending that is provided with to described backup file according to a parameter of importing writes all content of text that obtained; The memory address that writes all content of text that obtained is to import this interface function into the parameter of pointer form, adds operation to finish backup.
6. according to the backup method of each described mobile phone various types of messages of claim 1-5, it is characterized in that described message comprises short message, multimedia message, instant message.
7. the back-up device of a mobile phone various types of messages is characterized in that, comprising:
The text acquisition module is used for obtaining all content of text in this need backup message body by the character string pointer in the message structure when needing backup messages;
The backup file creation module, the application program interface function that the file operation that provides by cell phone platform is provided is created backup file;
Backup module, be used for every backup a piece of news then calling interface function this all content of text of need backup message body that will obtain write backup file in order.
8. according to the back-up device of the described mobile phone various types of messages of claim 7, it is characterized in that it also comprises: receiver module, the operational order that is used to receive the user is selected the message backup functionality.
9. according to the back-up device of the described mobile phone various types of messages of claim 7, it is characterized in that the backup file text formatting of described establishment is appointed as the TXT text formatting, the filename of establishment and path are imported this interface function into as parameter.
10. according to the back-up device of the described mobile phone various types of messages of claim 7, it is characterized in that, described backup module further comprises: the ending backup units is used for writing all content of text that obtained according to the ending that a parameter of importing is provided with to described backup file; The memory address that writes all content of text that obtained is to import this interface function into the parameter of pointer form, adds operation to finish backup;
Described message comprises short message, multimedia message, instant message.
CN2011100283435A 2011-01-26 2011-01-26 Method and device for backing up various messages of mobile phone Pending CN102123202A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011100283435A CN102123202A (en) 2011-01-26 2011-01-26 Method and device for backing up various messages of mobile phone

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011100283435A CN102123202A (en) 2011-01-26 2011-01-26 Method and device for backing up various messages of mobile phone

Publications (1)

Publication Number Publication Date
CN102123202A true CN102123202A (en) 2011-07-13

Family

ID=44251650

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011100283435A Pending CN102123202A (en) 2011-01-26 2011-01-26 Method and device for backing up various messages of mobile phone

Country Status (1)

Country Link
CN (1) CN102123202A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102665179A (en) * 2012-05-03 2012-09-12 广东欧珀移动通信有限公司 Method for backing up and recovering MMS (multimedia messaging service) of mobile phone
CN105955848A (en) * 2016-05-05 2016-09-21 青岛海信移动通信技术股份有限公司 Method and device for information backup of mobile communication terminal

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1734433A (en) * 2004-04-15 2006-02-15 索尼株式会社 Information processing apparatus and method, program, and program recording medium
CN101394637A (en) * 2008-10-31 2009-03-25 飞图科技(北京)有限公司 Method for backup of same number short message in mobile phone
CN101426188A (en) * 2008-12-10 2009-05-06 无锡彩丰科技有限公司 Phone book storage method for mobile phone
CN101426052A (en) * 2008-12-05 2009-05-06 上海闻泰电子科技有限公司 Backup and importing method for address book and short message of mobile terminal
US20100042662A1 (en) * 2008-08-15 2010-02-18 Chi Mei Communication Systems, Inc. System and method for backing up a phonebook in an electronic device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1734433A (en) * 2004-04-15 2006-02-15 索尼株式会社 Information processing apparatus and method, program, and program recording medium
US20100042662A1 (en) * 2008-08-15 2010-02-18 Chi Mei Communication Systems, Inc. System and method for backing up a phonebook in an electronic device
CN101394637A (en) * 2008-10-31 2009-03-25 飞图科技(北京)有限公司 Method for backup of same number short message in mobile phone
CN101426052A (en) * 2008-12-05 2009-05-06 上海闻泰电子科技有限公司 Backup and importing method for address book and short message of mobile terminal
CN101426188A (en) * 2008-12-10 2009-05-06 无锡彩丰科技有限公司 Phone book storage method for mobile phone

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102665179A (en) * 2012-05-03 2012-09-12 广东欧珀移动通信有限公司 Method for backing up and recovering MMS (multimedia messaging service) of mobile phone
CN105955848A (en) * 2016-05-05 2016-09-21 青岛海信移动通信技术股份有限公司 Method and device for information backup of mobile communication terminal

Similar Documents

Publication Publication Date Title
CN101421714A (en) User experience for multimedia mobile note taking
CN109039857A (en) For providing the method and its electronic device of message function
CN102984357B (en) Contact person information managing method and managing device
CN102857636B (en) A kind of address list method of operation of mobile terminal and operating system
CN104333636B (en) The method and apparatus for managing communications records
CN106909447B (en) Background application processing method and device and terminal
CN103491256A (en) Communication processing method and terminal device
CN101702740B (en) Contact person searching method, contact person searching system and mobile communication terminal
CN104053131A (en) Text communication information processing method and related equipment
CN101610314B (en) Communication event processing method and device thereof
CN101715026B (en) Method and device for conveniently viewing and managing multimedia information of mobile terminal
CN102932533B (en) Method and device for third party application program to call contacts
CN101106742A (en) Device and method for self destruction of SMS
CN102821181B (en) A kind of two-dimension code information storage method and mobile terminal
CN101754138A (en) Method and system for automatically deleting message and mobile terminal
CN101931702A (en) Communication method and terminal with interpersonal relationship network
CN104361089A (en) Cross-platform document management system based on Qt
CN102316507A (en) Method for detecting mobile terminal network signal, system and mobile terminal thereof
CN101945156A (en) Method and device for backuping data information of mobile terminal
CN102123202A (en) Method and device for backing up various messages of mobile phone
CN103533130B (en) A kind of method deleting associated person information and mobile terminal
CN102970401A (en) Method and device for recoding contact information
CN103873631A (en) Method and device for displaying call interface of mobile terminal
CN101820597A (en) Text extract forwarding method and system
CN103595845A (en) Method of storing communication record in subscriber identity module/user identity model (SIM/UIM), apparatus and terminal thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20110713