The content of the invention
It is an object of the invention to provide a kind of method of backup application operational factor, to realize external memory card and shifting
The internal memory of dynamic terminal stores the operational factor of application program jointly, so as to avoid losing for after external memory card is unloaded operational factor
Lose.
It is a further object of the present invention to provide a kind of mobile terminal of backup application operational factor, to realize that outside is deposited
The internal memory of card storage and mobile terminal stores the operational factor of application program jointly, so as to avoid running after external memory card is unloaded
The loss of parameter.
To achieve the above object, the invention provides a kind of method of backup application operational factor, including following step
Suddenly:
Judge whether the operational factor of application program is stored in external memory card;
The operational factor is backed up according to judged result and preserves the operational factor of backup to mobile terminal
In depositing.
Compared with prior art, the method for backup application operational factor of the present invention, first determines whether the fortune of application program
Whether row parameter is stored in external memory card, when operational factor is stored in external memory card, and backup operational factor simultaneously will
Operational factor after backup is preserved into the internal memory of mobile terminal, it is achieved thereby that the internal memory of external memory card and mobile terminal is total to
With storage running parameter, it is to avoid the loss of operational factor after external memory card is unloaded, Consumer's Experience is improved.
It is preferred that described " according to judged result back up the operational factor and by the operational factor of backup preserve to
In the internal memory of mobile terminal " also include before:
When the operational factor is stored in the external memory card, set up structure variable to record the fortune in real time
The property value of row parameter;
Judge whether the structure variable has renewal.
It is preferred that the structure variable includes sub- variable 1, sub- variable 2, sub- variable 3 and sub- variable 4, the sub- variable 1
The title of the application program is recorded, the sub- variable 2 records whether the operational factor is stored in the external memory card,
The sub- variable 3 records storage location of the operational factor in the external memory card, during the sub- record of variable 4 backup
Need to preserve the operational factor into the internal memory of mobile terminal.
It is preferred that " the judging whether the structure variable has renewal " is specially:
Judge whether the sub- variable 3 has renewal to obtain whether the operational factor updates.
It is preferred that described " join according to the operational factor after judged result backup updating and by the operation of backup
Number is preserved into the internal memory of mobile terminal " specifically include:
When the sub- variable 3 has renewal, according to the operational factor after the sub- backup updating of variable 4;
Judge whether the external memory card unloads;
When the external memory card is unloaded, the operational factor of backup is preserved into the internal memory of mobile terminal.
Accordingly, present invention also offers a kind of mobile terminal of backup application operational factor, including:
First judge module, for judging whether the operational factor of application program is stored in external memory card;And
Backup module, for according in the operational factor after judged result backup updating and preservation to mobile terminal
In depositing.
It is preferred that the mobile terminal of the backup application operational factor also includes:
Module is set up, for when the operational factor is stored in the external memory card, setting up structure variable simultaneously
Record the property value of the operational factor in real time by the structure variable;And
Second judge module, for judging whether the structure variable has renewal.
It is preferred that the structure variable includes sub- variable 1, sub- variable 2, sub- variable 3 and sub- variable 4, the sub- variable 1
The title of the application program is recorded, the sub- variable 2 records whether the operational factor is stored in the external memory card,
The sub- variable 3 records storage location of the operational factor in the external memory card, during the sub- record of variable 4 backup
Need to preserve the operational factor into the internal memory of mobile terminal.
It is preferred that second judge module is specially:
Judge whether the sub- variable 3 has renewal to obtain whether the operational factor updates.
It is preferred that the backup module includes:
Backup units, for when the sub- variable 3 has renewal, according to the fortune after the sub- backup updating of variable 4
Row parameter;
3rd judging unit, for judging whether the external memory card unloads;And
Memory cell, for when the external memory card is unloaded, the operational factor of backup to be preserved to mobile whole
In the internal memory at end.
By following description and with reference to accompanying drawing, the present invention will become more fully apparent, and these accompanying drawings are used to explain the present invention
Embodiment.
Embodiment
Element numbers similar in embodiments of the invention, accompanying drawing, which are described, with reference now to accompanying drawing represents similar element.This
Application program is any application such as Games Software, music player, qq etc. in mobile terminal in invention.
Fig. 1 is refer to, the workflow of the embodiment of method one of backup application operational factor of the present invention is described.Such as
Shown in Fig. 1, comprise the following steps:
Step S101, opens application program;
Step S102, mobile terminal traversal external memory card, judge external memory card whether carry, if so, then performing step
Rapid S103, conversely, performing step S108;
Step S103, judges whether the operational factor of application program being stored in external memory card, if judged result is
It is then to perform step S104, conversely, performing step S108;
Step S104, the operational factor of real-time records application program is simultaneously preserved into external memory card;When first, operation should
When using program, a newly-built file preserves operational factor in external memory card, when not being operation and external storage first
The existing file of the application program in card, then preserve the operational factor recorded in real time to existing this document in pressing from both sides;
Step S105, backup operational factor;
Step S106, judges whether external memory card is extracted or unloaded, when judged result when being, to perform step S107,
Conversely, performing step S104;
Step S107, the operational factor of backup is stored into the internal memory of mobile terminal;
Step S108, operational factor is preserved into the internal memory of mobile terminal, specifically, running the application program first
When, a newly-built file preserves operational factor in the internal memory of mobile terminal, conversely, if not run first, and internal memory
In the existing application program file, then operational factor is preserved to the existing file.
Fig. 2 is refer to, the method for describing backup application operational factor of the present invention is running a certain application journey first
Workflow during sequence.As shown in Fig. 2 comprising the following steps:
Step S201, opens application program;
Step S202, mobile terminal traversal external memory card, judge external memory card whether carry, if so, then performing step
Rapid S203, conversely, performing step S212;
Step S203, judges whether the operational factor of application program being stored in external memory card, if judged result is
It is then to perform step S204, conversely, performing step S212;When operational factor is stored in mobile terminal(Such as mobile phone)Internal memory
When middle, the problem of be not in involved in background technology;
At present, when application program being installed, typically all it is defaulted as the operational factor of application program being stored in external storage
In card, when carrying out one button installation especially by mobile phone assistant, user will not be typically allowed independently to select the preservation position of operational factor
Put, but be defaulted as being stored in external memory card;
Step S204, sets up the files such as operational factor of the file to preserve application program in external memory card,
File A is such as set up, the operational factor of application program is stored in file A during application program is run, such as should
It is music player with program, now operational factor is that user opens broadcasting record, the broadcasting mould set after music player
Formula(Such as single circulation)Etc. data;
Step S205, the operational factor of real-time records application program is simultaneously preserved to the file set up;
Structure variable is set up at step S206, the AP ends of mobile terminal;Structure variable includes sub- variable in the present embodiment
1st, sub- variable 2, sub- variable 3 and sub- variable 4;The mobile terminals such as most mobile phone are all containing two processors, operating system, use
Family interface and application program are all at Application Processor (AP)(Application processor)Upper to perform, AP typically uses ARM
The CPU of chip, and mobile phone radio frequency the communication control software, then operate on another separated CPU, this CPU is referred to as
Baseband Processor(BP)(BBP);
Step S207, the property value of operational factor is recorded by structure variable in real time;Specifically, the attribute of operational factor
Whether title, the operational factor that value includes application program are stored in external memory card, operational factor is in external memory card
Storage location and operational factor;Wherein, the title of the sub- records application program of variable 1, the sub- records application program of variable 2 whether
Operational factor is stored in external memory card, the position of the operational factor of the sub- records application program of variable 3 in external memory card
(As in file A), sub- variable 4, which is recorded, to be needed to be stored in mobile terminal(Such as mobile phone)The operation ginseng of application program in internal memory
Count and when sub- variable 3 updates, operational factor backed up according to sub- variable 4, wherein the operational factor is real-time
Update, illustrated below so that application program is a certain Games Software as an example, such as:Application program is " plant Great War corpse ",
Now, the data of structure variable record include:Sub- variable 1 records entitled " the plant Great War corpse " of the application program, son
The operational factor that variable 2 records the application program is stored in external memory card, and sub- variable 3 records this and answers operational factor in outside
Storage location in storage card(Such as file A), sub- variable 4, which is recorded, needs to be stored in the operation of the application program in mobile phone EMS memory
Parameter, now operational factor include the game parameter such as fraction, clearance number that user plays game, similarly, when application program is music
During player, the data such as play mode that operational factor can be recorded and set for the broadcasting of user;
Step S208, judges whether the sub- variable 3 in structure variable updates, that is, whether more to judge the operational factor of record
Newly, when judged result when being, to perform step S209, conversely, performing step S207;Specifically deterministic process is:Detect sub- variable 2
With sub- variable 3, when group variable 2 is that operational factor is stored in external memory card, judge whether sub- variable 3 has renewal, group
When variable 3 has renewal, i.e., when operational factor is stored in external memory card and operational factor has renewal, perform step S209;
Step S209, according to the operational factor after the sub- backup updating of variable 4;
It should be noted that step S206 to step S209 is " to judge whether operational factor updates, when operational factor updates
When the operational factor after renewal is backed up " specific steps, certainly, the step for can also be realized by other method;
Step S210, judges whether external memory card is extracted or unloaded, when judged result when being, to perform step S211,
Conversely, performing step S207;
Step S211, the operational factor after backup is preserved into mobile phone EMS memory, that is, realizes external memory card and mobile phone
The common storage running parameter of internal memory;It should be noted that the present invention could be realized in the case where mobile terminal has internal memory, if
Mobile terminal does not have memory space, then can not realize;
Step S212, the file such as the operational factor that file is set up in the internal memory of mobile terminal to preserve application program.
It should be noted that user often runs an application program, sub- variable 2 can all update, because each run application
It is required for the operational factor of application program during more this time of new record operation to be stored in external memory card or preserve during program
In the internal memory of mobile terminal.Meanwhile, when user is operated to application program and the operational factor of application program is occurred more
After new, sub- variable 3 can be updated, specifically, sub- variable 3 is that variable is updated or be incremented by with time sequencing to be updated
's.Wherein it is updated with time sequencing specific as follows:In the processing of software, after a file updates, other application
Program will judge whether this file had renewal, be contrasted according to timestamp, such as, our some the 3rd
The game records of side can be updated with the object for appreciation game of user's not timing, and be exactly to see that these are swum if our mobile phone terminals judge
File where play updates either with or without temporal, if so, being just directly updated, is then stored in again in mobile phone EMS memory;
It is updated with incremental variable specific as follows:The mobile terminals such as mobile phone detect game file is operated after, variable meeting
Increase 1 (this is also the more commonly used processing mode in software, by the change of one state of variation-tracking, detect variable have from
Plus after, illustrate to have this file operated, so as to judge that file has renewal), then mobile phone terminal contrasts this again
Individual variable, if variable has renewal, illustrates that game is updated to this file, generally judges file according to the time
Whether update enough, and it is a standby method to judge whether file updates this method with incremental variable, when
Right this method can also be with the method for " being updated with time change " while being judged.
Fig. 3 is refer to, the method for backup application operational factor of the present invention is described after second and second
Run workflow during application program.As shown in figure 3, comprising the following steps:
Step S301, opens application program;
Step S302, mobile terminal traversal external memory card, judge external memory card whether carry, if so, then performing step
Rapid S303, conversely, performing step S313;
Step S303, judges whether the operational factor recorded before application program is stored in external memory card, if so,
Step S304 is performed, conversely, performing step S313;
Step S304, judges operational factor location in external memory card, i.e., where in external memory card
File, such as operational factor are stored in the file A in external memory card;Basis for estimation is:Applied when running one first
During program, application program can set up a file in external memory card(Such as file A)To preserve the fortune of this application program
The various files such as row parameter, afterwards, can update this document folder according to user to the usage record of application program(Such as file
A);
Step S305, reads operational factor and the loading of application program from external memory card, so that user can be from upper
Record once brings into operation application program, such as:User plays game the last time closes to the 8th, then now read application program
After operational factor and loading, user plays game directly being closed since the 8th, and without since closing the 1st;
Step S306, judges this time whether operation application program is stored in operational factor in external memory card, if so, then
Step S307 is performed, conversely, performing step S315;
Step S307, runs application program, and the operational factor of real-time records application program is simultaneously preserved to file(Such as file
Press from both sides A)It is interior;
Structure variable is set up at step S308, the AP ends of mobile terminal;
Step S309, passes through the property value of the operational factor of the real-time records application program of structure variable;
Step S310, judges whether the sub- variable 3 in structure variable has renewal, that is, judges the operational factor of application program
Whether update, when judged result when being, to perform step S311, conversely, performing step S309;Specific deterministic process is as follows, inspection
Sub- variable 2 and sub- variable 3 are surveyed, when group variable 2 is that operational factor is stored in external memory card, by judging that sub- variable 3 is
It is no to there is renewal to judge whether operational factor has renewal, such as:File where the application program recorded in group variable 3
When A has renewal, you can think that user is operated to application program, and then judge that operational factor has renewal;
Step S311, according to the operational factor of the sub- duplicated record of variable 4;
Step S312, judges whether external memory card is extracted or unloaded, when judged result when being, to perform step S313,
Conversely, performing step S309;
Step S313, the operational factor of backup is stored in mobile phone EMS memory;
Step S314, travels through the internal storage areas of mobile phone, finds the operation ginseng of the application program stored in mobile phone EMS memory
Count and load, perform step S306;
Step S315, the operational factor of real-time records application program is simultaneously preserved into the internal memory of mobile terminal.
Fig. 4 is refer to, the structural frames of the embodiment of mobile terminal one of backup application operational factor of the present invention are described
Figure.As shown in figure 4, the mobile terminal 1 00 of backup application operational factor includes:
First judge module 12, for judging whether the operational factor of application program is stored in external memory card;
Module 14 is set up, for setting up structure variable and recording the attribute of operational factor in real time by structure variable
Value;Specifically, structure variable includes sub- variable 1, sub- variable 2, sub- variable 3 and sub- variable 4, the sub- records application program of variable 1
Title, whether sub- variable 2 record operational factor is stored in external memory card, and the sub- record of variable 3 operational factor is deposited in outside
Storage location in card storage, needs to preserve the operational factor into the internal memory of mobile terminal during the sub- record of variable 4 backup;
Second judge module 16, for judging whether sub- variable 3 is updated to obtain whether operational factor updates;And
Backup module 18, for according to the operational factor after judged result backup updating and preserve to mobile terminal internal memory
In, specifically, backup module 18 includes backup units 181, the 3rd judging unit 183 and memory cell 185, backup units 181
When being updated for group variable 3, according to the operational factor after the sub- backup updating of variable 4, the 3rd judging unit 183 is used to judge outer
Whether portion's storage card unloads, and memory cell 185 is used for when external memory card is unloaded, and the operational factor of backup is preserved to movement
In the internal memory of terminal.
When the mobile terminal 1 00 of backup application operational factor of the present invention works, pass through the first judge module 12 first
Judge whether the operational factor of application program is stored in external memory card, if so, then setting up structure by setting up module 14
Variable and the property value for recording operational factor in real time by structure variable, then judge sub- variable by the second judge module 16
Whether 3 update, when group variable 3 updates, and by the operational factor after the backup updating of backup module 18 and preserves to mobile terminal
In 100 internal memory, it is achieved thereby that the common storage running parameter of the internal memory of external memory card and mobile terminal, it is to avoid when outside
The loss of operational factor, improves Consumer's Experience after storage card unloading.
Above in association with most preferred embodiment, invention has been described, but the invention is not limited in implementation disclosed above
Example, and modification, equivalent combinations that the various essence according to the present invention are carried out should be covered.