Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
Fig. 1 shows the implementation process of the method for down loading of mobile terminal favorites data provided in an embodiment of the present invention, in detail
State as follows:
In S101, the data message that data are collected in the mobile terminal collection is obtained.
Wherein, the mobile terminal collection, can be to be arranged on the file under a certain store path of mobile terminal,
During mobile terminal use, it can be accessed by the application installed in the terminal, management (including is added, deletes, repaiied
Change) data in this document folder, for example, opening collection by browser, or by cell phone managing application download pictures simultaneously
Picture is added in collection.
The collection data, including but not limited to application program, game, picture, audio and video.
In the present embodiment, by traveling through the collection data in collection, the data message of collection data is got, its
In, data message includes but is not limited to collect filename, store path of data, etc..
In S102, the data type of the collection data is parsed according to the data message.
Data message based on the S101 collection data got is parsed, so as to parse the data class of collection data
Type.
As one embodiment of the present of invention, when filename of the data message for collection data, solution can be passed through
The file name suffix of analysis collection data, know the data type of collection data.For example, file name suffix is .jpg collection number
According to its data type is picture;File name suffix is .mpg collection data, and its data type is video;File name suffix is
.mp3 collection data, its data type are audio.
As another embodiment of the present invention, when the data message is to collect data in the mobile terminal collection
During affiliated sub-folder title, it can determine to collect the data type of data according to the sub-folder title.It is for example, mobile
Terminal system can be given tacit consent to sets music, game, picture, video these sub-folders in collection, in order to collecting number
According to carry out classification storage, management, therefore, if collection data belong in mobile terminal collection " music " sub-folder it
Under, then the data type that can know the collection data is music;If collection data belong in mobile terminal collection
Under " game " sub-folder, then the data type that can know the collection data is game class application program;If collect number
Belong to according in mobile terminal collection under " picture " sub-folder, then the data type of the collection data can be known
For picture.
As another embodiment of the present invention, when store path of the data message for collection data, due to Ziwen
The store path of part folder also contains sub-folder title, therefore, can extract collection from the store path of collection data
The sub-folder title of sub-folder where data, and thereby determine that out the data type of collection data.
In S103, the related data of the data type is extracted from preset path.
Before S103, as shown in Fig. 2 methods described also includes:
S105, the preset path is set according to the setting of input instruction.
In the present embodiment, it can be inputted from user to mobile terminal and instruction is set, preset path is set in systems, its
In, the preset path can be appointed website access path or given server access path, these appointed websites or
The abundant data resource of various data types is stored in person's given server.
Meanwhile preset path can also be given tacit consent to by mobile terminal when dispatching from the factory, or, for installation answering in the terminal
Default path.
Based on the preset path pre-set, mobile terminal is remotely accessed, with the data type determined in S102
For search condition, retrieved in appointed website or given server, to retrieve the data resource of same data type.
In S104, the related data of the data type is downloaded into the mobile terminal collection.
Mobile terminal can by telereference to the related description information of data resource of same data type be loaded onto shifting
Dynamic terminal local is shown, so as to which the data resource of these same data types is recommended into mobile terminal user, with by mobile whole
End subscriber voluntarily selects to need which data resource downloaded.
As shown in figure 3, S104 is specially:
S301, according to the selection instruction of input, the selected target data in the related data of the data type.
In the present embodiment, the related description information for the data resource that mobile terminal remote retrieves can be in tabular form
Present mobile terminal is local, the selection instruction inputted by receiving mobile terminal user, determines mobile terminal user in these numbers
According to the target data selected in resource.
S302, the target data is downloaded into the mobile terminal collection.
The store path for the data resource that mobile terminal provides according to STA or server initiates download request, visits
Memory space where asking these target datas, target data is downloaded in mobile terminal collection, so as to complete collection number
According to download.
One embodiment bright as this, as shown in figure 4, S302 is specially:
S401, download the target data.
S402, it will be stored after the target data encryption of download into the mobile terminal collection.
In the present embodiment, (further, can be with by the target data encryption of download by default AES
It is compressed) after, store into mobile terminal collection, to ensure the user of data privacy and security.Meanwhile further
Ground, the target data of download can also store into corresponding sub-folder according to its data type, to facilitate subsequently to collection
Data are managed.
In the embodiment of the present invention, the download to favorites data is not limited to the unsolicited download of mobile terminal user
Source, but can be carried out according to the existing collection data of mobile terminal with data type resource recommendation, provided with providing abundant download
Source, improve the information content 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 of the invention real
The structured flowchart of the download apparatus of the mobile terminal favorites data of example offer is provided, for convenience of description, illustrate only and this reality
Apply the related part of example.
Reference picture 5, the device include:
Acquiring unit 51, obtain the data message that data are collected in the mobile terminal collection.
Resolution unit 52, the data type of the collection data is parsed according to the data message.
Extraction unit 53, the related data of the data type is extracted from preset path.
Download unit 54, the related data of the data type is downloaded into the mobile terminal collection.
Alternatively, the data message includes the filename for collecting data or the collection data in the movement
Sub-folder title belonging in terminal collection.
Alternatively, described device also includes:
Setting unit, the preset path is set according to the setting of input instruction, the preset path includes:Appointed website
Access path or given server access path.
Alternatively, the download unit 54 includes:
Select subelement, according to the selection instruction of input, the selected target data in the related data of the data type;
Lower subelements, the target data is downloaded into the mobile terminal collection.
Alternatively, the lower subelements are specifically used for:
Download the target data;
It will be stored after the target data encryption of download into the mobile terminal collection.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention
All any modification, equivalent and improvement made within refreshing and principle etc., should be included in the scope of the protection.