CN105117265B - A kind of method, apparatus and terminal of document upgrading - Google Patents

A kind of method, apparatus and terminal of document upgrading Download PDF

Info

Publication number
CN105117265B
CN105117265B CN201510596034.6A CN201510596034A CN105117265B CN 105117265 B CN105117265 B CN 105117265B CN 201510596034 A CN201510596034 A CN 201510596034A CN 105117265 B CN105117265 B CN 105117265B
Authority
CN
China
Prior art keywords
upgrade file
destination application
original document
detection
called
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.)
Active
Application number
CN201510596034.6A
Other languages
Chinese (zh)
Other versions
CN105117265A (en
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.)
Zhuhai Baoqu Technology Co Ltd
Original Assignee
Zhuhai Seal Interest Technology 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 Zhuhai Seal Interest Technology Co Ltd filed Critical Zhuhai Seal Interest Technology Co Ltd
Priority to CN201510596034.6A priority Critical patent/CN105117265B/en
Publication of CN105117265A publication Critical patent/CN105117265A/en
Application granted granted Critical
Publication of CN105117265B publication Critical patent/CN105117265B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

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

Abstract

The embodiment of the invention discloses a kind of methods of document upgrading, comprising: whether the corresponding original document of detection upgrade file is called;If the corresponding original document of the upgrade file is called, detects and call whether the destination application of the original document is currently running task;If the destination application not running task terminates the process of the destination application, and after the original document is replaced with the upgrade file, reruns the process of the destination application.Correspondingly, the embodiment of the invention also discloses a kind of devices of document upgrading.Using the embodiment of the present invention, can automatic upgrade file so as to shorten the time of document upgrading enhance user experience.

Description

A kind of method, apparatus and terminal of document upgrading
Technical field
The present invention relates to computer software technical field more particularly to the method, apparatus and terminal of a kind of document upgrading.
Background technique
With the demand of user and the propulsion in market, the life cycle of a program (including application program and system program) Very short, developer often upgrades developed program, i.e., increases some new functions on the basis of original program Or original function is improved, to enhance the experience of user.It is currently by being risen to some file in original program Grade, to increase corresponding function or be improved to original function.
And the method upgraded in the prior art to file is: whether the original document for detecting upgrade file is called, If original document is currently running or is occupied by other programs, determines that original document is called, then prompt user to restart system, lead to It crosses and original document is replaced with into upgrade file when restarting system, file is upgraded to realize.But often user is general System will not be restarted immediately, even, never restarts system, caused the time of document upgrading longer, reduced user experience.
Summary of the invention
The present invention provides the method, apparatus and terminal of a kind of document upgrading, and can solve must when upgrading to file System, which need be restarted, leads to the time of document upgrading longer problem.
First aspect present invention provides a kind of method of document upgrading, comprising:
Whether the corresponding original document of detection upgrade file is called;
If the corresponding original document of the upgrade file is called, detects and the target of the original document is called to answer Whether task is currently running with program;
If the destination application not running task, terminate the process of the destination application, and by the original After beginning file replaces with the upgrade file, the process of the destination application is reruned.
Optionally, if the destination application is currently running task, the method also includes:
After by preset duration, returns and execute what whether the corresponding original document of the detection upgrade file was called Step.
Wherein, the detection calls the destination application of the original document whether to be currently running task to include:
Detection notice is issued to the destination application by clobal, the detection notice is converted into the mesh The corresponding identification format of application program is marked, triggering the destination application detection by the detection notice of the conversion is It is no to be currently running task.
Optionally, if the corresponding original document of the upgrade file is not called upon, the method also includes:
The original document is replaced with into the upgrade file.
Further, before whether the corresponding original document of the detection upgrade file is called, the method also includes:
The upgrade file is downloaded during idle time and is stored in local.
Correspondingly, second aspect of the present invention additionally provides a kind of device of document upgrading, comprising:
Detection module is called, for detecting whether the corresponding original document of upgrade file is called;
Task detection module detects if called for the corresponding original document of the upgrade file and calls institute Whether the destination application for stating original document is currently running task;
Document upgrading processing module terminates the target application if being used for the destination application not running task The process of program, and after the original document is replaced with the upgrade file, rerun the destination application into Journey.
Optionally, described device further include:
Timing processing module, if being currently running task for the destination application, after by preset duration, touching It sends out described and calls whether the corresponding original document of detection module detection upgrade file is called.
Wherein, the task detection module is specifically used for:
Detection notice is issued to the destination application by clobal, the detection notice is converted into the mesh The corresponding identification format of application program is marked, triggering the destination application detection by the detection notice of the conversion is It is no to be currently running task.
Optionally, the document upgrading processing module is also used to:
If the corresponding original document of the upgrade file is not called upon, the original document is replaced with into the upgrading File.
Further, described device further include:
Download module, for downloading the upgrade file during idle time and being stored in local.
Third aspect present invention additionally provides a kind of terminal, the part of the device including document upgrading described in second aspect Or all.
Implement the embodiment of the present invention, has the advantages that
Whether the corresponding original document of detection upgrade file is called, if the corresponding original document of the upgrade file Called, then further detection calls whether the destination application of the original document is currently running task, if the target Application program not running task illustrates that destination application can then terminate the process of the destination application with compulsory withdrawal, And after the original document replaced with the upgrade file, rerun the process of the destination application, realize from Dynamic upgrade file enhances user experience so as to shorten the time of document upgrading.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to needed in the embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, general for this field For logical technical staff, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of flow diagram of the method for document upgrading provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of the method for another document upgrading provided in an embodiment of the present invention;
Fig. 3 is a kind of structural schematic diagram of the device of document upgrading provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of terminal provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
Referring to Fig. 1, Fig. 1 is a kind of flow diagram of the method for document upgrading provided in an embodiment of the present invention;Such as Fig. 1 It is shown the method may include:
Whether step S110, the corresponding original document of detection upgrade file are called.If the corresponding institute of the upgrade file It is called to state original document, thens follow the steps S120.
The original document of upgrade file how is determined in order to facilitate understanding, first introduces the installation kit of lower application program here. Include All Files required for application program is installed in the installation kit of application program, runs executable file therein, it can be with The All Files of this application program are discharged on hard disk, modification registration table, the setting of modification system, creation Strong Jet's mode etc. are completed Work.Wherein, all there is file name and fileversion number in the All Files in installation kit.Therefore, upgrade file can be passed through File name determine the original document of the upgrade file.Wherein, the filename of the original document and the upgrade file Claim identical, and the version number of the original document is only second to the version number of the upgrade file.
In the specific implementation, terminal can detecte whether the corresponding original document of upgrade file is currently running, or, if quilt Other applications occupy, if so, terminal then can be determined that the original document of the upgrade file is called, then follow the steps S120。
Further, terminal can download the upgrade file during idle time and be stored in local.Terminal utilizes idle money The upgrade file is downloaded in source can be improved network resource utilization.
Step S120, detection call whether the destination application of the original document is currently running task.If the mesh Application program not running task is marked, S130 is thened follow the steps.
Task refers to the activity completed by software.One task is also possible to a line either a process Journey.In brief, it refers to a series of operations for reaching a certain purpose jointly.For example, in reading data and placing data into In depositing.This task can be used as a process to realize, can also be used as a thread and realizes.Process is the execution of program, Program is the ordered set of one group of instruction, and thread is then the program of isolated operation all the way in a certain process.
One application program is carrying out task presentation and is carrying out a certain operation.For example, user starts a window In database application, operating system just will be expressed as a task to the calling of database;For another example, user will be from data A pay sheet report is generated in library, and is passed in a file, this is a subtask;In the process for generating pay sheet report In, user again can be with input database inquiry request, this is a subtask again;If user start database application it Any operation is not done afterwards, it may be considered that database application not running task after calling task terminates.
Terminal can issue detection notice to the destination application by clobal, and the detection notice is converted For the corresponding identification format of the destination application, the target application journey is triggered by the detection notice of the conversion Sequence detects whether to be currently running task.If detecting, the destination application in operation task, does not then follow the steps S130.
Wherein, clobal is a kind of message mechanism, event of setting out in some process, if the process listens to This event, then can be notified, learns this message, to carry out corresponding operating.
Since the information that each process needs may be different, for example, kphonetray.exe needs to load Kusbcore.dll and kmobiletray.dll, therefore, the decision logic for updating each application program can be different, so needing It will test notice and be converted to process and receive the format etc. appointed and communicated.
Preferably, terminal can will test notice and be converted to the destination application pair by way of shared drive The identification format answered.Wherein, shared drive is a kind of mode of quick storage, can be found with the mode of key value correspondence Corresponding information, it is high-efficient using convenience since data model and operation all meet.
Step S130 terminates the process of the destination application, and the original document is replaced with the upgrading text After part, the process of the destination application is reruned.
If destination application can be forced to exit specifically, terminal detects destination application not running task, And after original document replaced with the upgrade file, the process of the destination application is reruned, text has been automatically performed The upgrading of part for dependence user restarts system, shortens the time that file comes into force, enhances user compared to the prior art Experience.
In the embodiment shown in fig. 1, whether the corresponding original document of detection upgrade file is called, if the upgrading is literary The corresponding original document of part is called, then further whether detection calls the destination application of the original document Operation task illustrates that destination application can then be terminated described with compulsory withdrawal if the destination application not running task The process of destination application, and after the original document is replaced with the upgrade file, rerun the target application The process of program realizes automatic upgrade file, so as to shorten the time of document upgrading, enhances user experience.
Referring to Fig. 2, Fig. 2 is a kind of flow diagram of the method for document upgrading provided in an embodiment of the present invention;Such as Fig. 2 It is shown the method may include:
Step S210 downloads upgrade package, includes upgrade file in the upgrade package.
In a kind of optional embodiment, when receiving the PUSH message that server is issued for the upgrade package, The upgrade package can be downloaded.In the specific implementation, the PUSH message may include the download address of the upgrade package, work as reception When to the PUSH message, the upgrade package can be downloaded according to the download address in the PUSH message.Further, when connecing When receiving the PUSH message, user can also be prompted, after the confirmation instruction for receiving user, just according to the PUSH message In download address download the upgrade package.It should be noted that it is art technology that how server, which generates the upgrade package, Personnel are intelligible, and details are not described herein.
In another optional embodiment, user is received for institute when reaching default upgrading detection cycle or working as When stating the upgrading detection request of the corresponding application program input of upgrade package, the upgrade package can be downloaded.In the specific implementation, when reaching The upgrade request that the corresponding application program of the upgrade package inputs is directed to default upgrading detection cycle or when receiving user When, whether version number and the newest version number that can detecte the application program are consistent, if inconsistent, illustrate described using journey Sequence, which exists, to be updated, then obtains the download address of the upgrade package of the application program, and download the liter according to the download address Grade packet.Step S220, detects whether the corresponding original document of the upgrade file is called.If the corresponding institute of the upgrade file It is called to state original document, thens follow the steps S240;Otherwise, step S230 is executed.
In the specific implementation, terminal can detecte whether the corresponding original document of upgrade file is currently running, or, if quilt Other applications occupy, if so, terminal then can be determined that the original document of the upgrade file is called.Terminal can pass through The file name of upgrade file determines the original document of the upgrade file.Wherein, the original document and the upgrade file File name it is identical, and the version number of the original document is only second to the version number of the upgrade file
The original document is replaced with the upgrade file by step S230.
Step S240, detection call whether the destination application of the original document is currently running task.If the mesh Application program not running task is marked, step S250 is executed;Otherwise, step S260 is executed.
Terminal can issue detection notice to the destination application by clobal, and the detection notice is converted For the corresponding identification format of the destination application, the target application journey is triggered by the detection notice of the conversion Sequence detects whether to be currently running task.If detecting, the destination application in operation task, does not then follow the steps S250, no Then, step S260 is executed.
Wherein, clobal is a kind of message mechanism, event of setting out in some process, if the process listens to This event, then can be notified, learns this message, to carry out corresponding operating.
Since the information that each process needs may be different, for example, kphonetray.exe needs to load Kusbcore.dll and kmobiletray.dll, therefore, the decision logic for updating each application program can be different, so needing It will test notice and be converted to process and receive the format etc. appointed and communicated.
Preferably, terminal can will test notice and be converted to the destination application pair by way of shared drive The identification format answered.Wherein, shared drive is a kind of mode of quick storage, can be found with the mode of key value correspondence Corresponding information, it is high-efficient using convenience since data model and operation all meet.
Step S250 terminates the process of the destination application, and the original document is replaced with the upgrading text After part, the process of the destination application is reruned.
If destination application can be forced to exit specifically, terminal detects destination application not running task, And after original document replaced with the upgrade file, the process of the destination application is reruned, text has been automatically performed The upgrading of part relies on for user restarts system compared to the prior art, the time that short upgrade file comes into force, enhances use Family experience.
Step S260 returns to step S220 after by preset duration.
Specifically, if detecting, destination application is currently running task, and terminal can be from the detection upgrade file pair Whether the original document answered called to start, and returns to step S220 by preset duration, i.e., in next poll, institute again It states upgrade file and carries out respective handling.
In the embodiment shown in Figure 2, whether the corresponding original document of detection upgrade file is called, if the upgrading is literary The corresponding original document of part is called, then further whether detection calls the destination application of the original document Operation task illustrates that destination application can then be terminated described with compulsory withdrawal if the destination application not running task The process of destination application, and after the original document is replaced with the upgrade file, rerun the target application The process of program waits for poll and carries out again to the upgrade file if the destination application is carrying out task Processing, realizes automatic upgrade file, so as to shorten the time of document upgrading, enhances user experience.
Referring to Fig. 3, Fig. 3 is a kind of structural schematic diagram of the device of document upgrading provided in an embodiment of the present invention.Such as Fig. 3 The device 3 of document upgrading in the shown embodiment of the present invention at least may include calling detection module 310, task detection module 320 and document upgrading processing module 330, in which:
Detection module 310 is called, for detecting whether the corresponding original document of upgrade file is called.
In the specific implementation, detection module 310 is called to can detecte whether the corresponding original document of upgrade file is currently running, Or, if it is occupied by other applications, if so, detection module 310 is called then to can be determined that the original of the upgrade file File is called.
Task detection module 320 detects calling if called for the corresponding original document of the upgrade file Whether the destination application of the original document is currently running task;
Wherein, the task detection module 320 specifically can be used for:
Detection notice is issued to the destination application by clobal, the detection notice is converted into the mesh The corresponding identification format of application program is marked, triggering the destination application detection by the detection notice of the conversion is It is no to be currently running task.
Wherein, clobal is a kind of message mechanism, event of setting out in some process, if the process listens to This event, then can be notified, learns this message, to carry out corresponding operating.
Since the information that each process needs may be different, for example, kphonetray.exe needs to load Kusbcore.dll and kmobiletray.dll, therefore, the decision logic for updating each application program can be different, so needing It will test notice and be converted to process and receive the format etc. appointed and communicated.
Preferably, task detection module 320 can will test notice and be converted to the target by way of shared drive The corresponding identification format of application program.Wherein, shared drive is a kind of mode of quick storage, can be with the side of key value Formula corresponds to and finds corresponding information, high-efficient using convenience since data model and operation all meet.
Document upgrading processing module 330 terminates the target and answers if being used for the destination application not running task With the process of program, and after the original document is replaced with the upgrade file, the destination application is reruned Process.
Wherein, the document upgrading processing module 330 can be also used for:
If the corresponding original document of the upgrade file is not called upon, the original document is replaced with into the upgrading File.
Further, the device 3 of the document upgrading can also include:
Timing processing module 340, if being currently running task for the destination application, by preset duration it Afterwards, it triggers the calling detection module 310 and detects whether the corresponding original document of upgrade file is called.
Further, the device 3 of the document upgrading can also include:
Download module 350, for downloading the upgrade file during idle time and being stored in local.
It will be appreciated that the function of each functional module of the device 3 of the document upgrading of the present embodiment can be according to the above method Method specific implementation in embodiment, can specifically correspond to the associated description with reference to Fig. 1 or Fig. 2 embodiment of the method, herein no longer It repeats.
Referring to Fig. 4, Fig. 4 is a kind of structural schematic diagram of terminal provided in an embodiment of the present invention, as shown in figure 4, the end End 4 may include: including network interface 410, include one or more the memory of computer readable storage medium 420, input unit 430, display unit 440, power supply 450, the processor 460 for including one or more than one processing core Equal components.It will be understood by those skilled in the art that structure shown in Fig. 4 does not constitute the limit to the calling device of application program It is fixed, it may include perhaps combining certain components or different component layouts than illustrating more or fewer components.Wherein:
Network interface 410 can be used for accessing network, and specific implementation process can use Broadband Network Interface, WiFi (wireless fidelity, Wireless Fidelity) module or RF (Radio Frequency, radio frequency) module are realized.
Memory 420 can be used for storing software program and module, and processor 460 is stored in memory 420 by operation Software program and module, thereby executing various function application and data processing.Memory 460 can mainly include storage journey Sequence area and storage data area.In addition, memory 420 may include high-speed random access memory, it can also include non-volatile Memory (non-volatile memory), for example, at least a disk memory, flush memory device or other volatibility are solid State memory device.Correspondingly, memory 420 can also include Memory Controller, to provide processor 460 and input unit The access of 430 pairs of memories 120.
Input unit 430 can be used for receiving the number or character information of input, and generate and user setting and function Control related keyboard, mouse, operating stick, optics or trackball signal input.Specifically, input unit 430 may include touching Touch screen or key mouse 431 and other input equipments 432.Touch screen or key mouse 431, including touch screen or key mouse, touch screen are also referred to as For touch display screen or Trackpad, collecting the touch operation of user on it or nearby, (for example user uses finger, stylus Etc. the operation of any suitable object or attachment on the contact surface or near contact surface), and driven according to preset formula Move corresponding attachment device.In addition to touch screen or key mouse 431, input unit 430 can also include other input equipments 432.Key Mouse includes physical keyboard and physics mouse.In addition, other input equipments 432 can include but is not limited to function key (such as volume Control button, switch key etc.), trace ball, one of operating stick etc. or a variety of.
Display unit 440 can be used for showing information input by user or the information and application program that are supplied to user The various graphical user interface of calling device 400, these graphical user interface can be by figure, text, icon, video and Qi Ren Meaning combination is to constitute.Display unit 440 may include display panel 441, optionally, can use LCD (Liquid Crystal Display, liquid crystal display), the forms such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) come Configure display panel 441.
The terminal 4 further includes the power supply 450 (such as battery) powered to all parts, it is preferred that power supply can pass through Power-supply management system and processor 460 are logically contiguous, to realize management charging, electric discharge, Yi Jigong by power-supply management system The functions such as consumption management.Power supply 450 can also include one or more direct current or AC power source, recharging system, power supply The random components such as fault detection circuit, power adapter or inverter, power supply status indicator.
Processor 460 is the control centre of the calling device of application program, utilizes various interfaces and the entire hand of connection The various pieces of machine, by running or executing the software program and/or module that are stored in memory 420, and calling storage Data in memory 420 perform various functions and handle data.Optionally, processor 460 may include one or more places Manage core;Preferably, processor 460 can integrate application processor and modem processor, wherein application processor is mainly located Operating system, user interface and application program etc. are managed, modem processor mainly handles communication.It is understood that above-mentioned Modem processor can not also be integrated into processor 460.
Batch processing code is stored in memory 420, and processor 460 is for calling the program stored in memory 420 Code, for performing the following operations:
Whether the corresponding original document of detection upgrade file is called;
If the corresponding original document of the upgrade file is called, detects and the target of the original document is called to answer Whether task is currently running with program;
If the destination application not running task, terminate the process of the destination application, and by the original After beginning file replaces with the upgrade file, the process of the destination application is reruned.
Optionally, if the destination application is currently running task, following operation is can also be performed in processor 460:
After by preset duration, returns and execute what whether the corresponding original document of the detection upgrade file was called Step.
Wherein, the detection of processor 460 calls whether the destination application of the original document is currently running task It is specifically as follows:
Detection notice is issued to the destination application by clobal, the detection notice is converted into the mesh The corresponding identification format of application program is marked, triggering the destination application detection by the detection notice of the conversion is It is no to be currently running task.
Optionally, if the corresponding original document of the upgrade file is not called upon, the processor 460 can also be held The following operation of row:
The original document is replaced with into the upgrade file.
Further, the processor 460 detect the corresponding original document of upgrade file it is whether called before, can be with Execute following operation:
The upgrade file is downloaded during idle time and is stored in local.
It will be appreciated that the function of each functional module of the terminal 4 of the present embodiment can be according in above method embodiment Method specific implementation, can specifically correspond to the associated description with reference to Fig. 1 or Fig. 2 embodiment of the method, details are not described herein again.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office It can be combined in any suitable manner in one or more embodiment or examples.In addition, without conflicting with each other, the skill of this field Art personnel can tie the feature of different embodiments or examples described in this specification and different embodiments or examples It closes and combines.
In addition, term " first ", " second " are used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance Or implicitly indicate the quantity of indicated technical characteristic.Define " first " as a result, the feature of " second " can be expressed or Implicitly include at least one this feature.In the description of the present invention, the meaning of " plurality " is at least two, such as two, three It is a etc., unless otherwise specifically defined.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes It is one or more for realizing specific logical function or process the step of executable instruction code module, segment or portion Point, and the range of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discussed suitable Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, to execute function, this should be of the invention Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium ", which can be, any may include, stores, communicates, propagates or pass Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment It sets.The more specific example (non-exhaustive list) of computer-readable medium include the following: there is the electricity of one or more wirings Interconnecting piece (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable Medium, because can then be edited, be interpreted or when necessary with it for example by carrying out optical scanner to paper or other media His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.Above-mentioned In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware Any one of column technology or their combination are realized: having a logic gates for realizing logic function to data-signal Discrete logic, with suitable combinational logic gate circuit specific integrated circuit, programmable gate array (PGA), scene Programmable gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.In addition, in each embodiment of the present invention In each functional unit can integrate in a processing module, be also possible to each unit and physically exist alone, can also two A or more than two units are integrated in a module.Above-mentioned integrated module both can take the form of hardware realization, can also It is realized in the form of using software function module.If the integrated module realized in the form of software function module and as Independent product when selling or using, also can store in a computer readable storage medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..Although having been shown and retouching above The embodiment of the present invention is stated, it is to be understood that above-described embodiment is exemplary, and should not be understood as to limit of the invention System, those skilled in the art can be changed above-described embodiment, modify, replace and become within the scope of the invention Type.
The above disclosure is only the preferred embodiments of the present invention, cannot limit the right model of the present invention with this certainly It encloses, therefore equivalent changes made in accordance with the claims of the present invention, is still within the scope of the present invention.

Claims (8)

1. a kind of method of document upgrading characterized by comprising
Whether the corresponding original document of detection upgrade file is called;
If the corresponding original document of the upgrade file is called, the target application journey for calling the original document is detected Whether sequence is currently running task;
If the destination application not running task, terminate the process of the destination application, and by the original text After part replaces with the upgrade file, the process of the destination application is reruned;
Wherein, if the destination application is currently running task, the method also includes:
After by preset duration, returns and execute the step whether corresponding original document of the detection upgrade file is called Suddenly.
2. the method as described in claim 1, which is characterized in that the destination application of the original document is called in the detection Whether being currently running task includes:
Detection notice is issued to the destination application by clobal, the detection notice is converted into the target and is answered With the corresponding identification format of program, the destination application is triggered by the detection notice of the conversion and is detected whether just In operation task.
3. the method as described in claim 1, which is characterized in that if the corresponding original document of the upgrade file is not adjusted With, the method also includes:
The original document is replaced with into the upgrade file.
4. method as claimed in any one of claims 1-3, which is characterized in that the corresponding original text of the detection upgrade file Before whether part is called, the method also includes:
The upgrade file is downloaded during idle time and is stored in local.
5. a kind of device of document upgrading characterized by comprising
Detection module is called, for detecting whether the corresponding original document of upgrade file is called;
Task detection module detects if called for the corresponding original document of the upgrade file and calls the original Whether the destination application of beginning file is currently running task;
Document upgrading processing module terminates the destination application if being used for the destination application not running task Process, and after the original document is replaced with the upgrade file, rerun the process of the destination application;
Wherein, described device further include:
Timing processing module after by preset duration, triggers institute if being currently running task for the destination application It states and calls whether the corresponding original document of detection module detection upgrade file is called.
6. device as claimed in claim 5, which is characterized in that the task detection module is specifically used for:
Detection notice is issued to the destination application by clobal, the detection notice is converted into the target and is answered With the corresponding identification format of program, the destination application is triggered by the detection notice of the conversion and is detected whether just In operation task.
7. device as claimed in claim 5, which is characterized in that
The document upgrading processing module is also used to:
If the corresponding original document of the upgrade file is not called upon, the original document is replaced with into the upgrading text Part.
8. the device as described in any one of claim 5-7, which is characterized in that described device further include:
Download module, for downloading the upgrade file during idle time and being stored in local.
CN201510596034.6A 2015-09-17 2015-09-17 A kind of method, apparatus and terminal of document upgrading Active CN105117265B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510596034.6A CN105117265B (en) 2015-09-17 2015-09-17 A kind of method, apparatus and terminal of document upgrading

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510596034.6A CN105117265B (en) 2015-09-17 2015-09-17 A kind of method, apparatus and terminal of document upgrading

Publications (2)

Publication Number Publication Date
CN105117265A CN105117265A (en) 2015-12-02
CN105117265B true CN105117265B (en) 2019-02-15

Family

ID=54665266

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510596034.6A Active CN105117265B (en) 2015-09-17 2015-09-17 A kind of method, apparatus and terminal of document upgrading

Country Status (1)

Country Link
CN (1) CN105117265B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105607930B (en) * 2015-12-23 2018-07-20 北京握奇智能科技有限公司 A method of the processing occupied phenomenon of dynamic base
CN107357599A (en) * 2016-05-10 2017-11-17 平安科技(深圳)有限公司 A kind of O&M method and terminal
CN106980515B (en) * 2016-10-28 2020-04-14 阿里巴巴集团控股有限公司 Application upgrading method and device
CN108829433A (en) * 2018-05-24 2018-11-16 努比亚技术有限公司 A kind of web system version dispositions method, equipment and storage medium
CN109032777B (en) * 2018-06-29 2021-02-05 北京鸿享技术服务有限公司 Process restarting method and device, computing equipment and computer storage medium
CN109359040A (en) * 2018-09-30 2019-02-19 珠海市君天电子科技有限公司 Method, apparatus, electronic equipment and the computer readable storage medium of test application

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101094229A (en) * 2007-07-24 2007-12-26 深圳市融合视讯科技有限公司 Increment upgrading system and method for networked application programs
CN104123341A (en) * 2014-06-26 2014-10-29 小米科技有限责任公司 Method and device for downloading file and route device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102955702B (en) * 2011-08-23 2016-08-10 腾讯科技(深圳)有限公司 A kind of software is installed and upgrade method and device
CN103677870B (en) * 2012-09-10 2018-01-30 腾讯科技(深圳)有限公司 Method for upgrading system and the system using this method upgrading
CN103902334A (en) * 2014-03-10 2014-07-02 深圳市岚正科技有限公司 Silent updating method and system based on Android system
CN104809045B (en) * 2015-04-27 2021-01-05 腾讯科技(深圳)有限公司 Running method and device of monitoring script

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101094229A (en) * 2007-07-24 2007-12-26 深圳市融合视讯科技有限公司 Increment upgrading system and method for networked application programs
CN104123341A (en) * 2014-06-26 2014-10-29 小米科技有限责任公司 Method and device for downloading file and route device

Also Published As

Publication number Publication date
CN105117265A (en) 2015-12-02

Similar Documents

Publication Publication Date Title
CN105117265B (en) A kind of method, apparatus and terminal of document upgrading
JP6195182B2 (en) Application scenario identification method, power consumption management method, apparatus, and terminal device
CN103544033B (en) Method, device and associated equipment for rolling back application program
CN103699398B (en) Terminal device and its startup control method
CN106534281B (en) A kind of response method of request of data, apparatus and system
CN105786473A (en) Task management method and device of multi-task interface as well as terminal equipment
CN106502703B (en) Function calling method and device
CN103853383B (en) A kind of method realizing touch-screen driving in Uboot
CN104106054A (en) Power efficient application notification system
CN104185836A (en) Method and system for verifying proper operation of computing device after system change
CN103136018A (en) Setting method and setting system of basic input/ output system (BIOS)
CN108363528A (en) Startup method, apparatus, storage medium and the electronic equipment of five application page
EP2739097B1 (en) A mobile telecommunication device in a cellular-digital wireless telecommunication system and a method for operating thereof
CN110377141A (en) Application processing method, device, electronic equipment and storage medium
CN107220077B (en) Using the management-control method and management and control devices of starting
CN109582385A (en) Application program launching method and device, storage medium and electronic equipment
CN103902329B (en) electronic device capable of updating basic input and output system and updating method thereof
US9658903B2 (en) Event processing method and apparatus
CN105022955A (en) Locking method and mobile terminal of application program
CN102262555B (en) Method and device for loading different versions of JAVA three-party library
CN109634659A (en) Method, apparatus, equipment and the storage medium that a kind of couple of BMC is controlled
CN110442426A (en) A kind of password remapping method, device and storage medium
CN103870319B (en) Information processing method, device and electronic equipment
CN108334330B (en) Application unloading method and device, storage medium and electronic equipment
CN105354448B (en) Authorization management method and device

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: 20181227

Address after: Room 105-53811, No. 6 Baohua Road, Hengqin New District, Zhuhai City, Guangdong Province

Applicant after: Zhuhai Leopard Technology Co.,Ltd.

Address before: 100085 East District, Second Floor, 33 Xiaoying West Road, Haidian District, Beijing

Applicant before: BEIJING KINGSOFT INTERNET SECURITY SOFTWARE Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant