CN103440178B - The method and its mobile terminal of backup application operational factor - Google Patents
The method and its mobile terminal of backup application operational factor Download PDFInfo
- Publication number
- CN103440178B CN103440178B CN201310326725.5A CN201310326725A CN103440178B CN 103440178 B CN103440178 B CN 103440178B CN 201310326725 A CN201310326725 A CN 201310326725A CN 103440178 B CN103440178 B CN 103440178B
- Authority
- CN
- China
- Prior art keywords
- variable
- operational factor
- sub
- memory card
- external memory
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 27
- 238000010586 diagram Methods 0.000 description 2
- 238000004891 communication Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
Landscapes
- Mobile Radio Communication Systems (AREA)
- Telephone Function (AREA)
- Calculators And Similar Devices (AREA)
Abstract
本发明公开了一种备份应用程序运行参数的方法,包括以下步骤:判断应用程序的运行参数是否保存在外部存储卡中;根据判断结果备份所述运行参数并将备份的所述运行参数保存至移动终端的内存中。与现有技术相比,本发明备份应用程序运行参数的方法,首先判断应用程序的运行参数是否保存在外部存储卡中,当应用程序的运行参数保存在外部存储卡中时,备份更新后的运行参数并保存至移动终端的内存中,从而实现了外部存储卡与移动终端内存共同存储运行参数,避免了当外部存储卡卸载后运行参数的丢失,提高了用户体验。本发明同时公开了一种备份应用程序运行参数的移动终端。
The invention discloses a method for backing up operating parameters of an application program, comprising the following steps: judging whether the running parameters of the application program are stored in an external memory card; backing up the running parameters according to the judging result and saving the backed up running parameters to in the memory of the mobile terminal. Compared with the prior art, the method for backing up the operating parameters of the application program in the present invention first judges whether the operating parameters of the application program are stored in the external memory card, and when the operating parameters of the application program are stored in the external memory card, the updated The operating parameters are saved in the memory of the mobile terminal, so that the external memory card and the memory of the mobile terminal can jointly store the operating parameters, avoiding the loss of the operating parameters after the external memory card is unloaded, and improving user experience. The invention also discloses a mobile terminal for backing up application program running parameters.
Description
技术领域technical field
本发明涉及参数备份技术领域,更具体地涉及一种备份应用程序运行参数的方法及其移动终端。The invention relates to the technical field of parameter backup, and more particularly relates to a method for backing up running parameters of an application program and a mobile terminal thereof.
背景技术Background technique
当前,由于手机内存的限制,某些应用程序如游戏软件会安装在手机扩充的外部存储卡中,在这种情况下用户运行应用程序时的中间参数一般也会保存在外部存储卡中。因此,当用户卸载或取出外部存储卡后,用户之前运行某一应用程序的参数就全部丢失了,用户不能得到上一次运行应用程序时的参数记录,故此时用户只能重新开始运行应用程序,浪费用户时间、降低了用户体验。At present, due to the limitation of mobile phone memory, some applications such as game software will be installed in the external memory card expanded by the mobile phone. In this case, the intermediate parameters when the user runs the application program will generally be saved in the external memory card. Therefore, when the user uninstalls or takes out the external memory card, all the parameters of an application program run by the user before are lost, and the user cannot get the parameter record of the last time the application program was run, so the user can only restart the application program at this time. It wastes user time and reduces user experience.
因此,有必要提供一种备份应用程序运行参数的方法及其移动终端来克服上述缺陷。Therefore, it is necessary to provide a method for backing up operating parameters of an application program and a mobile terminal thereof to overcome the above defects.
发明内容Contents of the invention
本发明的目的是提供一种备份应用程序运行参数的方法,以实现外部存储卡与移动终端的内存共同存储应用程序的运行参数,从而避免当外部存储卡卸载后运行参数的丢失。The purpose of the present invention is to provide a method for backing up the operating parameters of the application program, so as to realize the common storage of the operating parameters of the application program by the external memory card and the internal memory of the mobile terminal, thereby avoiding the loss of the operating parameters after the external memory card is unloaded.
本发明的另一目的是提供一种备份应用程序运行参数的移动终端,以实现外部存储卡与移动终端的内存共同存储应用程序的运行参数,从而避免当外部存储卡卸载后运行参数的丢失。Another object of the present invention is to provide a mobile terminal for backing up the operating parameters of the application program, so that the external memory card and the internal memory of the mobile terminal can jointly store the operating parameters of the application program, thereby avoiding the loss of the operating parameters when the external memory card is uninstalled.
为实现上述目的,本发明提供了一种备份应用程序运行参数的方法,包括以下步骤:In order to achieve the above object, the present invention provides a method for backing up application program operating parameters, comprising the following steps:
判断应用程序的运行参数是否保存在外部存储卡中;Determine whether the operating parameters of the application are stored in the external memory card;
根据判断结果备份所述运行参数并将备份的所述运行参数保存至移动终端的内存中。The operating parameters are backed up according to the judgment result, and the backed-up operating parameters are stored in the memory of the mobile terminal.
与现有技术相比,本发明备份应用程序运行参数的方法,首先判断应用程序的运行参数是否保存在外部存储卡中,当运行参数保存在外部存储卡中时,备份运行参数并将备份后的运行参数保存至移动终端的内存中,从而实现了外部存储卡与移动终端的内存共同存储运行参数,避免了当外部存储卡卸载后运行参数的丢失,提高了用户体验。Compared with the prior art, the method for backing up the operating parameters of the application program in the present invention firstly judges whether the operating parameters of the application program are stored in the external memory card, and when the operating parameters are stored in the external memory card, the operating parameters are backed up and then backed up. The operating parameters of the mobile terminal are stored in the internal memory of the mobile terminal, so that the external memory card and the internal memory of the mobile terminal can jointly store the operating parameters, avoiding the loss of the operating parameters after the external memory card is unloaded, and improving user experience.
较佳地,所述“根据判断结果备份所述运行参数并将备份的所述运行参数保存至移动终端的内存中”之前还包括:Preferably, before "backing up the operating parameters according to the judgment result and saving the backed-up operating parameters into the memory of the mobile terminal" also includes:
当所述运行参数保存在所述外部存储卡中时,建立结构体变量以实时记录所述运行参数的属性值;When the operating parameters are stored in the external memory card, a structure variable is established to record the attribute values of the operating parameters in real time;
判断所述结构体变量是否有更新。Determine whether the structure variable is updated.
较佳地,所述结构体变量包括子变量1、子变量2、子变量3和子变量4,所述子变量1记录所述应用程序的名称,所述子变量2记录所述运行参数是否保存在所述外部存储卡中,所述子变量3记录所述运行参数在所述外部存储卡中的存储位置,所述子变量4记录备份时需要保存至移动终端的内存中的所述运行参数。Preferably, the structure variable includes sub-variable 1, sub-variable 2, sub-variable 3 and sub-variable 4, the sub-variable 1 records the name of the application program, and the sub-variable 2 records whether the operating parameters are saved In the external memory card, the sub-variable 3 records the storage location of the operating parameters in the external memory card, and the sub-variable 4 records the operating parameters that need to be stored in the internal memory of the mobile terminal during backup .
较佳地,所述“判断所述结构体变量是否有更新”具体为:Preferably, the "judging whether the structure variable has been updated" is specifically:
判断所述子变量3是否有更新以得到所述运行参数是否更新。Judging whether the sub-variable 3 is updated to obtain whether the operating parameters are updated.
较佳地,所述“根据判断结果备份更新后的所述运行参数并将备份的所述运行参数保存至移动终端的内存中”具体包括:Preferably, the "backing up the updated operating parameters according to the judgment result and saving the backed-up operating parameters into the memory of the mobile terminal" specifically includes:
当所述子变量3有更新时,根据所述子变量4备份更新后的所述运行参数;When the sub-variable 3 is updated, back up the updated operating parameters according to the sub-variable 4;
判断所述外部存储卡是否卸载;judging whether the external memory card is uninstalled;
当所述外部存储卡卸载时,将备份的所述运行参数保存至移动终端的内存中。When the external memory card is unloaded, the backup operation parameters are saved in the memory of the mobile terminal.
相应的,本发明还提供了一种备份应用程序运行参数的移动终端,包括:Correspondingly, the present invention also provides a mobile terminal for backing up application program running parameters, including:
第一判断模块,用于判断应用程序的运行参数是否保存在外部存储卡中;以及The first judging module is used to judge whether the operating parameters of the application program are stored in the external memory card; and
备份模块,用于根据判断结果备份更新后的所述运行参数并保存至移动终端的内存中。The backup module is used for backing up the updated operating parameters according to the judgment result and storing them in the memory of the mobile terminal.
较佳地,所述备份应用程序运行参数的移动终端还包括:Preferably, the mobile terminal for backing up the running parameters of the application program also includes:
建立模块,用于当所述运行参数保存在所述外部存储卡中时,建立结构体变量并通过所述结构体变量实时记录所述运行参数的属性值;以及A building module, used to create a structure variable and record the attribute value of the operation parameter in real time through the structure variable when the operation parameter is stored in the external memory card; and
第二判断模块,用于判断所述结构体变量是否有更新。The second judging module is used to judge whether the structure variable has been updated.
较佳地,所述结构体变量包括子变量1、子变量2、子变量3和子变量4,所述子变量1记录所述应用程序的名称,所述子变量2记录所述运行参数是否保存在所述外部存储卡中,所述子变量3记录所述运行参数在所述外部存储卡中的存储位置,所述子变量4记录备份时需要保存至移动终端的内存中的所述运行参数。Preferably, the structure variable includes sub-variable 1, sub-variable 2, sub-variable 3 and sub-variable 4, the sub-variable 1 records the name of the application program, and the sub-variable 2 records whether the operating parameters are saved In the external memory card, the sub-variable 3 records the storage location of the operating parameters in the external memory card, and the sub-variable 4 records the operating parameters that need to be stored in the internal memory of the mobile terminal during backup .
较佳地,所述第二判断模块具体为:Preferably, the second judging module is specifically:
判断所述子变量3是否有更新以得到所述运行参数是否更新。Judging whether the sub-variable 3 is updated to obtain whether the operating parameters are updated.
较佳地,所述备份模块包括:Preferably, the backup module includes:
备份单元,用于当所述子变量3有更新时,根据所述子变量4备份更新后的所述运行参数;A backup unit, configured to back up the updated operating parameters according to the sub-variable 4 when the sub-variable 3 is updated;
第三判断单元,用于判断所述外部存储卡是否卸载;以及A third judging unit, configured to judge whether the external memory card is uninstalled; and
存储单元,用于当所述外部存储卡卸载时,将备份的所述运行参数保存至移动终端的内存中。The storage unit is configured to save the backed-up operating parameters into the internal memory of the mobile terminal when the external memory card is unmounted.
通过以下的描述并结合附图,本发明将变得更加清晰,这些附图用于解释本发明的实施例。The present invention will become clearer through the following description in conjunction with the accompanying drawings, which are used to explain the embodiments of the present invention.
附图说明Description of drawings
图1为本发明备份应用程序运行参数的方法一实施例的工作流程图。FIG. 1 is a flowchart of an embodiment of a method for backing up operating parameters of an application program according to the present invention.
图2为本发明备份应用程序运行参数的方法首次运行应用程序时一实施例的工作流程图。Fig. 2 is a working flow chart of an embodiment of the method for backing up the running parameters of the application program according to the present invention when the application program is run for the first time.
图3为本发明备份应用程序运行参数的方法第二次及第二次以后运行应用程序时一实施例的工作流程图。Fig. 3 is a working flow chart of an embodiment of the method for backing up the operating parameters of an application program in the present invention when the application program is run for the second time and after the second time.
图4为本发明备份应用程序运行参数的移动终端一实施例的结构框图。FIG. 4 is a structural block diagram of an embodiment of a mobile terminal for backing up application running parameters according to the present invention.
具体实施方式detailed description
现在参考附图描述本发明的实施例,附图中类似的元件标号代表类似的元件。本发明中应用程序为移动终端中的任意应用程序如游戏软件、音乐播放器、qq等。Embodiments of the present invention will now be described with reference to the drawings, in which like reference numerals represent like elements. The application program in the present invention is any application program in the mobile terminal such as game software, music player, qq and so on.
请参考图1,描述了本发明备份应用程序运行参数的方法一实施例的工作流程。如图1所示,包括以下步骤:Please refer to FIG. 1 , which describes the workflow of an embodiment of the method for backing up application running parameters in the present invention. As shown in Figure 1, the following steps are included:
步骤S101,开启应用程序;Step S101, start the application program;
步骤S102,移动终端遍历外部存储卡,判断外部存储卡是否挂载,若是,则执行步骤S103,反之,执行步骤S108;Step S102, the mobile terminal traverses the external memory card to determine whether the external memory card is mounted, if so, execute step S103, otherwise, execute step S108;
步骤S103,判断是否将应用程序的运行参数保存在外部存储卡中,若判断结果为是,则执行步骤S104,反之,执行步骤S108;Step S103, judging whether to save the operating parameters of the application program in the external memory card, if the judging result is yes, go to step S104, otherwise go to step S108;
步骤S104,实时记录应用程序的运行参数并保存至外部存储卡中;当首次运行应用程序时,在外部存储卡中新建一个文件夹来保存运行参数,当不是首次运行、且外部存储卡中已有该应用程序的文件夹,则将实时记录的运行参数保存至已有的该文件夹内;Step S104, record the operating parameters of the application program in real time and save them in the external memory card; when the application program is run for the first time, create a new folder in the external memory card to save the operating parameters; If there is a folder of the application program, save the operating parameters recorded in real time to the existing folder;
步骤S105,备份运行参数;Step S105, backup operating parameters;
步骤S106,判断外部存储卡是否拔出或卸载,当判断结果为是时,执行步骤S107,反之,执行步骤S104;Step S106, judging whether the external memory card is pulled out or uninstalled, when the judging result is yes, go to step S107, otherwise, go to step S104;
步骤S107,将备份的运行参数存储至移动终端的内存中;Step S107, storing the backup operating parameters in the memory of the mobile terminal;
步骤S108,将运行参数保存至移动终端的内存中,具体的,首次运行该应用程序时,在移动终端的内存中新建一个文件夹来保存运行参数,反之,若不是首次运行,且内存中已有该应用程序的文件夹,则将运行参数保存至该已有的文件夹内。Step S108, save the running parameters to the memory of the mobile terminal. Specifically, when running the application program for the first time, create a folder in the memory of the mobile terminal to save the running parameters; If there is a folder for the application program, save the running parameters to the existing folder.
请参考图2,描述了本发明备份应用程序运行参数的方法在首次运行某一应用程序时的工作流程。如图2所示,包括以下步骤:Please refer to FIG. 2 , which describes the workflow of the method for backing up the operating parameters of the application program when running an application program for the first time in the present invention. As shown in Figure 2, it includes the following steps:
步骤S201,开启应用程序;Step S201, start the application program;
步骤S202,移动终端遍历外部存储卡,判断外部存储卡是否挂载,若是,则执行步骤S203,反之,执行步骤S212;Step S202, the mobile terminal traverses the external memory card to determine whether the external memory card is mounted, if so, execute step S203, otherwise, execute step S212;
步骤S203,判断是否将应用程序的运行参数保存在外部存储卡中,若判断结果为是,则执行步骤S204,反之,执行步骤S212;当把运行参数保存在移动终端(如手机)的内存中时,不会出现背景技术中所涉及的问题;Step S203, judge whether to save the operating parameters of the application program in the external memory card, if the judgment result is yes, then execute step S204, otherwise, execute step S212; when saving the operating parameters in the memory of the mobile terminal (such as a mobile phone) , the problems involved in the background technology will not appear;
目前,安装应用程序时,一般都是默认为将应用程序的运行参数保存在外部存储卡中,尤其是通过手机助手进行一键安装时,一般不会让用户自主选择运行参数的保存位置,而是默认为保存在外部存储卡中;At present, when installing an application, it is generally defaulted to save the operating parameters of the application in the external memory card, especially when the one-key installation is performed through the mobile assistant, the user is generally not allowed to choose the storage location of the operating parameters independently, but is saved in the external memory card by default;
步骤S204,在外部存储卡中建立一个文件夹来保存应用程序的运行参数等文件,如建立文件夹A,在运行应用程序的过程中将应用程序的运行参数保存在文件夹A内,如应用程序为音乐播放器,此时运行参数为用户打开音乐播放器后的播放记录、设置的播放模式(如单曲循环)等数据;Step S204, create a folder in the external memory card to save files such as the operating parameters of the application program, such as creating a folder A, and save the operating parameters of the application program in folder A during the process of running the application program, such as the application program The program is a music player, and the operating parameters at this time are data such as the playback record after the user opens the music player, the set playback mode (such as a single loop), etc.;
步骤S205,实时记录应用程序的运行参数并保存至建立的文件夹内;Step S205, recording the operating parameters of the application program in real time and saving them in the created folder;
步骤S206,移动终端的AP端建立结构体变量;本实施例中结构体变量包括子变量1、子变量2、子变量3和子变量4;大多数的手机等移动终端都含有两个处理器,操作系统、用户界面和应用程序都在Application Processor(AP)(应用处理器)上执行,AP一般采用ARM芯片的CPU,而手机射频通讯控制软件,则运行在另一个分开的CPU上,这个CPU称为Baseband Processor(BP)(基带处理器);Step S206, the AP end of the mobile terminal establishes a structure variable; in this embodiment, the structure variable includes subvariable 1, subvariable 2, subvariable 3 and subvariable 4; most mobile terminals such as mobile phones contain two processors, The operating system, user interface and application programs are all executed on the Application Processor (AP). The AP generally uses the CPU of the ARM chip, while the radio frequency communication control software of the mobile phone runs on another separate CPU. This CPU Called Baseband Processor (BP) (baseband processor);
步骤S207,通过结构体变量实时记录运行参数的属性值;具体的,运行参数的属性值包括应用程序的名称、运行参数是否存储在外部存储卡中、运行参数在外部存储卡中的存储位置以及运行参数;其中,子变量1记录应用程序的名称,子变量2记录应用程序是否把运行参数保存在外部存储卡中,子变量3记录应用程序的运行参数在外部存储卡中的位置(如文件夹A内),子变量4记录需要存储在移动终端(如手机)内存中的应用程序的运行参数、并在子变量3发生更新时,根据子变量4对运行参数进行备份,,其中该运行参数是实时更新的,下面以应用程序为某一游戏软件为例进行说明,如:应用程序为“植物大战僵尸”,此时,结构体变量记录的数据包括:子变量1记录该应用程序的名称为“植物大战僵尸”,子变量2记录该应用程序的运行参数保存在外部存储卡中,子变量3记录该应运行参数在外部存储卡中的存储位置(如文件夹A),子变量4记录需要存储在手机内存中的应用程序的运行参数,此时运行参数包括用户玩游戏的分数、通关数等游戏参数,同理,当应用程序为音乐播放器时,运行参数可以为用户的播放记录以及设置的播放模式等数据;Step S207, record the attribute value of the operating parameter in real time through the structure variable; specifically, the attribute value of the operating parameter includes the name of the application program, whether the operating parameter is stored in the external memory card, the storage location of the operating parameter in the external memory card, and Operating parameters; wherein, sub-variable 1 records the name of the application, sub-variable 2 records whether the application saves the operating parameters in the external memory card, and sub-variable 3 records the position of the operating parameters of the application in the external memory card (such as file Folder A), sub-variable 4 records the operating parameters of the application that need to be stored in the memory of the mobile terminal (such as a mobile phone), and when sub-variable 3 is updated, the operating parameters are backed up according to sub-variable 4, wherein the operating Parameters are updated in real time. Let’s take the application as an example of a game software. For example, the application is “Plants vs. Zombies”. At this time, the data recorded by the structure variable includes: Subvariable 1 records the application’s The name is "Plants vs. Zombies", sub-variable 2 records that the running parameters of the application are stored in the external memory card, sub-variable 3 records the storage location of the running parameters in the external memory card (such as folder A), and sub-variable 4 Record the operating parameters of the application program that needs to be stored in the mobile phone memory. At this time, the operating parameters include game parameters such as the user's game score and the number of clearances. Similarly, when the application program is a music player, the operating parameters can be the user's Data such as playback records and set playback modes;
步骤S208,判断结构体变量中的子变量3是否更新,即判断记录的运行参数是否更新,当判断结果为是时,执行步骤S209,反之,执行步骤S207;具体判断过程为:检测子变量2和子变量3,当子变量2为运行参数保存在外部存储卡中时,判断子变量3是否有更新,当子变量3有更新时,即当运行参数保存在外部存储卡且运行参数有更新时,执行步骤S209;Step S208, judging whether the sub-variable 3 in the structure variable is updated, that is, judging whether the recorded operating parameters are updated, when the judging result is yes, go to step S209, otherwise, go to step S207; the specific judging process is: check the sub-variable 2 And sub-variable 3, when sub-variable 2 is stored in the external memory card for operating parameters, determine whether sub-variable 3 has been updated, when sub-variable 3 has been updated, that is, when the operating parameters are stored in the external memory card and the operating parameters have been updated , execute step S209;
步骤S209,根据子变量4备份更新后的运行参数;Step S209, back up the updated operating parameters according to the subvariable 4;
需要注意的是,步骤S206至步骤S209为“判断运行参数是否更新,当运行参数更新时对更新后的运行参数进行备份”的具体步骤,当然,这一步骤还可以通过其他方法实现;It should be noted that steps S206 to S209 are specific steps of "judging whether the operating parameters are updated, and backing up the updated operating parameters when the operating parameters are updated". Of course, this step can also be realized by other methods;
步骤S210,判断外部存储卡是否拔出或卸载,当判断结果为是时,执行步骤S211,反之,执行步骤S207;Step S210, judging whether the external memory card is pulled out or uninstalled, when the judging result is yes, go to step S211, otherwise, go to step S207;
步骤S211,将备份后的运行参数保存至手机内存中,即实现了外部存储卡与手机的内存共同存储运行参数;需要注意的是,本发明在移动终端有内存的情况下才能实现,若移动终端没有存储空间,则不能实现;Step S211, saving the backed-up operating parameters into the memory of the mobile phone, that is, the external memory card and the memory of the mobile phone can jointly store the operating parameters; it should be noted that the present invention can only be realized when the mobile terminal has a memory. If the terminal has no storage space, it cannot be realized;
步骤S212,在移动终端的内存中建立文件夹以保存应用程序的运行参数等文件。Step S212, creating a folder in the memory of the mobile terminal to save files such as operating parameters of the application program.
需要注意的是,用户每运行一次应用程序,子变量2都会更新,因为每次运行应用程序时都需要更新记录该次运行时应用程序的运行参数是保存在外部存储卡中还是保存在移动终端的内存中。同时,当用户对应用程序进行操作并使应用程序的运行参数发生更新后,子变量3会进行更新,具体的,子变量3是以时间顺序进行更新或递增变量进行更新的。其中以时间顺序进行更新具体如下:在软件的处理中,一旦一个文件更新后,其他应用程序要判断这个文件是否有过更新,就是根据时间戳来进行对比的,比如,我们的一些第三方的游戏记录会随着用户不定时的玩游戏进行更新,而我们手机端判断的话就是看这些游戏所在的文件有没有时间上的更新,如果有,就直接进行更新,然后再保存在手机内存中;以递增变量进行更新具体如下:手机等移动终端检测到游戏对文件夹进行操作后,变量会增1(这也是软件中比较常用的处理方式,通过变量跟踪一个状态的改变,检测到变量有自加后,说明有对这个文件夹进行了操作,从而判断出来文件有更新),然后手机端再对比这个变量,若变量有更新,则说明游戏对这个文件进行了更新,一般情况下根据时间判断文件是否更新已经足够了,而以递增变量判断文件是否更新这种方法只是一个备用的方法,当然这种方法也可以和“以时间变化进行更新”的方法同时进行判断。It should be noted that every time the user runs the application, the sub-variable 2 will be updated, because each time the application needs to be updated to record whether the running parameters of the application are saved in the external memory card or in the mobile terminal in memory. At the same time, when the user operates the application program and updates the operating parameters of the application program, the sub-variable 3 will be updated. Specifically, the sub-variable 3 is updated in chronological order or incrementally. The update in chronological order is as follows: In the processing of the software, once a file is updated, other applications need to judge whether the file has been updated, and compare it based on the timestamp. For example, some of our third-party The game record will be updated as the user plays the game from time to time, and our judgment on the mobile terminal is to see if the files where these games are located have been updated in terms of time. If so, we will update them directly and then save them in the mobile phone memory; The details of updating with increasing variables are as follows: after the mobile terminal such as mobile phone detects that the game operates on the folder, the variable will increase by 1 (this is also a common processing method in software, tracking a state change through variables, and detecting that the variable has its own After adding, it means that this folder has been operated, so it can be judged that the file has been updated), and then compare the variable on the mobile phone. If the variable is updated, it means that the game has updated the file. Generally, it is judged according to the time Whether the file is updated is enough, and the method of judging whether the file is updated by incrementing variables is only a backup method. Of course, this method can also be judged at the same time as the method of "updating with time changes".
请参考图3,描述了本发明备份应用程序运行参数的方法在第二次及第二次以后运行应用程序时的工作流程。如图3所示,包括以下步骤:Please refer to FIG. 3 , which describes the workflow of the method for backing up the operating parameters of the application program in the second time and after running the application program in the present invention. As shown in Figure 3, the following steps are included:
步骤S301,开启应用程序;Step S301, start the application program;
步骤S302,移动终端遍历外部存储卡,判断外部存储卡是否挂载,若是,则执行步骤S303,反之,执行步骤S313;Step S302, the mobile terminal traverses the external memory card to determine whether the external memory card is mounted, if so, execute step S303, otherwise, execute step S313;
步骤S303,判断应用程序之前已记录的运行参数是否保存在外部存储卡中,若是,执行步骤S304,反之,执行步骤S313;Step S303, judging whether the previously recorded operating parameters of the application program are stored in the external memory card, if so, execute step S304, otherwise, execute step S313;
步骤S304,判断运行参数在外部存储卡中所处的位置,即在外部存储卡中所在的文件夹,如运行参数保存在外部存储卡中的文件夹A内;判断依据为:当首次运行一个应用程序时,应用程序会在外部存储卡中建立一个文件夹(如文件夹A)来保存此应用程序的运行参数等各种文件,之后,会根据用户对应用程序的使用记录来更新该文件夹(如文件夹A);Step S304, judging the location of the operating parameters in the external memory card, that is, the folder in the external memory card, such as the operating parameters are stored in folder A in the external memory card; the basis for judging is: when running a When using the application program, the application program will create a folder (such as folder A) in the external memory card to save various files such as the operating parameters of the application program, and then update the file according to the user's usage records of the application program folder (such as folder A);
步骤S305,从外部存储卡中读取应用程序的运行参数并加载,从而用户可以从上一次的记录开始运行应用程序,如:用户上一次玩游戏到第8关,那么此时读取应用程序的运行参数并加载后,用户可以直接从第8关开始玩游戏,而不用从第1关开始;Step S305, read and load the operating parameters of the application program from the external memory card, so that the user can start running the application program from the last record, such as: the user played the game to level 8 last time, then read the application program at this time After the running parameters are loaded and loaded, the user can start playing the game directly from the 8th level instead of starting from the 1st level;
步骤S306,判断此次运行应用程序是否将运行参数保存在外部存储卡中,若是,则执行步骤S307,反之,执行步骤S315;Step S306, judging whether the running application program saves the running parameters in the external memory card, if so, execute step S307, otherwise, execute step S315;
步骤S307,运行应用程序,实时记录应用程序的运行参数并保存至文件夹(如文件夹A)内;Step S307, run the application program, record the operating parameters of the application program in real time and save them in a folder (such as folder A);
步骤S308,移动终端的AP端建立结构体变量;Step S308, the AP side of the mobile terminal establishes a structure variable;
步骤S309,通过结构体变量实时记录应用程序的运行参数的属性值;Step S309, record the attribute value of the operating parameter of the application program in real time through the structure variable;
步骤S310,判断结构体变量中的子变量3是否有更新,即判断应用程序的运行参数是否更新,当判断结果为是时,执行步骤S311,反之,执行步骤S309;具体判断过程如下,检测子变量2和子变量3,当子变量2为运行参数保存在外部存储卡中时,通过判断子变量3是否有更新即可判断出运行参数是否有更新,如:当子变量3中记录的应用程序所在的文件夹A有更新时,即可认为用户对应用程序进行了操作,进而判断出运行参数有更新;Step S310, judging whether sub-variable 3 in the structure variable has been updated, that is, judging whether the operating parameters of the application program have been updated, when the judging result is yes, go to step S311, otherwise, go to step S309; Variable 2 and sub-variable 3, when sub-variable 2 is the operating parameter stored in the external memory card, it can be judged whether the operating parameter has been updated by judging whether the sub-variable 3 has been updated, such as: when the application program recorded in sub-variable 3 When the folder A where it is located is updated, it can be considered that the user has operated the application, and then it can be judged that the operating parameters have been updated;
步骤S311,根据子变量4备份记录的运行参数;Step S311, according to sub-variable 4 backup record operating parameters;
步骤S312,判断外部存储卡是否拔出或卸载,当判断结果为是时,执行步骤S313,反之,执行步骤S309;Step S312, judging whether the external memory card is pulled out or uninstalled, when the judging result is yes, go to step S313, otherwise, go to step S309;
步骤S313,将备份的运行参数保存在手机内存中;Step S313, saving the backup operating parameters in the memory of the mobile phone;
步骤S314,遍历手机的内部存储区域,找到手机内存中存储的应用程序的运行参数并加载,执行步骤S306;Step S314, traverse the internal storage area of the mobile phone, find and load the operating parameters of the application program stored in the mobile phone memory, and execute step S306;
步骤S315,实时记录应用程序的运行参数并保存至移动终端的内存中。Step S315, recording the operating parameters of the application program in real time and storing them in the memory of the mobile terminal.
请参考图4,描述了本发明备份应用程序运行参数的移动终端一实施例的结构框图。如图4所示,备份应用程序运行参数的移动终端100包括:Please refer to FIG. 4 , which depicts a structural block diagram of an embodiment of a mobile terminal for backing up application running parameters according to the present invention. As shown in Figure 4, the mobile terminal 100 for backing up the running parameters of the application program includes:
第一判断模块12,用于判断应用程序的运行参数是否保存在外部存储卡中;The first judging module 12 is used to judge whether the operating parameters of the application program are stored in the external memory card;
建立模块14,用于建立结构体变量并通过结构体变量实时记录运行参数的属性值;具体的,结构体变量包括子变量1、子变量2、子变量3和子变量4,子变量1记录应用程序的名称,子变量2记录运行参数是否保存在外部存储卡中,子变量3记录运行参数在外部存储卡中的存储位置,子变量4记录备份时需要保存至移动终端的内存中的运行参数;Establishment module 14, is used for establishing structure variable and real-time record the attribute value of operation parameter through structure variable; The name of the program, sub-variable 2 records whether the operating parameters are saved in the external memory card, sub-variable 3 records the storage location of the operating parameters in the external memory card, and sub-variable 4 records the operating parameters that need to be saved in the memory of the mobile terminal during backup ;
第二判断模块16,用于判断子变量3是否更新以获得运行参数是否更新;以及The second judging module 16 is used to judge whether the sub-variable 3 is updated to obtain whether the operating parameters are updated; and
备份模块18,用于根据判断结果备份更新后的运行参数并保存至移动终端的内存中,具体的,备份模块18包括备份单元181、第三判断单元183和存储单元185,备份单元181用于当子变量3更新时,根据子变量4备份更新后的运行参数,第三判断单元183用于判断外部存储卡是否卸载,存储单元185用于当外部存储卡卸载时,将备份的运行参数保存至移动终端的内存中。The backup module 18 is used to back up the updated operating parameters according to the judgment result and save them in the memory of the mobile terminal. Specifically, the backup module 18 includes a backup unit 181, a third judgment unit 183 and a storage unit 185. The backup unit 181 is used for When the sub-variable 3 is updated, the updated operating parameters are backed up according to the sub-variable 4, the third judging unit 183 is used to judge whether the external memory card is unloaded, and the storage unit 185 is used to save the backed-up operating parameters when the external memory card is unloaded. to the memory of the mobile terminal.
本发明备份应用程序运行参数的移动终端100工作时,首先通过第一判断模块12判断应用程序的运行参数是否保存在外部存储卡中,若是,则通过建立模块14建立结构体变量并通过结构体变量实时记录运行参数的属性值,然后通过第二判断模块16判断子变量3是否更新,当子变量3更新时,通过备份模块18备份更新后的运行参数并保存至移动终端100的内存中,从而实现了外部存储卡与移动终端的内存共同存储运行参数,避免了当外部存储卡卸载后运行参数的丢失,提高了用户体验。When the mobile terminal 100 of the present invention backs up the operating parameters of the application program is working, first judge whether the operating parameters of the application program are stored in the external memory card through the first judging module 12, and if so, establish the structure variable through the establishing module 14 and pass the structure variable The attribute value of the variable real-time recording operation parameter, then judge whether the sub-variable 3 is updated by the second judging module 16, when the sub-variable 3 is updated, the operating parameter after the backup module 18 is backed up and stored in the internal memory of the mobile terminal 100, Therefore, the external memory card and the internal memory of the mobile terminal can jointly store operating parameters, avoiding the loss of operating parameters after the external memory card is unloaded, and improving user experience.
以上结合最佳实施例对本发明进行了描述,但本发明并不局限于以上揭示的实施例,而应当涵盖各种根据本发明的本质进行的修改、等效组合。The present invention has been described above in conjunction with the best embodiments, but the present invention is not limited to the above-disclosed embodiments, but should cover various modifications and equivalent combinations made according to the essence of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310326725.5A CN103440178B (en) | 2013-07-30 | 2013-07-30 | The method and its mobile terminal of backup application operational factor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310326725.5A CN103440178B (en) | 2013-07-30 | 2013-07-30 | The method and its mobile terminal of backup application operational factor |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103440178A CN103440178A (en) | 2013-12-11 |
CN103440178B true CN103440178B (en) | 2017-11-07 |
Family
ID=49693869
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310326725.5A Expired - Fee Related CN103440178B (en) | 2013-07-30 | 2013-07-30 | The method and its mobile terminal of backup application operational factor |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103440178B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DK3101571T3 (en) * | 2015-06-03 | 2018-06-14 | Hoffmann La Roche | MEASUREMENT SYSTEM FOR MEASURING THE CONCENTRATION OF AN ANALYST WITH A SUBCUTAN ANALYST SENSOR |
CN107589904B (en) * | 2016-07-08 | 2021-09-03 | 中兴通讯股份有限公司 | SD card reading and writing method and device |
CN106528480A (en) * | 2016-12-16 | 2017-03-22 | 宇龙计算机通信科技(深圳)有限公司 | Method and system of preventing hot swapping data from missing, and terminal equipment |
CN107168783B (en) * | 2017-05-10 | 2021-01-19 | 深信服科技股份有限公司 | Data migration method and system |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101106769A (en) * | 2006-07-14 | 2008-01-16 | 英华达(上海)电子有限公司 | Device and method for quick information backup/recovery of mobile device |
CN102646042A (en) * | 2012-02-28 | 2012-08-22 | 华为终端有限公司 | Method and terminal device for storing application program data |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7788461B2 (en) * | 2004-04-15 | 2010-08-31 | International Business Machines Corporation | System and method for reclaiming allocated memory to reduce power in a data processing system |
US7590839B2 (en) * | 2005-03-22 | 2009-09-15 | Qnx Software Systems Gmbh & Co. Kg | System employing fast booting of application programs |
CN101739311A (en) * | 2009-12-15 | 2010-06-16 | 上海爱数软件有限公司 | Method and device for carrying out safety backup on memory data |
CN101853296A (en) * | 2010-05-28 | 2010-10-06 | 华为终端有限公司 | Method and device for managing application program |
CN102147755B (en) * | 2011-04-14 | 2012-07-04 | 中国人民解放军国防科学技术大学 | Multi-core system fault tolerance method based on memory caching technology |
CN102819471B (en) * | 2012-08-14 | 2016-02-17 | 深圳市杰科电子有限公司 | A kind of software backup system and method for device end |
CN103092315B (en) * | 2013-01-09 | 2015-11-25 | 惠州Tcl移动通信有限公司 | The mobile terminal of rear recovery application program can be restarted |
-
2013
- 2013-07-30 CN CN201310326725.5A patent/CN103440178B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101106769A (en) * | 2006-07-14 | 2008-01-16 | 英华达(上海)电子有限公司 | Device and method for quick information backup/recovery of mobile device |
CN102646042A (en) * | 2012-02-28 | 2012-08-22 | 华为终端有限公司 | Method and terminal device for storing application program data |
Also Published As
Publication number | Publication date |
---|---|
CN103440178A (en) | 2013-12-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8001400B2 (en) | Power consumption management for functional preservation in a battery-powered electronic device | |
CN103034516B (en) | Terminal and application program deployment method | |
CN103593217B (en) | A kind of hook key adjusting earphone starts method and the terminal of application order | |
CN103440178B (en) | The method and its mobile terminal of backup application operational factor | |
WO2014005328A1 (en) | Method and device for allocating resource | |
CN110876180B (en) | Power Consumption Processing Method, Device, Electronic Device, and Computer-Readable Medium | |
US20100017637A1 (en) | Portable electronic terminal and method therefor | |
WO2017036183A1 (en) | Differential upgrade package processing method and device, upgrade method, system and device | |
CN104063237A (en) | Application program management system and method | |
JPWO2007119550A1 (en) | System management device | |
CN103049287A (en) | Mobile terminal and method for installing mobile terminal applications | |
AU2021202098B2 (en) | Multimedia data playing method and terminal device | |
WO2013182157A1 (en) | Application program processing method and device | |
US7809363B2 (en) | Mobile phone terminal, program management method, and computer program for the same | |
CN106020426B (en) | Method and device for releasing wake-up lock | |
CN101667227A (en) | Method for setting game music and device | |
CN102902687B (en) | Resource file access method and device | |
CN107670276B (en) | game application control method and device | |
WO2016110056A1 (en) | Terminal and terminal power-saving method | |
JP6404702B2 (en) | Software determination device, terminal device, software determination method, software determination program, and communication system | |
CN105740009B (en) | Version upgrading method and terminal device | |
CN116382791A (en) | Protection method and electronic equipment for a configuration file | |
WO2015192451A1 (en) | Audio play method and device | |
CN108833668B (en) | Shutdown method and related product | |
CN106775849A (en) | Application information processing, application installation method, device and computer equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20170927 Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: GUANG DONG MING CHUANG SOFTWARE TECHNOLOGY Corp.,Ltd. |
|
TA01 | Transfer of patent application right | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CP01 | Change in the name or title of a patent holder | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20171107 |
|
CF01 | Termination of patent right due to non-payment of annual fee |