Summary of the invention
For overcoming problem present in correlation technique, the present invention provides a kind of application program installation method and device.
First aspect according to embodiments of the present invention, it is provided that a kind of application program installation method, is applied to terminal, described method
Including:
Detect whether that receiving the installation for set up applications operates;
When receiving described installation operation, obtain taking up room after described application program is installed;
Whether take up room described in judgement more than or equal to presetting memory space;
Take up room more than or equal to when presetting memory space when described, determine the target external storage being connected with described terminal
Space;
Described application program is installed in described target external memory space.
Wherein, described determine the target external memory space being connected with described terminal, including:
Display external memory space selects interface;Described external memory space selects to show in interface and is connected with described terminal
The space identification of multiple different external memory spaces;
Detect whether to receive the selection behaviour selecting a space identification in selecting interface at described selection external memory space
Make;
When receiving described selection operation, external memory space corresponding for the space identification of described selection is defined as described mesh
Mark external memory space.
Wherein, described determine the target external memory space being connected with described terminal, including:
Obtain the quantity of the external memory space being connected with described terminal;
When the quantity of the external memory space being connected with described terminal is one, the outside being connected with described terminal is deposited
Storage space is defined as described target external memory space;
When the quantity of the external memory space being connected with described terminal is multiple, from be connected with described terminal multiple
Portion's memory space selects an external memory space and as described target external memory space.
Wherein, described one external memory space of selection conduct from the multiple external memory spaces being connected with described terminal
Described target external memory space, including:
In the multiple external memory spaces being connected with described terminal, obtain the idle storage sky of each external memory space
Between;
The external memory space that idle storage space is maximum is defined as described target external memory space.
Wherein, the multiple external memory spaces being connected with described terminal are respectively used to install different types of application program;
Described from the multiple external memory spaces being connected with described terminal, select an external memory space as described mesh
Mark external memory space, including:
Obtain the type belonging to described application program;
In the multiple external memory spaces being connected with described terminal, search outside the application program for installing described type
Portion's memory space;
The external memory space of described lookup is defined as described target external memory space.
Further, described described application program is installed in described target external memory space after, also include:
The space identification of the mark of described application program with described target external memory space is formed one and is recorded and stored in this
In corresponding relation between mark and the space identification of memory space of the application program of ground storage.
Wherein, taking up room after the installation of described acquisition described application program, including:
Obtain the installation kit of described application program;Described installation kit has prestored described application program install after take sky
Between;
Taking up room after described application program is installed is obtained from the installation kit of described application program.
Second aspect according to embodiments of the present invention, it is provided that a kind of application program erecting device, is applied to terminal, described device
Including:
Detection module, operates for detecting whether receive the installation for set up applications;
Acquisition module, for when receiving described installation operation, obtains taking up room after described application program is installed;
Judge module, be used for judging described in whether take up room more than or equal to presetting memory space;
Determine module, for taking up room more than or equal to when presetting memory space when described, determine and be connected with described terminal
Target external memory space;
Module is installed, for being installed in described target external memory space by described application program.
Wherein, described determine that module includes:
Display unit, is used for showing that external memory space selects interface;Described external memory space select interface shows with
The space identification of the multiple different external memory space that described terminal is connected;
Detector unit, selects a sky for detecting whether receive in selecting interface at described selection external memory space
Between mark selection operation;
First determines unit, for when receiving described selection operation, being deposited outside corresponding for the space identification of described selection
Storage space is defined as described target external memory space.
Wherein, described determine that module includes:
First acquiring unit, for obtaining the quantity of the external memory space being connected with described terminal;
Second determines unit, is used for when the quantity of the external memory space being connected with described terminal is one, will be with described
The external memory space that terminal is connected is defined as described target external memory space;
Select unit, for when the quantity of the external memory space being connected with described terminal is multiple, from described terminal
The multiple external memory spaces being connected select an external memory space and as described target external memory space.
Wherein, described selection unit includes:
First obtains subelement, in the multiple external memory spaces being connected with described terminal, obtains outside each
The idle storage space of memory space;
First determines subelement, for the external memory space that idle storage space is maximum is defined as described target external
Memory space.
Wherein, the multiple external memory spaces being connected with described terminal are respectively used to install different types of application program;
Described selection unit includes:
Second obtains subelement, for obtaining the type belonging to described application program;
Search subelement, in the multiple external memory spaces being connected with described terminal, search and be used for described class is installed
The external memory space of the application program of type;
Second determines subelement, for the external memory space of described lookup is defined as described target external memory space.
Further, described device also includes:
Memory module, for forming one by the space identification of the mark of described application program with described target external memory space
It is recorded and stored in the corresponding relation between mark and the space identification of memory space of locally stored application program.
Wherein, described acquisition module includes:
Second acquisition unit, for obtaining the installation kit of described application program;Described installation kit has prestored described application
Taking up room after program installation;
3rd acquiring unit, for obtaining taking up room after described application program is installed from the installation kit of described application program.
The technical scheme that embodiments of the invention provide can include following beneficial effect:
In embodiments of the present invention, detect whether that receiving the installation for set up applications operates;When receiving this installation
During operation, obtain taking up room after application program is installed;Judge that whether this takes up room more than or equal to presetting memory space;
When this takes up room more than or equal to when presetting memory space, determine the target external memory space being connected with terminal;Should
It is installed in target external memory space by program, has the most just reached the purpose of the internal storage space saving terminal.
It should be appreciated that it is only exemplary and explanatory that above general description and details hereinafter describe, can not limit
The present invention processed.
Detailed description of the invention
Here will illustrate exemplary embodiment in detail, its example represents in the accompanying drawings.Explained below relates to accompanying drawing
Time, unless otherwise indicated, the same numbers in different accompanying drawings represents same or analogous key element.In following exemplary embodiment
Described embodiment does not represent all embodiments consistent with the present invention.On the contrary, they are only and the most appended power
The example of the apparatus and method that some aspects that described in detail in profit claim, the present invention are consistent.
Fig. 1 is the flow chart according to a kind of application program installation method shown in an exemplary embodiment, as it is shown in figure 1, should
Method is in terminal, and the method comprises the following steps.
In step S101, detect whether that receiving the installation for set up applications operates;
In embodiments of the present invention, when set up applications, the installation kit utilizing application program is needed to install.Therefore,
When user needs set up applications, user can run this installation kit in the terminal, such as, double-click this installation kit or click
These installation kits etc., terminal will run this installation kit afterwards, to realize utilizing this installation kit set up applications.
So, this step is specifically as follows: detect whether to receive the startup operation of the installation kit for starting application program,
When receiving this startup operation, determine that the installation received for set up applications operates.
When receiving this installation operation, in step s 102, taking up room after application program is installed is obtained;
In embodiments of the present invention, the technical staff of the installation kit of exploitation application program in advance can be in the installation kit of application program
Default memory space field in store application program install after taking up room, therefore, in this step, can obtain should
With the installation kit of program;Then from the installation kit of application program, obtain taking up room after application program is installed.
In step s 103, it is judged that whether this takes up room more than or equal to presetting memory space;
In an embodiment of the invention, default memory space can be that the technical staff of user or exploitation terminal is in advance in this locality
Arranging, can be 1G, 2G or 3G etc., this be limited by the present invention.
In an alternative embodiment of the invention, the idle storage during default memory space can also be the internal storage space of terminal
Unappropriated memory space in space, namely the internal storage space of terminal.For example, it is assumed that the internal storage space of terminal
For 10G, wherein have in the memory space of 6G and stored other data, the memory space of residue 4G does not stores data,
Idle memory space during then this 4G memory space is the internal storage space of terminal.
When this takes up room more than or equal to when presetting memory space, in step S104, determine the target being connected with terminal
External memory space;
Wherein, when this takes up room more than or equal to when presetting memory space, in order to save the internal storage space of terminal, just
Need in the external memory space that application program is installed to be connected with terminal.Therefore, in this step, when this takies sky
Between more than or equal to when presetting memory space, it is thus necessary to determine that the target external memory space being connected with terminal, namely need really
Make an external memory space for set up applications.
In step S105, application program is installed in target external memory space.
After installing application program, if needing to run application program, then need to obtain application program and by application program
It is loaded onto in the internal memory of terminal.But, the external memory space being sometimes connected with terminal has a lot of, and terminal is not known
Which external memory space application program is arranged in, if searching whether respectively to deposit at each external memory space successively
At application program, then can expend for a long time, and then reduce the efficiency running application program.
Therefore, in order to improve the efficiency running application program, after this step, by mark and the target external of application program
Space identification one mark being recorded and stored in locally stored application program of composition of memory space and the space of memory space
In corresponding relation between mark.
So, when needing to run application program afterwards, just can determine rapidly according to above-mentioned corresponding relation and be mounted with application
The external memory space of program, then obtains application program from the external memory space determined and is loaded onto by application program
In the internal memory of terminal.
In embodiments of the present invention, detect whether that receiving the installation for set up applications operates;When receiving this installation
During operation, obtain taking up room after application program is installed;Judge that whether this takes up room more than or equal to presetting memory space;
When this takes up room more than or equal to when presetting memory space, determine the target external memory space being connected with terminal;Should
It is installed in target external memory space by program, has the most just reached the purpose of the internal storage space saving terminal.
In an embodiment of the invention, when the external memory space being connected with terminal is multiple, so that user can
With the demand according to oneself, application program is installed in the external memory space that user specifies, sees Fig. 2, step S104 bag
Include:
In step s 201, display external memory space selects interface;External memory space selects to show and terminal in interface
The space identification of the multiple different external memory space being connected;
Wherein, user can select interface to select a space identification at external memory space.
Such as, display interface can be as shown in Figure 3, it is assumed that user needs the application program installed in terminal to regard video for happy,
And the external memory space being connected with terminal is 4, display interface includes need application program to be mounted title,
The space identification of 4 external memory spaces being connected with terminal and selection control corresponding to each space identification.Wherein,
The space identification of these 4 external memory spaces is respectively external memory space 1, external memory space 2, external memory space 3
And external memory space 4.In figure 3, user have selected external memory space 2.
In step S202, detect whether to receive for selecting external memory space to select one space mark of selection in interface
The selection operation known;
When receiving this selection operation, in step S203, external memory space corresponding for the space identification of selection is determined
For target external memory space.
In still another embodiment of the process, seeing Fig. 4, step S104 includes:
In step S301, obtain the quantity of the external memory space being connected with terminal;
In embodiments of the present invention, terminal may only be connected to an external memory space, it is also possible to be simultaneously connected with multiple not
Same external memory space.
In step s 302, when the quantity of the external memory space being connected with terminal is one, by be connected with terminal
External memory space is defined as target external memory space;
In step S303, when the quantity of the external memory space being connected with terminal is multiple, from be connected with terminal
Multiple external memory spaces select an external memory space and as target external memory space.
Wherein, this step can be realized by the following two kinds mode, including:
A kind of mode, in order to keep the idle storage space of each external memory space being connected with terminal the most equalize, also
I.e. in order to avoid some external memory spaces have been occupied full but simultaneously the idle storage space of other external memory spaces more,
In the multiple external memory spaces being connected with terminal, terminal can obtain the idle storage sky of each external memory space
Between;The external memory space that idle storage space is maximum is defined as target external memory space.
Multiple external memory spaces that another way is connected with terminal are respectively used to install different types of application program;
Such as, the external memory space being connected with terminal is 4, and one of them is for installing outside the application program of game class
Portion's memory space, another is the external memory space of the application program for installing social class, and another is for regard for installation
Frequently the external memory space of the application program of class, and the outside storage sky that another is the application program for installing news category
Between.
Therefore, in this step, the type belonging to application program can first be obtained;Wherein, the installation kit of application program is developed
Technical staff the pre-set programs type field in the installation kit of application program can store the type of application program in advance, because of
This, directly can obtain the type of application program in the pre-set programs type field from the installation of application program.Then with
In multiple external memory spaces that terminal is connected, search the external memory space being used for installing the application program of the type;Will
The external memory space searched is defined as target external memory space.
Wherein, what terminal can obtain between type and the space identification of external memory space of locally stored application program is right
Should be related to;In this corresponding relation, search the space identification corresponding with the type, obtain the space identification found corresponding
External memory space, is defined as target external memory space by this external memory space got.
Fig. 5 is the block diagram according to a kind of application program erecting device shown in an exemplary embodiment.With reference to Fig. 5, this device bag
Include:
Detection module 11, operates for detecting whether receive the installation for set up applications;
Acquisition module 12, for when receiving described installation operation, obtains taking up room after described application program is installed;
Judge module 13, be used for judging described in whether take up room more than or equal to presetting memory space;
Determine module 14, for taking up room more than or equal to when presetting memory space when described, determine and be connected with described terminal
The target external memory space connect;
Module 15 is installed, for being installed in described target external memory space by described application program.
Wherein, described determine that module 14 includes:
Display unit, is used for showing that external memory space selects interface;Described external memory space select interface shows with
The space identification of the multiple different external memory space that described terminal is connected;
Detector unit, selects a sky for detecting whether receive in selecting interface at described selection external memory space
Between mark selection operation;
First determines unit, for when receiving described selection operation, being deposited outside corresponding for the space identification of described selection
Storage space is defined as described target external memory space.
Wherein, described determine that module 14 includes:
First acquiring unit, for obtaining the quantity of the external memory space being connected with described terminal;
Second determines unit, is used for when the quantity of the external memory space being connected with described terminal is one, will be with described
The external memory space that terminal is connected is defined as described target external memory space;
Select unit, for when the quantity of the external memory space being connected with described terminal is multiple, from described terminal
The multiple external memory spaces being connected select an external memory space and as described target external memory space.
Wherein, described selection unit includes:
First obtains subelement, in the multiple external memory spaces being connected with described terminal, obtains outside each
The idle storage space of memory space;
First determines subelement, for the external memory space that idle storage space is maximum is defined as described target external
Memory space.
Wherein, the multiple external memory spaces being connected with described terminal are respectively used to install different types of application program;
Described selection unit includes:
Second obtains subelement, for obtaining the type belonging to described application program;
Search subelement, in the multiple external memory spaces being connected with described terminal, search and be used for described class is installed
The external memory space of the application program of type;
Second determines subelement, for the external memory space of described lookup is defined as described target external memory space.
Further, described device also includes:
Memory module, for forming one by the space identification of the mark of described application program with described target external memory space
It is recorded and stored in the corresponding relation between mark and the space identification of memory space of locally stored application program.
Wherein, described acquisition module 12 includes:
Second acquisition unit, for obtaining the installation kit of described application program;Described installation kit has prestored described application
Taking up room after program installation;
3rd acquiring unit, for obtaining taking up room after described application program is installed from the installation kit of described application program.
In embodiments of the present invention, detect whether that receiving the installation for set up applications operates;When receiving this installation
During operation, obtain taking up room after application program is installed;Judge that whether this takes up room more than or equal to presetting memory space;
When this takes up room more than or equal to when presetting memory space, determine the target external memory space being connected with terminal;Should
It is installed in target external memory space by program, has the most just reached the purpose of the internal storage space saving terminal.
About the device in above-described embodiment, wherein modules performs the concrete mode of operation in the reality about the method
Execute in example and be described in detail, explanation will be not set forth in detail herein.
Fig. 6 is the block diagram according to a kind of application program erecting device shown in an exemplary embodiment.With reference to Fig. 6, this device bag
Include:
Processor 21;
For storing the memorizer 22 of processor 21 executable instruction;
Wherein, described processor 21 is configured to:
Detect whether that receiving the installation for set up applications operates;
When receiving described installation operation, obtain taking up room after described application program is installed;
Whether take up room described in judgement more than or equal to presetting memory space;
Take up room more than or equal to when presetting memory space when described, determine the target external storage being connected with described terminal
Space;
Described application program is installed in described target external memory space.
In the optional embodiment of one, described processor 21 is configured to:
Display external memory space selects interface;Described external memory space selects to show in interface and is connected with described terminal
The space identification of multiple different external memory spaces;
Detect whether to receive the selection behaviour selecting a space identification in selecting interface at described selection external memory space
Make;
When receiving described selection operation, external memory space corresponding for the space identification of described selection is defined as described mesh
Mark external memory space.
In the optional embodiment of one, described processor 21 is configured to:
Obtain the quantity of the external memory space being connected with described terminal;
When the quantity of the external memory space being connected with described terminal is one, the outside being connected with described terminal is deposited
Storage space is defined as described target external memory space;
When the quantity of the external memory space being connected with described terminal is multiple, from be connected with described terminal multiple
Portion's memory space selects an external memory space and as described target external memory space.
In the optional embodiment of one, described processor 21 is configured to:
In the multiple external memory spaces being connected with described terminal, obtain the idle storage sky of each external memory space
Between;
The external memory space that idle storage space is maximum is defined as described target external memory space.
In the optional embodiment of one, described processor 21 is configured to:
Described from the multiple external memory spaces being connected with described terminal, select an external memory space as described mesh
Mark external memory space, including:
Obtain the type belonging to described application program;
In the multiple external memory spaces being connected with described terminal, search outside the application program for installing described type
Portion's memory space;
The external memory space of described lookup is defined as described target external memory space.
In the optional embodiment of one, described processor 21 is configured to:
The space identification of the mark of described application program with described target external memory space is formed one and is recorded and stored in this
In corresponding relation between mark and the space identification of memory space of the application program of ground storage.
In the optional embodiment of one, described processor 21 is configured to:
Obtain the installation kit of described application program;Described installation kit has prestored described application program install after take sky
Between;
Taking up room after described application program is installed is obtained from the installation kit of described application program.
Those skilled in the art, after considering description and putting into practice invention disclosed herein, will readily occur to other reality of the present invention
Execute scheme.The application is intended to any modification, purposes or the adaptations of the present invention, these modification, purposes or
Adaptations is followed the general principle of the present invention and includes the undocumented common knowledge or used in the art of the present invention
Use technological means.Description and embodiments is considered only as exemplary, and true scope and spirit of the invention are by appended right
Requirement is pointed out.
It should be appreciated that the invention is not limited in precision architecture described above and illustrated in the accompanying drawings, and can
To carry out various modifications and changes without departing from the scope.The scope of the present invention is only limited by appended claim.