CN105094919A - Application program starting method - Google Patents

Application program starting method Download PDF

Info

Publication number
CN105094919A
CN105094919A CN201510495560.3A CN201510495560A CN105094919A CN 105094919 A CN105094919 A CN 105094919A CN 201510495560 A CN201510495560 A CN 201510495560A CN 105094919 A CN105094919 A CN 105094919A
Authority
CN
China
Prior art keywords
file
application program
version
application
server
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
CN201510495560.3A
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.)
Hisense Group Co Ltd
Original Assignee
Hisense Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Group Co Ltd filed Critical Hisense Group Co Ltd
Priority to CN201510495560.3A priority Critical patent/CN105094919A/en
Publication of CN105094919A publication Critical patent/CN105094919A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides an application program starting method. The method comprises the steps that an application program starting command is responded, and whether an application program is started for the first time or not is judged; if yes, a file is downloaded from a server; if no, the integrity of the version of an application program file stored in a version folder is verified; if the verification is failed, the file is downloaded again from the server, if the verification succeeds, the file is updated in the server; the application program is started. By means of the application program starting method, the situation that the version integrity of the application program can be guaranteed when the application is started and updated is achieved.

Description

A kind of application program launching method
Technical field
The present invention relates to computer technology, especially relate to the application domain in electronic equipment, particularly a kind of application program launching method.
Background technology
Along with popularizing of the mobile terminal device such as smart mobile phone and iPad, people get used to the mode using applications client online gradually, and current domestic each large electric business, all have the applications client of oneself, this indicates, the business of applications client uses, and has started to display talent for the first time.The client of application program not only just on mobile device is so simple, and nowadays, the application software that a lot of equipment can be downloaded official of manufacturer carries out controlled in wireless to different products.Moreover, along with the rise of mobile Internet, increasing Internet enterprises, electric business's platform will be applied as one of main battle ground of selling.The fact shows, each large electric business's platform is also fairly obvious to the inclination of Mobile solution, reason is not only the flow increased every day, that the more important thing is due to mobile terminal of mobile telephone is convenient, for enterprise have accumulated more user, more have that the pretty good application of some Consumer's Experience makes the loyalty of user, liveness is obtained for and promotes significantly, thus serve critical effect for the extra earning of enterprise and following development.
At present, upgrade the application program in mobile device, usually need first to upload at server end the software needing to upgrade, manage corresponding software version number simultaneously.Application program determines whether needing to upgrade with local software version number by the software version number that comparison server end is up-to-date.Therefore, the independent development management software of the managerial demand of server software.All need Application developer to develop a large amount of codes to realize for the comparison of server software, the function of download, and after having downloaded, need to reinstall whole application program.
Due at every turn all will to the whole application file of server end request to complete renewal when mobile terminal starts, so not only to expend flow many for the slow and mobile terminal of interface requests speed, also can cause very large pressure to server end simultaneously.In addition, owing to upgrading original software that all can cover on mobile terminal at every turn, therefore, easily destroy the integrality of application program when there is unexpected interruption generation or unexpected power down, the situation causing application program to restart occurs.
Therefore, easily destroy application integrity when application program launching upgrades in prior art, in order to solve the problems of the technologies described above, special proposition the present invention.
Summary of the invention
Fundamental purpose of the present invention is a kind of application program launching method.
Object of the present invention can be achieved in the following manner:
The invention provides a kind of application program launching method, described method comprises: in response to application start instruction, judges whether described application program is start first time; If first time starts, then from server download file; Start if not first time, then verify the version integrality of the application file deposited in version file folder; If verify unsuccessful, then again from server download file, if verification succeeds, then from server update file; Start described application program.
Due to the realization of the inventive method, the version integrality of application program when application program launching is upgraded, can be ensured.
Accompanying drawing explanation
By reference to the accompanying drawings, the exemplary embodiment of signal describes various aspects of the present invention, wherein
Fig. 1 illustrates the applied environment structural drawing of the application program launching of the preferred embodiment of the present invention;
Fig. 2 illustrates the process flow diagram of the application program launching based on the preferred embodiment of the present invention.
Fig. 3 illustrates the process flow diagram of the application program launching based on another preferred embodiment of the present invention.
Fig. 4 illustrates the process flow diagram starting described application program according to the preferred embodiment of the invention.
Embodiment
In ensuing description, with reference to the accompanying drawing forming a part herein, and reference illustrates as the graphic mode can putting into practice exemplary embodiment of the present invention in this article.It being understood that the embodiment that also can utilize other, can to make in structure and operational change and do not depart from scope of the present invention.
As shown in Figure 1, in a preferred embodiment of the invention, in applied environment of the present invention, application program of mobile phone client is the mobile devices such as such as mobile phone, PAD, notebook computer, and utilizes the communication technologys such as GSM, CDMA, GPRS, TDMA, 3G, 4G, WIFI to communicate with server.The present invention, in order to realize the application program launching that can automatically upgrade, therefore, described mobile device is provided with the application program realizing difference in functionality, and described server is svn (version control system of open source code) server.Such as, user's set up applications all associated documents of described application program are stored in the default installation folder in embedded in mobile phone storer on mobile phone.Wherein, embed svn (version control system of open source code) client in application program of mobile phone, corresponding software version leaves on svn (version control system of open source code) server with bibliographic structure.Application program first time is when starting, first svn (version control system of the open source code) service that svn (version control system of open source code) client provides is started, described svn (version control system of open source code) service downloads up-to-date software version from svn (version control system of open source code) server, is placed in the version file folder under the data folder in user mobile phone internal memory.Copy to backup file folder from version file folder after download completes.Wherein, described version file folder, described backup file folder and described default installation folder are different.
Fig. 2 illustrates the process flow diagram of the application program launching that can automatically upgrade based on the preferred embodiment of the present invention.As shown in Figure 2, in the present invention, first, after triggering application program launching of the present invention, such as in response to application start instruction, in such as Android system touch screen application icon after, first start embed in the application svn (version control system of open source code) service.First svn (version control system of open source code) service judges whether application program is start first time.
Then, if application program starts, then from server download file first time.Describedly to comprise from server download file: download up-to-date application version from server, and deposit in version file folder.Under normal circumstances, downloaded in rear version file folder and should store the whole complete file of the application program with latest edition.But due to the unpredictability of the situations such as interruption, power-off, may there is incomplete situation in the application program in version file folder.Therefore in a preferred embodiment of the invention, then the version integrality of the application file deposited in version file folder is verified, if verification succeeds, the application file deposited in being pressed from both sides by version file copies in backup file folder, the use of backup file folder is the chance of success in order to be improved application program launching by redundancy backup, and its concrete using method will be described below.In the present invention, svn (version control system of open source code) client, does not need oneself to write a large amount of, complicated code and goes to realize.Because common application program does not support RMI (remote interface calls), RMI (remote interface calls) function that svn (version control system of open source code) the inside needs by we, oneself adds, form jar bag, such application program just well can support svn (version control system of open source code) client functionality.Adopt this scheme, for different application programs, do not need to write software upgrading code targetedly, only need to add relevant several jar bags and both can realize.
In above-mentioned judgement, if not initiating switchup, then verify the version integrality of the application file deposited in version file folder; If verify unsuccessful, then again from server download file, from the method for server download file as addressed above-mentioned steps.If verification succeeds, then from server update file.Otherwise directly enter and start described application program step.Describedly to comprise from server update file: the application file deposited during the up-to-date application file that contrast server stores and version file press from both sides.If there is no difference, then directly enter and start described application program step.If there are differences, then download differential file from server, and according to the application file in downloaded differential file upgraded edition presents folder, the version integrality of the application file then after checksum update, if verification succeeds, the application file after upgrading is copied to backup file folder from version file folder, otherwise equally directly enters the described application program step of startup.In the present invention, as long as application file is complete and just need not be performed again operated from server download file by verification in version file folder, at this moment only need from server update file, the application of this technology makes the data volume needed for version updating significantly reduce, and decreases the appearance of mistake and the time of renewal.
Fig. 3 illustrates the process flow diagram of the application program launching based on another preferred embodiment of the present invention.As shown in Figure 3, to be differently from embodiment illustrated in fig. 2, to start if not first time, then verify the version integrality of the application file deposited in version file folder.If verification succeeds, then continue to judge following two conditions: 1) upgrade more than three days, namely according to last time from the time of server update file more than three days, 2) there is WIFI, namely mobile device can be connected to server by WIFI.If meet above-mentioned two conditions, from server update file simultaneously.Otherwise directly enter and start described application program step.Be arranged so that due to above-mentioned: 1) reduce the frequency upgraded; 2) reduce the flow of user, only upgrade in WIFI situation.
According to the preferred embodiment of the present invention, as shown in Figure 4, application program is after svn (version control system of open source code) server down loading updating, the described application program of described startup comprises following steps: the version integrality of the application file deposited in verification backup file folder, if verification succeeds, then the application file deposited in loading backup file folder is to start application program.If verify unsuccessful, then continue to perform following steps: the version integrality of the application file deposited in verification version file folder, if verification succeeds, the application file then deposited in load application version file is to start application program, if verify unsuccessful, then the application file deposited in loading installation folder is to start application program.Can find out from Fig. 4,3 places are had to deposit the software of startup in the local client of application program, application program can preferentially start with the backup file folder placing latest edition, if unsuccessful, start with the above-mentioned version file folder downloaded from svn (version control system of open source code) server again, if unsuccessful again, default installation folder when installing for the first time with application program starts, and namely carries software startup with application program.This backup, judgment mechanism add the normal reliability of operation of application program, and file is all there is mobile phone this locality, and loading velocity is also very fast.By above-mentioned software upgrading framework, the application of also do not need to develop software in addition for application program version updating, management.Have new software version, software version is directly placed on the assigned address of svn (version control system of open source code) server by developer, and namely application program can load automatically.
The method of the application program launching that can automatically upgrade provided by the invention, make not need to develop download, the code of comparison and renewal, but only need to judge whether to upgrade according to the increase in demand of developer.Solve the technical matters that peace Desk system does not support RMI (remote interface calls).Make to use the user of application program not need manually to download software version and manual installation.Developer is made not need the software of development management version.
It will be appreciated by those skilled in the art that the above, be only the specific embodiment of the present invention, the present invention can also be applied in other portable radio; Example in more than describing is only informative, and those skilled in the art can the concrete equipment of selective gist according to actual needs, and do not depart from the scope of the present invention.Protection scope of the present invention is not limited thereto, and is anyly familiar with those skilled in the art in the technical scope that the present invention discloses, the change that can expect easily or replacement, all should be encompassed within protection scope of the present invention.Therefore, the protection domain that protection scope of the present invention should define with claim is as the criterion.

Claims (6)

1. an application program launching method, described method comprises: in response to application start instruction, judges whether described application program is start first time; If first time starts, then from server download file; Start if not first time, then verify the version integrality of the application file deposited in version file folder; If verify unsuccessful, then again from server download file, if verification succeeds, then from server update file; Start described application program.
2. application program launching method according to claim 1, is characterized in that, describedly comprises from server download file:
Download up-to-date application file from server, and deposit in version file folder; The version integrality of the application file deposited in verification version file folder, if verification succeeds, the application file deposited in being pressed from both sides by version file copies in backup file folder.
3. application program launching method according to claim 1, is characterized in that, describedly comprises from server update file:
The application file deposited during the up-to-date application file that contrast server stores and version file press from both sides, if there are differences, then download differential file from server, and according to the application file in downloaded differential file upgraded edition presents folder, the version integrality of the application file then after checksum update, if verification succeeds, copies to the application file after upgrading backup file folder from version file folder.
4. application program launching method according to claim 1, it is characterized in that, the described application program of described startup comprises following steps: the version integrality of the application file deposited in verification backup file folder, if verification succeeds, then the application file deposited in loading backup file folder is to start application program; If verify unsuccessful, then continue to perform following steps: the version integrality of the application program deposited in verification version file folder, if verification succeeds, the application file then deposited in load application version file is to start application program, if verify unsuccessful, then the application file deposited in load default installation folder is to start application program.
5. application program launching method according to claim 1, is characterized in that, the service that described application program launching is provided by the version control system of the svn open source code be embedded in described application program realizes.
6. application program launching method according to claim 5, is characterized in that, also comprises additional jar and wrap in the version control system of described svn open source code, and described additional jar bag is used for realizing RMI remote interface calling function.
CN201510495560.3A 2015-08-13 2015-08-13 Application program starting method Pending CN105094919A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510495560.3A CN105094919A (en) 2015-08-13 2015-08-13 Application program starting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510495560.3A CN105094919A (en) 2015-08-13 2015-08-13 Application program starting method

Publications (1)

Publication Number Publication Date
CN105094919A true CN105094919A (en) 2015-11-25

Family

ID=54575429

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510495560.3A Pending CN105094919A (en) 2015-08-13 2015-08-13 Application program starting method

Country Status (1)

Country Link
CN (1) CN105094919A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109753209A (en) * 2018-06-21 2019-05-14 北京字节跳动网络技术有限公司 A kind of application program launching method, device and equipment
CN110175052A (en) * 2019-04-16 2019-08-27 努比亚技术有限公司 A kind of method, apparatus and computer readable storage medium of file opening
CN110909345A (en) * 2019-12-02 2020-03-24 中国银行股份有限公司 Tamper-proof method and system for Java system open source software
CN113434211A (en) * 2021-06-24 2021-09-24 平安国际智慧城市科技股份有限公司 Application program function dynamic configuration method, device, equipment and storage medium
WO2021223658A1 (en) * 2020-05-07 2021-11-11 支付宝(杭州)信息技术有限公司 Mini program update

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102354165A (en) * 2011-05-30 2012-02-15 浙江中控技术股份有限公司 Method for updating data online, controller and man-machine interactive system
CN102955702A (en) * 2011-08-23 2013-03-06 腾讯科技(深圳)有限公司 Method and device for installing and upgrading software
CN104158907A (en) * 2014-08-29 2014-11-19 腾讯科技(深圳)有限公司 Method and device of downloading application program file

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102354165A (en) * 2011-05-30 2012-02-15 浙江中控技术股份有限公司 Method for updating data online, controller and man-machine interactive system
CN102955702A (en) * 2011-08-23 2013-03-06 腾讯科技(深圳)有限公司 Method and device for installing and upgrading software
CN104158907A (en) * 2014-08-29 2014-11-19 腾讯科技(深圳)有限公司 Method and device of downloading application program file

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109753209A (en) * 2018-06-21 2019-05-14 北京字节跳动网络技术有限公司 A kind of application program launching method, device and equipment
CN110175052A (en) * 2019-04-16 2019-08-27 努比亚技术有限公司 A kind of method, apparatus and computer readable storage medium of file opening
CN110909345A (en) * 2019-12-02 2020-03-24 中国银行股份有限公司 Tamper-proof method and system for Java system open source software
CN110909345B (en) * 2019-12-02 2022-03-22 中国银行股份有限公司 Tamper-proof method and system for Java system open source software
WO2021223658A1 (en) * 2020-05-07 2021-11-11 支付宝(杭州)信息技术有限公司 Mini program update
CN113434211A (en) * 2021-06-24 2021-09-24 平安国际智慧城市科技股份有限公司 Application program function dynamic configuration method, device, equipment and storage medium
CN113434211B (en) * 2021-06-24 2023-02-07 平安国际智慧城市科技股份有限公司 Application program function dynamic configuration method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN106201613B (en) Pre-heated software installation
CN105094919A (en) Application program starting method
TW201415365A (en) Method for updating operating system and handheld electronic apparatus
CN102833350A (en) Processing method and processing device of WebApp updating
JP2009020878A (en) Mobile electronic device, and method for restoring device setting in the same
CN104216749A (en) Updating method and updating device for applications
CN103353845A (en) Method and device for uploading and pushing script
KR101541112B1 (en) FOTA system and the method
CN102662798A (en) Data recovery method and terminal for Android system
US20160170735A1 (en) Operating system updating method by using a checklist
CN103176826B (en) A kind of method of free configurating terminal device default language and terminal default language configuration system
CN104918114A (en) Method and device for upgrading operation system
CN104007992A (en) Methods and devices for program updating and starting
US20150067668A1 (en) Installation engine and package format
CN102223380A (en) Client terminal automatic updating frame based on Webservice and application thereof
CN105740027A (en) Application program updating method and device
CN107315608A (en) Towards the hot update method of mobile terminal mixed mode
CN108121560A (en) Difference bag upgrade method, device, terminal and computer readable storage medium
CN104809011A (en) Application program management method
CN106507339A (en) A kind of aerial upgrade system and method for smart machine firmware
CN103984585A (en) Method for upgrading Linux kernel in running process of kernel module capable of being plugged in thermal mode
CN106293790B (en) application program upgrading method and device based on Firefox operating system
US20060111084A1 (en) System and method for over-the-air update of wireless communication devices
US20030131180A1 (en) Device for use in a network environment
CN110659052B (en) Method and system for updating system software in network equipment and readable storage medium

Legal Events

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

Application publication date: 20151125