Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Fig. 1 shows the realization flow of the method for down loading of the mobile terminal favorites data that the embodiment of the present invention provides, and details are as follows:
In S101, obtain the data message collecting data in described mobile terminal collection.
Wherein, described mobile terminal collection, can for being arranged on the file under a certain store path of mobile terminal, in mobile terminal use procedure, can by the data in installation application access in the terminal, management (comprising interpolation, deletion, amendment) this file, such as, open collection by browser, or picture is added in collection by cell phone managing application download pictures.
Described collection data, include but not limited to application program, game, picture, audio frequency and video.
In the present embodiment, by the collection data in traversal collection, get the data message of collection data, wherein, data message comprises but is not limited to collect filename, the store path of data, etc.
In S102, parse the data type of described collection data according to described data message.
The data message of the collection data got based on S101 is resolved, thus parses the data type of collection data.
As one embodiment of the present of invention, when described data message is the filename of collection data, by resolving the file name suffix of collection data, the data type of collection data can be known.Such as, file name suffix is the collection data of .jpg, and its data type is picture; File name suffix is the collection data of .mpg, and its data type is video; File name suffix is the collection data of .mp3, and its data type is audio frequency.
As another embodiment of the present invention, when described data message be collection data in described mobile terminal collection belonging to sub-folder title time, can determine to collect the data type of data according to this sub-folder title.Such as, mobile terminal system can be given tacit consent to set music, game, picture, these sub-folders of video in collection, store so that carry out classification to collection data, manage, therefore, if collection data belong under " music " sub-folder in mobile terminal collection, so can know that the data type of these collection data is music; If collection data belong under " game " sub-folder in mobile terminal collection, so can know that the data type of these collection data is game class application program; If collection data belong under " picture " sub-folder in mobile terminal collection, so can know that the data type of these collection data is picture.
As another embodiment of the present invention, when described data message is the store path of collection data, store path due to sub-folder also contains sub-folder title, therefore, the sub-folder title of collection data place sub-folder can be extracted from the store path of collection data, and determine the data type of collection data thus.
In S103, from preset path, extract the related data of described data type.
Before S103, as shown in Figure 2, described method also comprises:
S105, the instruction that arranges according to input arranges described preset path.
In the present embodiment, by user, instruction can be set to mobile terminal input, preset path is set in systems in which, wherein, this preset path can be the access path of appointed website or the access path of given server, stores the abundant data resource of various data type in these appointed website or given server.
Meanwhile, preset path also can be given tacit consent to when dispatching from the factory by mobile terminal, or, for installing the default path of application in the terminal.
Based on the preset path pre-set, mobile terminal carries out remote access, with the data type determined in S102 for search condition, retrieves in appointed website or given server, to retrieve the data resource of same data type.
In S104, download the related data of described data type to described mobile terminal collection.
Mobile terminal can by telereference to the related description information of data resource of same data type be loaded on the display of mobile terminal this locality, thus the data resource of these same data type is recommended mobile phone users, to be selected voluntarily by mobile phone users to need to download which data resource.
As shown in Figure 3, S104 is specially:
S301, according to the selection instruction of input, selected target data in the related data of described data type.
In the present embodiment, the related description information of the data resource that mobile terminal remote retrieves can be presented on mobile terminal this locality with tabular form, by the selection instruction that mobile terminal receive user inputs, determine the target data that mobile phone users is selected in these data resources.
S302, downloads in described target data to described mobile terminal collection.
The store path of the data resource that mobile terminal provides according to STA or server initiates download request, accesses these target data place storage spaces, target data is downloaded in mobile terminal collection, thus completes the download of favorites data.
As the embodiment that this is bright, as shown in Figure 4, S302 is specially:
S401, downloads described target data.
S402, is stored to after the described target data encryption of downloading in described mobile terminal collection.
In the present embodiment, by the cryptographic algorithm preset, after the target data downloaded is encrypted (further, can also compress), be stored in mobile terminal collection, to ensure user's privacy and the security of data.Meanwhile, further, the target data of download also can be stored in corresponding sub-folder according to its data type, with facilitate follow-up to collection data manage.
In the embodiment of the present invention, the unsolicited loading source of mobile phone users is not limited to the download of favorites data, but same data type resource recommendation can be carried out according to mobile terminal existing collection data, to provide abundant downloaded resources, improve the quantity of information of mobile terminal favorites data.
Corresponding to the method for down loading of the mobile terminal favorites data described in foregoing embodiments, Fig. 5 shows the structured flowchart of the download apparatus of the mobile terminal favorites data that the embodiment of the present invention provides, for convenience of explanation, illustrate only part related to the present embodiment.
With reference to Fig. 5, this device comprises:
Acquiring unit 51, obtains the data message collecting data in described mobile terminal collection.
Resolution unit 52, parses the data type of described collection data according to described data message.
Extraction unit 53, extracts the related data of described data type from preset path.
Download unit 54, downloads the related data of described data type to described mobile terminal collection.
Alternatively, described data message comprises filename or the sub-folder title of described collection data belonging in described mobile terminal collection of described collection data.
Alternatively, described device also comprises:
Setting unit, the instruction that arranges according to input arranges described preset path, and described preset path comprises: the access path of appointed website or the access path of given server.
Alternatively, described download unit 54 comprises:
Chooser unit, according to the selection instruction of input, selected target data in the related data of described data type;
Lower subelements, downloads in described target data to described mobile terminal collection.
Alternatively, described lower subelements specifically for:
Download described target data;
Be stored to after the described target data encryption of downloading in described mobile terminal collection.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.