A kind of method and apparatus unloading application programTechnical field
The present embodiments relate to areas of information technology, particularly relate to a kind of method and apparatus unloading application program.
Background technology
User, when using mobile phone, often buys in webpage or application program shop or downloads application program, thenBe arranged on mobile phone, when user in use for some time, generally require replacing some application programs, such as the application journey of game classSequence, needs more frequently being to change, so, can cause installing and uninstalling application journey continually during changing application programSequence.
Inventor during realizing the present invention, find in the prior art, cell phone system unload application program time,Cell phone system is typically difficult to delete clean by the installation file produced during set up applications, often has the installation literary composition of residualPart, causes mobile phone with after a period of time, and the installation file of residual increases, and these useless installation files occupy partThe memory space of mobile phone, make the available memory space of cell phone system diminish, the cell phone system speed of service is slack-off.
Therefore, it is necessary to improvement drawbacks mentioned above.
Summary of the invention
Based on problem above, the embodiment of the present invention is proposed a kind of method and apparatus unloading application program, is unloaded by responseCarry the instruction of application program, the file installing file that Name Lookup application program according to application program is corresponding in data baseName and store path, if it is relevant to other application program to judge to install file, then to installing file increase labelling, according to storage roadFootpath will not increase tagged installation file and delete, and the mode deleted from its position shown by the icon of application program, make to unloadWhen carrying application program, the installation file unrelated with other application program, by complete deletion, solves installation file and deletes not thorough,The problem that the memory space causing mobile phone diminishes, the cell phone system speed of service is slack-off.
On the one hand, the embodiment of the present invention proposes a kind of method unloading application program, including:
The instruction of response unloading application program, applies journey in data base described in Name Lookup according to described application programThe filename of the installation file that ordered pair is answered and store path, if judging, described installation file is relevant to other application program, the most rightDescribed installation file increases labelling, the corresponding name storing described application program and corresponding multiple in described data baseThe filename of described installation file and store path;
According to described store path, the described installation file not increasing described labelling is deleted, and by described application programIcon is deleted from its position shown.
The name of described application program and corresponding multiple described installation is stored additionally, corresponding in described data baseThe filename of file and store path by: described application program is stored when being mounted.
Additionally, in data base application program described in Name Lookup according to described application program corresponding file is installedFilename and store path, if judging, described installation file is relevant to other application program, then described installation file is increased markNote, may particularly include: in the database according to the name of described application program, by all institutes corresponding for described application programState and the filename of file is installed and store path finds, if described in finding one of described application program in the databaseInstall file filename corresponding with the name of other application program with store path preservation, then judge described installation file and itsIts application program is correlated with, and described installation file is increased described labelling.
Additionally, after the described installation file not increasing described labelling being deleted according to described store path, also include: willThe described labelling of described installation file is deleted.
Additionally, after the described installation file not increasing described labelling being deleted according to described store path, may also include thatEject prompting interface, unload, in described prompting interface display, information and/or the information of release memory space that application program completes.
During additionally, deleted by the described installation file not increasing described labelling according to described store path, boundary is deleted in displayFace, shows the process deleting described installation file on described deletion interface.
On the other hand, the embodiment of the present invention proposes a kind of device unloading application program, including:
Respond module, is used for: the instruction of response unloading application program, name according to described application program in data baseSearching the filename installing file corresponding to described application program and store path, if judging, described installation file is applied with otherProgram is correlated with, then described installation file is increased labelling, in described data base the corresponding name storing described application program andThe filename of corresponding multiple described installation file and store path;
Removing module, is used for: deleted by the described installation file not increasing described labelling according to described store path, and willThe icon of described application program is deleted from its position shown.
The name of described application program and corresponding multiple described installation is stored additionally, corresponding in described data baseThe filename of file and store path by: described application program is stored when being mounted.
Additionally, in data base application program described in Name Lookup according to described application program corresponding file is installedFilename and store path, if judging, described installation file is relevant to other application program, then described installation file is increased markNote, may particularly include: in the database according to the name of described application program, by all institutes corresponding for described application programState and the filename of file is installed and store path finds, if described in finding one of described application program in the databaseInstall file filename corresponding with the name of other application program with store path preservation, then judge described installation file and itsIts application program is correlated with, and described installation file is increased described labelling.
Additionally, after the described installation file not increasing described labelling being deleted according to described store path, also include: willThe described labelling of described installation file is deleted.
Additionally, after the described installation file not increasing described labelling being deleted according to described store path, may also include thatEject prompting interface, unload, in described prompting interface display, information and/or the information of release memory space that application program completes.
During additionally, deleted by the described installation file not increasing described labelling according to described store path, boundary is deleted in displayFace, shows the process deleting described installation file on described deletion interface.
Use technique scheme, have the advantages that
By the instruction of response unloading application program, Name Lookup application program pair according to application program in data baseThe filename installing file answered and store path, if it is relevant to other application program to judge to install file, then to installing fileIncrease labelling, tagged installation file will not increased according to store path and delete, and the icon of application program is shown from itThe mode that position is deleted, when making unloading application program, the installation file unrelated with other application program, by complete deletion, solvesFile is installed and deletes not thorough, cause the problem that the memory space of mobile phone diminishes, the cell phone system speed of service is slack-off.
Accompanying drawing explanation
Fig. 1 is the flow chart of the method unloading application program according to an embodiment of the invention;
Fig. 2 is the schematic diagram pointing out interface in the method unloading application program in accordance with another embodiment of the present invention;
Fig. 3 is the flow chart of the method unloading application program in accordance with another embodiment of the present invention;
Fig. 4 is the block diagram of the device unloading application program in accordance with another embodiment of the present invention.
Detailed description of the invention
For making the purpose of the embodiment of the present invention, technical scheme and advantage clearer, below in conjunction with the embodiment of the present inventionIn accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment isThe a part of embodiment of the present invention rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the artThe every other embodiment obtained under not making creative work premise, broadly falls into the scope of protection of the invention.
Embodiment one
With reference to Fig. 1, the embodiment of the present invention proposes a kind of method unloading application program, including:
Response of step S001, the instruction of response unloading application program, Name Lookup according to application program in data baseThe filename of the installation file that application program is corresponding and store path, if it is relevant to other application program, then to judge to install fileLabelling is increased, the corresponding name storing application program and corresponding multiple installation files in data base to installing fileFilename and store path;
Delete step S002, will not increase tagged installation file according to store path and will delete, and by the figure of application programMark and delete from its position shown.
Application program in the embodiment of the present invention is for being arranged on mobile phone, panel computer, computer, intelligent watch and other intelligenceApplication program on energy equipment.
As a example by application program is installed on mobile phone, in response of step S001, the instruction of unloading application program is by usingThe user of mobile phone or sent by cell phone system.When the icon of the application program on mobile phone is put in unloader box by user, send outHaving gone out the instruction of unloading application program, now, the instruction of cell phone system response unloading application program, in the name of storage application programIn the data base installing the filename of file and store path that word is corresponding with application program, find the installation that application program is correspondingThe filename of file and store path.
Such as: application program is that electricity business's application program, its filename installing file and store path are deposited in data baseStorage mode is as follows, and the first storage mode is as shown in table 1:
| The name of application program | The filename of file is installed | The store path of file is installed |
| Electricity business's application program | store.exe | system/app/store |
| Electricity business's application program | store.txt | system/app/store/file |
Table 1
The second storage mode is as shown in table 2:
| The name of application program | Store path and the filename of file are installed |
| Electricity business's application program | system/app/store/store.exe |
| Electricity business's application program | system/app/store/file/store.txt |
Table 2
Storage format this for table 2, before last "/" in " system/app/store/store.exe "Part is considered store path, and part afterwards is considered filename.
After have found the filename installing file corresponding to electricity business's application program and store path, need to judge literary composition is installedPart store.exe the most only to electricity business's application program relevant, if it is then represent can unloading electricity business's application program time byIt is deleted, if it is not, then it is relevant to other application program to represent this document, if deleted when unloading electricity business's application programRemoving, may result in other application can not normally use, so needing to be marked, does not deletes.
Being marked with two ways to installing file increase, a kind of is that the filename installing file in data base is increased markNote, when deleting installation file, deletes with reference to the labelling of filename in data base installing file or retains.One is to installing file increase labelling itself, deleting unmarked installation file, to markd installation file notDelete.
Generally, an application program when mounted, can produce multiple installation file, the most also can produce empty folder,In one of them embodiment, empty folder also records in data base, when unloading application program, it is deleted in the lump;?In one of them embodiment, empty folder is retained.
In delete step S002, tagged installation file will not increased according to store path and delete, and by application programIcon from its position shown delete.
The store path stored in data base according to installation file goes to delete installs file, when to not increasing tagged peaceAfter dress file is deleted, the icon of the unloaded application program on the desktop of mobile phone or in the application list is deletedRemove.In one of which embodiment, while the icon of unloaded application program is deleted or afterwards, according to installing literary compositionThe store path that part stores in data base goes to delete installs file.
By the instruction of response unloading application program, Name Lookup application program pair according to application program in data baseThe filename installing file answered and store path, if it is relevant to other application program to judge to install file, then to installing fileIncrease labelling, tagged installation file will not increased according to store path and delete, and the icon of application program is shown from itThe mode that position is deleted, when making unloading application program, the installation file unrelated with other application program, by complete deletion, solvesFile is installed and deletes not thorough, cause the problem that the memory space of mobile phone diminishes, the cell phone system speed of service is slack-off.
In one of which embodiment, the corresponding name storing application program and corresponding multiple in data baseInstall the filename of file and store path by: stored when application program is mounted.
When cell phone system is at set up applications, the name installing file that set up applications is produced and storage roadFootpath stores in data base, and makes the name storage corresponding with the name installing file and store path of application program, so thatWhen this application program must be unloaded, it is possible to find the installation file of its correspondence and delete, so that after unloading application program,The memory space of mobile phone becomes big.
The mode of set up applications has two kinds: the first, download installation kit, to mobile phone, then runs this installation kit and installsApplication program;The second, on webpage, directly runs and installs file set up applications.
In one of which embodiment, the peace that Name Lookup application program according to application program is corresponding in data baseThe filename of dress file and store path, if it is relevant to other application program to judge to install file, then to installing file increase markNote, specifically includes: name according to application program in data base, by the filename of all installation files corresponding for application programFind with store path, if find in data base the filename of one of application program installation file and store path and itsThe name correspondence of its application program preserves, then judge to install file relevant to other application program, increases labelling to installing file.
Because the installation file that application program produces when mounted may be used by other application program, so deletingBefore file is installed, need to judge, installation file if installation file therein is used by other application program, then to itIncrease labelling, it is not deleted.Judge the method whether file is used by other application program is installed: installed by judgementThe filename of file is the most corresponding with the name of other application program with store path to be preserved, the most then this installation file is describedRelevant to other application program.
By the installation file relevant to other application program is increased tagged mode, prevent because deleting installation by mistakeFile and cause the problem that other application program cannot normally use.
In one of which embodiment, after the deletion of tagged installation file not increased according to store path, also wrapInclude: the labelling installing file is deleted.
When the instruction according to unloading application program, after application program completion of discharge, to installing the labelling that file increases, thisTime need delete.It is added temporarily labelling, so working as application program because of deleting in order to avoid installation file by mistakeAfter completion of discharge, need to recover file is installed, remove labelling, by the installation literary composition as other application program after this installation filePart exists.
By when, after application program completion of discharge, by installing the mode of the labelling deletion of file, making and other application programRelevant installation file is resumed, and is existed by the installation file as other application program later.
In one of which embodiment, after the deletion of tagged installation file not increased according to store path, also wrapInclude: eject prompting interface, unload, in prompting interface display, information and/or the information of release memory space that application program completes.
After to application program unloading, the current interface at mobile phone ejects prompting interface, prompting interface shows and unloadsThe information carried such as " unloading application program completes ", or the information such as " discharging 31M altogether " of display release memory space, it is possible to twoPerson shows, as in figure 2 it is shown, 201 is prompting interface, 202 is the information unloaded, and 203 is the information of release memory space.
By in the prompting information that completes of interface display application program and/or the information of release memory space, make the user canIt is complete to be apparent from unloading application program, and understands the space of concrete release.
In one of which embodiment, when will not increase the deletion of tagged installation file according to store path, display is deletedExcept interface, show on interface that the process of file is installed in deletion deleting.
When installation file is deleted by cell phone system, the process of file is deleted in display, is deleting on interface, and display is deletedExcept the process of file, user is made to it will be seen that the progress deleting which file and deletion.
In one of which embodiment, do not show that deletion process, whole deletion process are carried out on backstage, user is not shownShow.
Embodiment two
With reference to Fig. 3, as a example by unloading application program on mobile phone, the flow process of one embodiment of the present of invention is described.
Step S301, receives user's operation by the icon drag of application program to unloader box, response unloading application journeyThe instruction of sequence;
Step S302, in data base, according to the name of application program by all installation files corresponding for application programFilename and store path find;
Step S303, the filename of installation file corresponding to application program in data base and store path retrieval, ifInstall file filename corresponding with the name of other application program with store path preservation, then judge this installation file and otherApplication program is correlated with, and this installation file is increased labelling;
Step S304, deletes the tagged installation file that do not increases that application program is corresponding;
Step S305, after deletion, ejects prompting interface, in the information that prompting interface display unloading application program completesInformation with release memory space;
Step S306, deletes the labelling installing file.
The technical scheme of the present embodiment, make user delete application program time, to the installation relevant to other application programFile increases tagged mode so that it is be not deleted, so that installation file incoherent with other application program is deleted in the lumpWhile removing, nor affect on the normal use of other application program.
Embodiment three
With reference to Fig. 4, the present invention proposes a kind of device unloading application program, including:
Respond module 401, is used for: the instruction of response unloading application program, name according to application program in data baseSearch the filename installing file corresponding to application program and store path, if judging to install file and other application program phaseClose, then to installing file increase labelling, in data base, correspondence stores the name of application program and corresponding multiple installationsThe filename of file and store path;
Removing module 402, is used for: will not increase tagged installation file according to store path and deletes, and by application programIcon from its position shown delete.
By the instruction of response unloading application program, Name Lookup application program pair according to application program in data baseThe filename installing file answered and store path, if it is relevant to other application program to judge to install file, then to installing fileIncrease labelling, tagged installation file will not increased according to store path and delete, and the icon of application program is shown from itThe mode that position is deleted, when making unloading application program, the installation file unrelated with other application program, by complete deletion, solvesFile is installed and deletes not thorough, cause the problem that the memory space of mobile phone diminishes, the cell phone system speed of service is slack-off.
In one of which embodiment, the corresponding name storing application program and corresponding multiple in data baseInstall the filename of file and store path by: stored when application program is mounted.
In one of which embodiment, the peace that Name Lookup application program according to application program is corresponding in data baseThe filename of dress file and store path, if it is relevant to other application program to judge to install file, then to installing file increase markNote, specifically includes: name according to application program in data base, by the filename of all installation files corresponding for application programFind with store path, if find in data base the filename of one of application program installation file and store path and itsThe name correspondence of its application program preserves, then judge to install file relevant to other application program, increases labelling to installing file.
In one of which embodiment, after the deletion of tagged installation file not increased according to store path, also wrapInclude: the labelling installing file is deleted.
In one of which embodiment, after the deletion of tagged installation file not increased according to store path, also wrapInclude: eject prompting interface, unload, in prompting interface display, information and/or the information of release memory space that application program completes.
In one of which embodiment, when will not increase the deletion of tagged installation file according to store path, display is deletedExcept interface, show on interface that the process of file is installed in deletion deleting.
Embodiment four
Receive user's operation by the icon drag of application program to unloader box, the instruction of response unloading application program;In data base, according to the name of application program, filename and the store path of all installation files corresponding for application program are looked forArrive;The filename of installation file corresponding to application program in data base and store path retrieval, if installing the file of fileName is corresponding with the name of other application program with store path to be preserved, then judge that this installation file is relevant to other application program,This installation file is increased labelling;The tagged installation file that do not increases that application program is corresponding is deleted;After deletion,Eject prompting interface, unload, in prompting interface display, information and the information of release memory space that application program completes;To installThe labelling of file is deleted.
The technical scheme of the present embodiment, make user delete application program time, to the installation relevant to other application programFile increases tagged mode so that it is be not deleted, so that installation file incoherent with other application program is deleted in the lumpWhile removing, nor affect on the normal use of other application program.
The embodiment of the present invention further relates to a kind of computer program, and it includes computer-readable medium, described computerComputer-readable recording medium includes: first group of code, and the instruction of response unloading application program, in data base, the name according to application program is looked intoLook for the filename installing file and store path that application program is corresponding, if it is relevant to other application program to judge to install file,Then to installing file increase labelling, in data base, correspondence stores the name of application program and corresponding multiple installation filesFilename and store path;Second group of code, will not increase tagged installation file according to store path and will delete, and will applicationThe icon of program is deleted from its position shown.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, be permissibleInstructing relevant hardware by computer program to complete, described program can be stored in computer read/write memory medium.Program during execution, it may include such as the flow process of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic disc, lightDish, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory,RAM) etc..
Device embodiment described above is only schematically, and the wherein said unit illustrated as separating component canTo be or to may not be physically separate, the parts shown as unit can be or may not be physics listUnit, i.e. may be located at a place, or can also be distributed on multiple NE.Can be selected it according to the actual needsIn some or all of module realize the purpose of embodiment of the present invention scheme.Those of ordinary skill in the art are not paying woundIn the case of the work of the property made, i.e. it is appreciated that and implements.
Last it is noted that above example is only in order to illustrate the technical scheme of the embodiment of the present invention, rather than it is limitedSystem;Although being described in detail the embodiment of the present invention with reference to previous embodiment, those of ordinary skill in the art shouldUnderstand: the technical scheme described in foregoing embodiments still can be modified by it, or to wherein portion of techniques featureCarry out equivalent;And these amendments or replacement, do not make the essence of appropriate technical solution depart from various embodiments of the present invention skillThe spirit and scope of art scheme.