A kind of store method and mobile terminal to downloading file
Technical field
The present invention relates to moving communicating field, particularly relate to a kind of store method to downloading file
And mobile terminal.
Background technology
At present, when using mobile terminal to carry out file download, downloaded file would generally be by automatically
It is saved in default path.Such as, the figure sector-meeting of UC browser downloads is used to be saved in
In UCDownloads file, the figure sector-meeting of Sina's microblogging client downloads is used to be saved in
In sinamicroblog file, and the file received by Bluetooth technology can be saved in
In bluetooth file.Visible, use different files or downloading mode to obtain
To downloaded file can store different files, and inhomogeneity in same file folder
The file of type also can carry out mixing storage (such as, can be same in UCDownloads file
Time storage have picture file, text and audio file).
In this case, file is stored into the default path that user is not familiar with, and inhomogeneity
Type file mixing be stored in same file folder in, be not easy to user file is made a look up and
Use.
Summary of the invention
The embodiment provides a kind of store method to download file and mobile terminal,
It is easy to user to the lookup of downloaded file and use.
For reaching above-mentioned purpose, embodiments of the invention adopt the following technical scheme that
On the one hand, it is provided that a kind of to download file store method, including:
Determine the type of the file that need to download;
Determine whether mobile terminal exists preset corresponding with the type of the described file that need to download
File;
When determining that there is described default file presss from both sides, by the described file download that need to download to described
Default file presss from both sides;
When determining that there is not described default file presss from both sides, by the described file download that need to download to silent
Recognize file.
On the other hand, additionally provide a kind of store method to download file, including:
Determine the type of the file that need to download;
By the described file download that need to download to default folder;
Determine whether mobile terminal exists preset corresponding with the type of the described file that need to download
File;
When determining that there is described default file presss from both sides, the described file that need to download is saved in described
Default file presss from both sides.
On the one hand, it is provided that a kind of mobile terminal, including:
First determines unit, for determining the type of the file that need to download;
Second determine unit, need to download with described for determining whether described mobile terminal exists
The default file that the type of file is corresponding presss from both sides;
First download unit, for determining that unit determines and there is described default file when described second
During folder, the described file download that need to download is pressed from both sides to described default file;
Second download unit, for determining unit to determine not to there is described default literary composition when described second
During part folder, by the described file download that need to download to default folder.
On the other hand, it is provided that a kind of mobile terminal, including:
First determines unit, for determining the type of the file that need to download;
First download unit, is used for the described file download that need to download to default folder;
Second determine unit, need to download with described for determining whether described mobile terminal exists
The default file that the type of file is corresponding presss from both sides;
Storage unit, is used for when described second determines that unit determines that there is described default file presss from both sides
Time, the described file that need to download is saved in described default file folder.
Embodiments provide a kind of store method to download file and mobile terminal, logical
Cross the default file folder that the type of the file determined whether there is and need to download is corresponding, and when depositing
When described default file presss from both sides, by the described file download that need to download to or be saved in described preset
File so that downloaded file will not be stored into the default path that user is not familiar with, different
The file of type will not mix storage, to the lookup of downloaded file and uses provider for user
And decrease and repeat to store the waste of storage space caused just,.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below by right
In embodiment or description of the prior art, the required accompanying drawing used is briefly described, it should be apparent that,
Accompanying drawing in describing below is only some embodiments of the present invention, for those of ordinary skill in the art
From the point of view of, on the premise of not paying creative work, it is also possible to obtain the attached of other according to these accompanying drawings
Figure.
The flow process of a kind of store method to downloading file that Fig. 1 provides for the embodiment of the present invention 1
Figure;
The stream of the another kind that Fig. 2 provides for the embodiment of the present invention 1 store method to downloading file
Cheng Tu;
The flow process of a kind of store method to downloading file that Fig. 3 provides for the embodiment of the present invention 2
Figure;
The stream of the another kind that Fig. 4 provides for the embodiment of the present invention 2 store method to downloading file
Cheng Tu;
The block diagram of a kind of mobile terminal that Fig. 5 provides for the embodiment of the present invention 3;
The block diagram of the another kind of mobile terminal that Fig. 6 provides for the embodiment of the present invention 3;
The block diagram of the another kind of mobile terminal that Fig. 7 provides for the embodiment of the present invention 3;
The block diagram of the another kind of mobile terminal that Fig. 8 provides for the embodiment of the present invention 3.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is entered
Row clearly and completely describes, it is clear that described embodiment is only 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 art are not having
Have and make the every other embodiment obtained under creative work premise, broadly fall into present invention protection
Scope.
Embodiment 1:
Embodiments provide a kind of store method to download file, as it is shown in figure 1,
The method includes:
101, the type of the file that need to download is determined.
Wherein, the type of the file need to downloaded includes but not limited to: text, picture, audio frequency or
Video;It should be understood that the concrete form of above-mentioned text, picture, audio or video is not
Limit.Such as, word form, TXT lattice can be included but not limited to for text type
Formula or PDF etc..
102, determine whether mobile terminal exists corresponding with the type of the described file that need to download
Default file presss from both sides.
103, when determining that there is described default file presss from both sides, the described file that need to download is stored
Press from both sides to described default file.
104, when determining that there is not described default file presss from both sides, by under the described file that need to download
It is downloaded to default folder.
The executive agent that it should be noted that step 101 to 104 is mobile terminal.
It should be understood that the mobile terminal in the embodiment of the present invention includes but not limited to use respectively
The mobile phone of kind operating system, personal digital assistant PDA, handheld device, tablet PC,
Pocket computer etc..
User is when using mobile terminal to carry out file download, and different downloaded software or client may
There is different default folder storage downloaded files.The embodiment of the present invention is by setting in the terminal
Put the default file folder of certain type, the type phase pressed from both sides in the file that can will need to download with default file
Same file is directly downloaded in the default file folder of correspondence store.Such as, type is set for figure
The default file folder of sheet, named picturedownload, it is used for storing picture file.Then need to download
File when being picture file, file is directly downloaded in picturedownload, without because of under
Carry software or the difference of client and store in different files.
On the other hand, the embodiment of the present invention additionally provides a kind of store method to download file,
As in figure 2 it is shown, the method includes:
201, the type of the file that need to download is determined.
Wherein, the type of the file need to downloaded includes but not limited to: text, picture, audio frequency or
Video;It should be understood that the concrete form of above-mentioned text, picture, audio or video is not
Limit.Such as, word form, TXT lattice can be included but not limited to for text type
Formula or PDF etc..
202, by the described file download that need to download to default folder.
203, the default file corresponding with the type of the described file that need to download is determined whether there is
Folder.
204, when determining that there is described default file presss from both sides, by the described file that need to download from institute
State default folder and be saved in described default file folder.
The executive agent that it should be noted that step 201 to 203 is mobile terminal.
It should be understood that the mobile terminal in the embodiment of the present invention includes but not limited to use respectively
The mobile phone of kind operating system, personal digital assistant PDA, handheld device, tablet PC,
Pocket computer etc..
The embodiment of the present invention is pressed from both sides by arranging the default file of a certain type in the terminal, can be by
The file downloading to meet in the file of mobile terminal default folder the type of default file folder enters one
Step is saved in the default file folder of correspondence.Such as, the default file folder of audio types is set, and orders
Entitled musicdownload, is used for storing audio file.Then audio file is downloaded to default document
After folder, all will be transferred and store in musicdownload, without because of downloaded software or client
Difference and store in different files.
Embodiments provide a kind of store method to download file and mobile terminal, logical
Cross the default file folder that the type of the file determined whether there is and need to download is corresponding, and when depositing
When described default file presss from both sides, by the described file download that need to download to or be saved in described preset
File so that downloaded file will not be stored into the default path that user is not familiar with, different
The file of type will not mix storage, to the lookup of downloaded file and uses provider for user
And decrease and repeat to store the waste of storage space caused just,.
Embodiment 2:
Embodiments provide a kind of store method to download file, as it is shown on figure 3,
The method includes:
301, the type of the file that need to download is determined.
302, determine whether mobile terminal exists preset corresponding with the type of the file that need to download
File.
When there is described default file folder, performing step 303, otherwise performing step 306.
303, determine that the file that need to download has stored in a memory in the mobile terminal the most.
If the file that need to download has stored in a memory in the mobile terminal, perform step 304;
Otherwise perform step 305.
304, the store path of the described file that need to download is notified user, and cancel described
The download of file need to be downloaded.
305, the described file download that need to download is pressed from both sides to described default file.
306, by the described file download that need to download to default folder.
The executive agent that it should be noted that step 301 to 306 is mobile terminal.
Citing is to above-mentioned steps 301 to 306 explanation.User use download tool on mobile terminal from
Download audio file on the net.When performing to download, mobile terminal first has to determine the file that need to download,
Assume the entitled music.mp3 of this file that need to download.Afterwards, mobile terminal detect whether exist with
The default file that the file type of music.mp3 is corresponding presss from both sides.If pre-set in the terminal
It is specifically designed to the file (folder name is referred to as musicdownloads) of storage audio file, more really
Determine music.mp3 the most to store in a memory in the mobile terminal, if being stored in mobile terminal
Memorizer, then notify the store path of music.mp3 user, and cancel under music.mp3
Carry.If music.mp3 is not stored in the memorizer of mobile terminal, then music.mp3 is downloaded to
In this musicdownloads file.If mobile terminal does not exist the file with music.mp3
The default file folder that type is corresponding, then download to the default document in mobile terminal by music.mp3
Folder.It should be noted that this is used for the audio file formats stored corresponding to the file of audio file
Can be configured according to service condition, include mp3 and wma for example, it is possible to arrange, it is also possible to
The audio file including any form is set.
On the other hand, the embodiment of the present invention additionally provides a kind of store method to download file, as
Shown in Fig. 4, the method includes:
401, the type of the file that need to download is determined.
402, by the file download that need to download to default folder.
After the type determining the file that need to download, directly it is downloaded to default folder.
403, determine whether mobile terminal exists preset corresponding with the type of the file that need to download
File.
When determining that there is described default file presss from both sides, perform step 404, otherwise continue in acquiescence
File preserves file.
404, determine that the described file that need to download has been stored in described default file folder the most.
If it is determined that the described file that need to download has been stored in described default file folder, perform step
405;Otherwise perform step 406.
405, by the information having stored in described default file folder of the described file that need to download
Notify user, and cancel the described preservation that need to download file.
406, the described file that need to download being downloaded to described default folder is moved to institute
State default file folder.
The executive agent that it should be noted that step 401 to 406 is mobile terminal.
Above-mentioned steps 401 to 406 is illustrated by citing.New by mobile terminal of user
Picture file pic.jpg is downloaded to the default folder of Sina's microblogging by wave microblogging client
In sinamicroblog.Then, mobile terminal determines whether there is the file pair with pic.jpg
The default file folder answered.Assume to have preset file picdownloads in the terminal, should
File for storing the picture file of jpg form, then further determines that pic.jpg deposits the most
Storage is in picdownloads.If picdownloads does not stores pic.jpg, then will acquiescence literary composition
Pic.jpg in part folder moves to picdownloads and stores.If picdownloads is
Storage pic.jpg, then notify user by the most stored for pic.jpg information, and cancel repetition
The preservation of the pic.jpg downloaded.It should be noted that this file institute being used for storing picture file
The form of corresponding picture file can carry out multiple setting according to actually used situation, for example, it is possible to
Setting includes jpg, it is also possible to arrange the audio file including any form.
Additionally, the step 406 in the embodiment of the present invention, it is also possible to it is will to be downloaded to described acquiescence
The store path of the described file that need to download of file maps to described default file folder, thus
It is not required to the physical storage locations of mobile file.Such as, the store path of pic.jpg is mapped to
Picdownloads, but actual storage locations is still at sinamicroblog.User is using shifting
During dynamic terminal, pic.jpg will be found in picdownloads.
Additionally, when mobile terminal needs the cleaning carrying out specific file, first start for spy
Determine the search of file.Such as, the search of the file to entitled 123.MP3 is started, it is thus achieved that
Being stored in the whole mp3 files in different file, wherein 123.MP3 file is to be different from it
He is marked the mode of mp3 file, such as can carry out labelling 123.MP3 file by redness.
Show the 123.MP3 file in each different files and each the most on mobile terminals
From store path, mobile terminal can point out the 123.MP3 file that these are born the same name by user
Carry out clearing up, the operation such as deletion, repeat storage with avoid same file.
The default file folder of a certain type described in the embodiment of the present invention, is used for storing files classes
The file that type is identical.Such as, the type of default file folder can include audio frequency, picture, video
With text etc..The form of audio file can be MP3, WMA, WAV and APE etc.;
The form of picture file can be BMP, JPG, GIF etc.;Video file format can be
AVI, WMA, RMVB etc.;The form of text can be TXT form or HML
Text etc..
Embodiments provide a kind of store method to download file and mobile terminal, logical
Cross the default file folder that the type of the file determined whether there is and need to download is corresponding, and when depositing
When described default file presss from both sides, the described file that need to download is saved in described from default folder
Default file presss from both sides so that downloaded file will not be stored into the default path that user is not familiar with,
Different types of file will not mix storage, proposes lookup and the use of downloaded file for user
For convenient, and decrease and repeat to store the waste of storage space caused.
Embodiment 3:
Embodiments provide a kind of mobile terminal, as it is shown in figure 5, this mobile terminal bag
Including: first determines unit 51, second determines unit 52, the first download unit 53, second time
Carrier unit 54.
First determines unit 51, for determining the type of the file that need to download.
Second determines unit 52, be used for determining described mobile terminal whether exist with under described need
The default file that the type of the file carried is corresponding presss from both sides.
First download unit 53, for when described second determine unit 52 determine exist described pre-
If during file, the described file download that need to download is pressed from both sides to described default file.
Second download unit 54, described in determining unit 52 to determine not exist when described second
During default file folder, by the described file download that need to download to default folder.
Further, as shown in Figure 6, described mobile terminal also includes: the 3rd determines unit
55, notification unit 56.
3rd determines unit 55, for determining that the described file that need to download has been stored in institute the most
State in the memorizer of mobile terminal.
Notification unit 56, is used for when the described 3rd determines that single 55 yuan determine the described literary composition that need to download
Part has been stored in the memorizer of described mobile terminal, by the storage road of the described file that need to download
Footpath notifies user.
Described first download unit 52 is additionally operable to determine that unit 55 determines described need the described 3rd
When the file downloaded has been stored in the memorizer of described mobile terminal, cancels and described need is downloaded
The download of file.
On the other hand, the embodiment of the present invention additionally provides a kind of user terminal, as it is shown in fig. 7,
This mobile terminal includes:
First determines unit 71, for determining the type of the file that need to download.
First download unit 72, is used for the described file download that need to download to default folder.
Second determines unit 73, be used for determining described mobile terminal whether exist with under described need
The default file that the type of the file carried is corresponding presss from both sides.
Storage unit 74, for determining that unit 73 determines and there is described default literary composition when described second
During part folder, the described file that need to download is saved in described default file folder.
Further, as shown in Figure 8, described mobile terminal also includes: the 3rd determines unit
75, notification unit 76.
3rd determines unit 75, for determining that the described file that need to download has been stored in institute the most
State default file folder.
Notification unit 76, is used for when the described 3rd determines that unit 75 determines the described literary composition that need to download
When part has been stored in described default file folder, the described file that need to download had stored in institute
The information stating default file folder notifies user.
Described storage unit 74 is additionally operable to when the described 3rd determines that unit 75 determines that described need is downloaded
File when being stored in described default file folder, cancel guarantor to the described file that need to download
Deposit.
Further, described storage unit 74 at least includes following a kind of unit:
First storage unit, for described downloading be downloaded to described default folder
File moves to described default file and presss from both sides;
Second storage unit, for described downloading be downloaded to described default folder
The store path of file maps to described default file folder.
Default file folder in the embodiment of the present invention is for storing the file that file type is identical.Ratio
As, the type of file can include audio frequency, picture, video and text etc..The lattice of audio file
Formula can be MP3, WMA, WAV and APE etc.;Picture file format can be BMP,
JPG, GIF etc.;The form of video file can be AVI, WMA, RMVB etc.;Text
The form of file can be TXT form or HML text etc..
Embodiments provide a kind of mobile terminal, be determined by whether existing and need to download
The corresponding default file folder of the type of file, and when there is described default file folder, will
The described file download that need to download to or be saved in described default file folder so that downloaded file
Will not be stored into the default path that user is not familiar with, different types of file will not mix to be deposited
Storage, to the lookup of downloaded file for user and uses and provides convenient, and decreases and repeat storage
The waste of storage space caused.Additionally, the most stored inside mobile terminal by checking
Download file, the repeated downloads to identical file can be avoided.
Field those of ordinary skill is understood that all or part of step realizing said method embodiment
Can be completed by the hardware that programmed instruction is relevant, aforesaid program can be stored in a computer can
Reading in storage medium, this program upon execution, performs to include the step of said method embodiment;And
Aforesaid storage medium includes: ROM, RAM, magnetic disc or CD etc. are various can store program
The medium of code.
The above, the only detailed description of the invention of the present invention, but protection scope of the present invention is also
Being not limited to this, any those familiar with the art is at the technology model that the invention discloses
In enclosing, change can be readily occurred in or replace, all should contain within protection scope of the present invention.
Therefore, protection scope of the present invention should be as the criterion with described scope of the claims.