Summary of the invention
A kind of method that the purpose of this invention is to provide backup application operational factor, store the operational factor of application program jointly with the internal memory of realizing external memory card and mobile terminal, thereby avoid the loss of operational factor after the external memory card unloading.
Another object of the present invention is to provide a kind of mobile terminal of backup application operational factor, jointly stores the operational factor of application program with the internal memory of realizing external memory card and mobile terminal, thereby avoids the loss of operational factor after the external memory card unloading.
For achieving the above object, the invention provides a kind of method of backup application operational factor, comprise the following steps:
Whether the operational factor that judges application program is kept in external memory card;
Back up described operational factor and the described operational factor of backup is saved in the internal memory of mobile terminal according to judged result.
Compared with prior art, the method of backup application operational factor of the present invention, whether the operational factor that at first judges application program is kept in external memory card, when operational factor is kept in external memory card, the backup operational factor also is saved to the operational factor after backup in the internal memory of mobile terminal, thereby the common storage running parameter of the internal memory of having realized external memory card and mobile terminal, avoided the loss of operational factor after external memory card unloading, improved user's experience.
Preferably, described " according to judged result, back up described operational factor and the described operational factor of backup is saved in the internal memory of mobile terminal " also comprises before:
When described operational factor is kept in described external memory card, set up the property value of structure variable with the described operational factor of real time record;
Judge whether described structure variable has renewal.
Preferably, described structure variable comprises sub-variable 1, sub-variable 2, sub-variable 3 and sub-variable 4, described sub-variable 1 records the title of described application program, whether described sub-variable 2 records described operational factor and is kept in described external memory card, described sub-variable 3 records the memory location of described operational factor in described external memory card, the described operational factor that described sub-variable 4 records in the internal memory that need to be saved to mobile terminal while backing up.
Preferably, described " judging whether described structure variable has renewal " is specially:
Judge whether described sub-variable 3 has renewal whether to upgrade to obtain described operational factor.
Preferably, described " according to the described operational factor after the judged result backup updating and by the described operational factor of backup, being saved in the internal memory of mobile terminal " specifically comprises:
When described sub-variable 3 has renewal, according to the described operational factor after described sub-variable 4 backup updating;
Judge whether described external memory card unloads;
When described external memory card unloading, the described operational factor of backup is saved in the internal memory of mobile terminal.
Accordingly, the present invention also provides a kind of mobile terminal of backup application operational factor, comprising:
Whether the first judge module, be kept at external memory card for the operational factor that judges application program; And
Backup module, for the described operational factor according to after the judged result backup updating and be saved to the internal memory of mobile terminal.
Preferably, the mobile terminal of described backup application operational factor also comprises:
Set up module, for when described operational factor is kept at described external memory card, set up the structure variable also by the property value of the described operational factor of described structure variable real time record; And
Whether the second judge module, have renewal for judging described structure variable.
Preferably, described structure variable comprises sub-variable 1, sub-variable 2, sub-variable 3 and sub-variable 4, described sub-variable 1 records the title of described application program, whether described sub-variable 2 records described operational factor and is kept in described external memory card, described sub-variable 3 records the memory location of described operational factor in described external memory card, the described operational factor that described sub-variable 4 records in the internal memory that need to be saved to mobile terminal while backing up.
Preferably, described the second judge module is specially:
Judge whether described sub-variable 3 has renewal whether to upgrade to obtain described operational factor.
Preferably, described backup module comprises:
Backup units, for when described sub-variable 3 has renewal, according to the described operational factor after described sub-variable 4 backup updating;
Whether the 3rd judging unit, unload for judging described external memory card; And
Storage unit, for when described external memory card unloads, be saved to the described operational factor of backup in the internal memory of mobile terminal.
By following description also by reference to the accompanying drawings, it is more clear that the present invention will become, and these accompanying drawings are for explaining embodiments of the invention.
Embodiment
With reference now to accompanying drawing, describe embodiments of the invention, in accompanying drawing, similar element numbers represents similar element.In the present invention, application program is that any application in mobile terminal is as Games Software, music player, qq etc.
Please refer to Fig. 1, described the workflow of method one embodiment of backup application operational factor of the present invention.As shown in Figure 1, comprise the following steps:
Step S101, opening application program;
Step S102, mobile terminal traversal external memory card, judge whether carry of external memory card, if, perform step S103, otherwise, perform step S108;
Step S103, judge whether the operational factor of application program is kept in external memory card, if judgment result is that, is, performs step S104, otherwise, execution step S108;
Step S104, the operational factor of real time record application program also is saved in external memory card; When running application first, externally in storage card, a newly-built file is preserved operational factor, when be not move first and external memory card in the file of existing this application program, the operational factor of real time record is saved in existing this document folder;
Step S105, the backup operational factor;
Step S106, judge whether external memory card is extracted or unload, when judgment result is that while being, and execution step S107, otherwise, execution step S104;
Step S107, be stored to the operational factor of backup in the internal memory of mobile terminal;
Step S108, operational factor is saved in the internal memory of mobile terminal, concrete, while moving first this application program, in the internal memory of mobile terminal, a newly-built file is preserved operational factor, otherwise, if not operation first, and in internal memory, the file of existing this application program, be saved to operational factor in this existing file.
Please refer to Fig. 2, described the workflow of method when moving a certain application program first of backup application operational factor of the present invention.As shown in Figure 2, comprise the following steps:
Step S201, opening application program;
Step S202, mobile terminal traversal external memory card, judge whether carry of external memory card, if, perform step S203, otherwise, perform step S212;
Step S203, judge whether the operational factor of application program is kept in external memory card, if judgment result is that, is, performs step S204, otherwise, execution step S212; In the time of in the internal memory that operational factor is kept to mobile terminal (as mobile phone), not there will be problem related in background technology;
At present, during set up applications, be generally all to be defaulted as the operational factor of application program is kept in external memory card, while especially by the mobile phone assistant, carrying out a key installation, generally can not allow the user independently select the preservation position of operational factor, be kept in external memory card but be defaulted as;
Step S204, the folder of externally creating a file in storage card is preserved the files such as operational factor of application program, as set up file A, in the process run application, the operational factor of application program is kept in file A, as application program is music player, now operational factor is opened the broadcasting record after music player, the data such as play mode (as the single circulation) that arrange for the user;
Step S205, the operational factor of real time record application program also is saved in the file of foundation;
Step S206, the AP end of mobile terminal is set up the structure variable; In the present embodiment, the structure variable comprises sub-variable 1, sub-variable 2, sub-variable 3 and sub-variable 4; The mobile terminals such as most mobile phone all contain two processors, operating system, user interface and application program are all in the upper execution of Application Processor (AP) (application processor), AP generally adopts the CPU of ARM chip, and the mobile phone radio frequency the communication control software, operate in another CPU separated upper, this CPU is called Baseband Processor (BP) (baseband processor);
Step S207, by the property value of structure variable real time record operational factor, concrete, the property value of operational factor comprises whether the title of application program, operational factor are stored in external memory card, operational factor memory location and the operational factor in storage card externally, wherein, the title of sub-variable 1 records application program, whether sub-variable 2 records application program are kept at operational factor in external memory card, the operational factor of sub-variable 3 records application program is the position (in file A) in storage card externally, sub-variable 4 records need to be stored in the operational factor of the application program in mobile terminal (as mobile phone) internal memory, and when sub-variable 3 occurs to upgrade, according to 4 pairs of operational factors of sub-variable, backed up, , wherein this operational factor is real-time update, the application program of below take describes as a certain Games Software as example, as: application program is " plant Great War corpse ", now, the data of structure variable record comprise: the name that sub-variable 1 records this application program is called " plant Great War corpse ", the operational factor that sub-variable 2 records this application program is kept in external memory card, sub-variable 3 records this and answers the externally memory location (as file A) in storage card of operational factor, sub-variable 4 records need to be stored in the operational factor of the application program in mobile phone EMS memory, now operational factor comprises the mark that the user plays games, be open to the custom to count and wait game parameter, in like manner, when application program is music player, operational factor can be user's broadcasting record and the data such as play mode that arrange,
Step S208, judge whether the sub-variable 3 in the structure variable upgrades, and whether the operational factor of judgement record is upgraded, when judgment result is that while being, and execution step S209, otherwise, execution step S207; Concrete deterministic process is: detect sub-variable 2 and sub-variable 3, when group variable 2 is kept in external memory card for operational factor, judge whether sub-variable 3 has renewal, when group variable 3 has renewal, when operational factor is kept at external memory card and operational factor renewal is arranged, execution step S209;
Step S209, according to the operational factor after sub-variable 4 backup updating;
It should be noted that step S206 is to the concrete steps of step S209 for " judge whether operational factor is upgraded, when operational factor is upgraded, the operational factor after upgrading is backed up ", certainly, this step can also realize by additive method;
Step S210, judge whether external memory card is extracted or unload, when judgment result is that while being, and execution step S211, otherwise, execution step S207;
Step S211, be saved to the operational factor after backup in mobile phone EMS memory, realized the common storage running parameter of internal memory of external memory card and mobile phone; It should be noted that the present invention in the situation that mobile terminal has internal memory to realize, if mobile terminal does not have storage space, can not realize;
Step S212 sets up file to preserve the files such as operational factor of application program in the internal memory of mobile terminal.
It should be noted that, application program of the every operation of user, sub-variable 2 all can upgrade, because the operational factor of application program is kept in external memory card or is kept in the internal memory of mobile terminal while all needing more this operation of new record during the each run application program.Simultaneously, after user's application programs is operated and the operational factor of application program is upgraded, sub-variable 3 can be upgraded, concrete, and sub-variable 3 is upgraded with time sequencing or increases progressively variable and upgraded.Wherein with time sequencing, upgraded specific as follows: in the processing of software, once after a file update, other application programs will judge whether this file had renewal, according to timestamp, contrasted, such as, the third-party game records of our some can be upgraded along with playing games of user's not timing, and the words of our mobile phone terminal judgement are exactly to see that these files of playing places have the renewal on having no time, if have, just directly upgraded, and then be kept in mobile phone EMS memory, to increase progressively variable, upgraded specific as follows: the mobile terminals such as mobile phone detect the game file is operated after, variable can increase 1, and (this is also processing mode more commonly used in software, change by a state of variation-tracking, variable being detected has after adding, illustrated this file has been operated, thereby judge file renewal is arranged), then mobile phone terminal contrasts this variable again, if variable has renewal, the explanation game is upgraded this file, generally according to the time, judge whether file upgrades enough, and judge that to increase progressively variable whether file upgrades this method is a standby method, certain this method also can be judged with the method for " with the time, change and upgraded " simultaneously.
Please refer to Fig. 3, the workflow when method of having described backup application operational factor of the present invention runs application after reaching for the second time for the second time.As shown in Figure 3, comprise the following steps:
Step S301, opening application program;
Step S302, mobile terminal traversal external memory card, judge whether carry of external memory card, if, perform step S303, otherwise, perform step S313;
Step S303, judge whether the operational factor recorded before application program is kept in external memory card, if, execution step S304, otherwise, execution step S313;
Step S304, the judgement operational factor is residing position in storage card externally, i.e. and the file at place in storage card externally, as operational factor is kept in the file A in external memory card; Basis for estimation is: when moving an application program first, the application program folder (as file A) of externally creating a file in storage card is preserved the various files such as operational factor of this application program, afterwards, can upgrading this document with record and press from both sides (as file A) according to user's application programs;
Step S305, read the operational factor of application program and load from external memory card, thereby the user can run application from last start-of-record, as playing games the last time: user the 8th closes, after so now reading the operational factor loading of application program, the user can directly be closed and play games since the 8th, and need not close since the 1st;
Step S306, whether judgement this time runs application is kept at operational factor in external memory card, if, perform step S307, otherwise, execution step S315;
Step S307, run application, and the operational factor of real time record application program also is saved in file (as file A);
Step S308, the AP end of mobile terminal is set up the structure variable;
Step S309, the property value of the operational factor by structure variable real time record application program;
Step S310, judge whether the sub-variable 3 in the structure variable has renewal, judges whether the operational factor of application program is upgraded, when judgment result is that while being, and execution step S311, otherwise, execution step S309; Concrete deterministic process is as follows, detect sub-variable 2 and sub-variable 3, when group variable 2 is kept in external memory card for operational factor, by judging whether sub-variable 3 has renewal can judge operational factor whether renewal is arranged, as: when in group variable 3, the file A at the application program place of record has renewal, can think that user's application programs operates, and then judge operational factor renewal is arranged;
Step S311, according to the operational factor of sub-variable 4 duplicated records;
Step S312, judge whether external memory card is extracted or unload, when judgment result is that while being, and execution step S313, otherwise, execution step S309;
Step S313, be kept at the operational factor of backup in mobile phone EMS memory;
Step S314, the internal storage areas of traversal mobile phone, find the operational factor of the application program of storing in mobile phone EMS memory and load, execution step S306;
Step S315, the operational factor of real time record application program also is saved in the internal memory of mobile terminal.
Please refer to Fig. 4, described the structured flowchart of mobile terminal one embodiment of backup application operational factor of the present invention.As shown in Figure 4, the mobile terminal 100 of backup application operational factor comprises:
Whether the first judge module 12, be kept at external memory card for the operational factor that judges application program;
Set up module 14, for setting up the structure variable and passing through the property value of structure variable real time record operational factor; Concrete, the structure variable comprises sub-variable 1, sub-variable 2, sub-variable 3 and sub-variable 4, the title of sub-variable 1 records application program, whether sub-variable 2 records operational factor and is kept in external memory card, sub-variable 3 records the externally memory location in storage card of operational factor, need to be saved to the operational factor in the internal memory of mobile terminal during sub-variable 4 record backup;
The second judge module 16, for judging whether sub-variable 3 upgrades to obtain operational factor and whether upgrade; And
Backup module 18, for according to the operational factor after the judged result backup updating and be saved to the internal memory of mobile terminal, concrete, backup module 18 comprises backup units 181, the 3rd judging unit 183 and storage unit 185, when backup units 181 is upgraded for group variable 3, according to the operational factor after sub-variable 4 backup updating, the 3rd judging unit 183 is for judging whether external memory card unloads, storage unit 185, for when external memory card unloads, is saved to the operational factor of backup in the internal memory of mobile terminal.
When the mobile terminal 100 of backup application operational factor of the present invention is worked, at first judge by the first judge module 12 whether the operational factor of application program is kept in external memory card, if, by setting up module 14, set up the structure variable and pass through the property value of structure variable real time record operational factor, then judge by the second judge module 16 whether sub-variable 3 upgrades, when group variable 3 upgrades, by the operational factor after backup module 18 backup updating and be saved in the internal memory of mobile terminal 100, thereby the common storage running parameter of the internal memory of having realized external memory card and mobile terminal, avoided the loss of operational factor after the external memory card unloading, improved user's experience.
Above in conjunction with most preferred embodiment, invention has been described, but the present invention is not limited to the embodiment of above announcement, and should contain the various modifications of carrying out according to essence of the present invention, equivalent combinations.