CN104699765B - A kind of date storage method and mobile terminal - Google Patents
A kind of date storage method and mobile terminal Download PDFInfo
- Publication number
- CN104699765B CN104699765B CN201510080588.0A CN201510080588A CN104699765B CN 104699765 B CN104699765 B CN 104699765B CN 201510080588 A CN201510080588 A CN 201510080588A CN 104699765 B CN104699765 B CN 104699765B
- Authority
- CN
- China
- Prior art keywords
- data
- storage rule
- mobile terminal
- preset
- target
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 26
- 238000013500 data storage Methods 0.000 claims abstract description 126
- 238000013481 data capture Methods 0.000 claims description 5
- 238000010586 diagram Methods 0.000 description 14
- 230000001568 sexual effect Effects 0.000 description 9
- 230000006870 function Effects 0.000 description 4
- 238000007726 management method Methods 0.000 description 4
- 238000004590 computer program Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Landscapes
- Telephonic Communication Services (AREA)
- Information Transfer Between Computers (AREA)
Abstract
A kind of date storage method of offer of the embodiment of the present invention and mobile terminal, wherein method may include following steps:Obtain preset data storage rule;It is scanned in source data according to the preset data storage rule;When searching the target data to match with the data storage rule in the source data, the target data is stored to corresponding destination path.The embodiment of the present invention can improve the intelligent of mobile terminal, save the time that user searches for data.
Description
Technical field
The present invention relates to technical field of mobile terminals, and in particular to a kind of date storage method and mobile terminal.
Background technology
Increasing with the capacity of mobile terminal, user can store a large amount of data on mobile terminals, such as answer
With program, video, song, theme, wallpaper, photo etc..Currently, mobile terminal is all to pass through user when obtaining and storing data
Manual operation realize, for example, user can carry out clicking operation to data that oneself is liked, to download the data, and hand
The dynamic store path for selecting the data, but existing this mode may be such that user devotes a tremendous amount of time needed for lookup
Data.
Invention content
A kind of date storage method of offer of the embodiment of the present invention and mobile terminal, can be such that mobile terminal more intelligently obtains
And store data.
First aspect of the embodiment of the present invention provides a kind of date storage method, it may include:
Obtain preset data storage rule;
It is scanned in source data according to the preset data storage rule;
When searching the target data to match with the data storage rule in the source data, by the target
Data are stored to corresponding destination path.
Second aspect of the embodiment of the present invention provides a kind of mobile terminal, it may include:
Acquiring unit, for obtaining preset data storage rule;
Search unit, for being scanned in source data according to the preset data storage rule;
Storage unit searches the target data to match with the data storage rule for working as in the source data
When, the target data is stored to corresponding destination path.
In embodiments of the present invention, by obtaining preset data storage rule and according to preset storage rule in source number
It is scanned in, when searching the target data to match with the data storage rule in source data, by the mesh
Mark data are stored to corresponding destination path, so that mobile terminal is automatically obtained and are stored data, improve mobile terminal
It is intelligent, and save user search for data time.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
Obtain other attached drawings according to these attached drawings.
Fig. 1 is a kind of flow diagram of date storage method provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of another date storage method provided in an embodiment of the present invention;
Fig. 3 is the flow diagram of another date storage method provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of mobile terminal provided in an embodiment of the present invention;
Fig. 5 is the structural schematic diagram of another mobile terminal provided in an embodiment of the present invention;
Fig. 6 is the structural schematic diagram for the search unit that embodiment illustrated in fig. 5 provides;
Fig. 7 is the structural schematic diagram for the storage unit that embodiment illustrated in fig. 5 provides.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
A kind of date storage method and mobile terminal provided in an embodiment of the present invention, can be applied to mobile terminal and deposit automatically
The scene of data is stored up, such as:The mobile terminal is in software store or downloads and searches for that download is highest to answer automatically on webpage
With program and the scene that is stored under corresponding destination path;It is described mobile whole when application program has new version publication
End obtains the application program of new edition automatically and download is stored in the scene etc. under corresponding destination path.Currently, mobile terminal is all
It is that instruction searches for and stores the data needed for user according to the user's choice, it is a large amount of to waste user during searching for data
Time, when there is the data publication of new version, the mobile terminal only reminds user that can upgrade, but still needs user
Manual operation could complete download update, have very strong dependence.The embodiment of the present invention can search for and store number automatically
According to having provided better experience to the user while saving a large amount of time for user, and improved the intelligent of mobile terminal.
Date storage method provided in an embodiment of the present invention, wherein the data can include but is not limited to application program,
A Sexual Themes, individual character wallpaper, song, video, picture etc. can be stored in the data of mobile terminal.Shifting in the embodiment of the present invention
Dynamic terminal can include but is not limited to the electronic equipments such as laptop, mobile phone, PAD (tablet computer), intelligent wearable device.
It describes in detail to date storage method provided in an embodiment of the present invention below in conjunction with attached drawing 1- attached drawings 3.
Fig. 1 is referred to, is a kind of flow diagram of date storage method provided in an embodiment of the present invention, this method can wrap
Include step S101- steps S103.
S101 obtains preset data storage rule.
In embodiments of the present invention, the preset data storage rule is the data characteristics element inputted according to user
It generates, wherein the data characteristics element includes at least one of attention rate, download, version value, grading system.With
The preset data storage rule can be arranged when using mobile terminal for the first time in family, in each booting or can also need
Data storage rule is set when using data storage function.
Specifically, the preset data storage rule of acquisition for mobile terminal, the preset data storage rule is not only
Only it can also be the data storage rule of system default according to the data characteristics Element generation that user is inputted.For example, with
The data characteristics element that family is inputted be attention rate ranking first three.The preset data storage rule both can reside in some
It in application program, can also be integrated in the system of the mobile terminal, for example, the mobile terminal includes entitled software business man
The application program in shop, the preset data storage rule is for scanning for the application program included by the software store
Storage.
S102 is scanned for according to the preset data storage rule in source data.
Specifically, the mobile terminal is after getting the preset data storage rule, it can be according to described pre-
If data storage rule in data characteristics element scanned in source data, wherein the source data is according to specific
Depending on situation, when the preset data storage rule is directed to the software store application program, the source data is institute
State all application programs in software store;When the preset data storage rule is directed to a Sexual Themes of some social software
When, the source data is all a Sexual Themes that the social software is provided;When the preset data storage rule needle
When to some music player software, the source data is all music that the music player software is provided.
When the mobile terminal searches and the data spy in the preset data storage rule in the source data
When the data that sign element matches, the data to match are determined as target data, for example, the preset data storage
Data characteristics element in rule is the download ranking application program of first three, is searched in the application program of the software store
To the download ranking application program of first three, the download ranking application program of first three is determined as the number of targets
According to.
S103, when searching the target data to match with the data storage rule in the source data, by institute
Target data is stated to store to corresponding destination path.
Specifically, when the mobile terminal searches the mesh to match with the data storage rule in the source data
When marking data, the data type of the target data is obtained, and the target data is stored to the number with the target data
According to the corresponding destination path of type.In general, the acquisition for mobile terminal to target data all carry the target data
Attribute information, the attribute information includes the information such as the network address of data type, data volume, data, the general data
Type can be by identifying that the suffix name of data name obtains, for example, the suffix of song is entitled " mp3 ", the suffix of video is entitled
" flv ", " mov " etc..When the target data includes three song, three song is stored to opposite with music automatically
The destination path answered equally automatically stores song to mesh corresponding with music when target data is also song next time
Path is marked, thus facilitates user to search the target data under stored destination path according to data type, avoids using
The store path manually selected before is forgotten at family after a period of time has passed, realizes the personalized storage of mobile terminal.
As the memory of the mobile terminal is increasing, the data that can be accommodated are also more and more, described mobile whole
End can store mass data under the premise of, according to the data type of the target data by the target data store to institute
State the corresponding destination path of data type of target data.If the limited memory of the mobile terminal, the target is being stored
It need to be stored according to the data volume of the target data when data.The mobile terminal judges the data volume of the target data
Whether preset data-quantity threshold is more than, the preset data-quantity threshold can be memory of the system according to the mobile terminal
The threshold value for measuring acquiescence, can also be the threshold value of user setting.When the result judged is is, it is corresponding to obtain the target data
Network address, and the corresponding network address of the target data is stored to corresponding with the data type of the target data
Destination path;When the result judged is no, the target data is stored to opposite with the data type of the target data
The destination path answered.A large amount of memory thus can be occupied to avoid the target data being automatically stored.
In embodiments of the present invention, by obtaining preset data storage rule and according to preset storage rule in source number
It is scanned in, when searching the target data to match with the data storage rule in source data, by the mesh
Mark data are stored to corresponding destination path, so that mobile terminal is automatically obtained and are stored data, improve mobile terminal
It is intelligent, and save user search for data time, while facilitate user according to destination path search, management stored
Data.
Fig. 2 is referred to, for the flow diagram of another date storage method provided in an embodiment of the present invention, this method can
Including step S201- steps S206.
S201, according to the data characteristics Element generation data storage rule inputted.
Wherein, the data characteristics element includes at least one of attention rate, download, version value, grading system.With
The preset data storage rule can be arranged when using mobile terminal for the first time in family, in each booting or can also need
Data storage rule is set when using data storage function.The data characteristics Element generation that mobile terminal is inputted according to user
Data storage rule, for example, the data characteristics element that user is inputted is attention rate highest and version value is newest.
S202 obtains preset data storage rule.
Specifically, the preset data storage rule of acquisition for mobile terminal, the preset data storage rule is not only
Only it can also be the data storage rule of system default according to the data characteristics Element generation that user is inputted.For example, with
The data characteristics element that family is inputted be attention rate ranking first three.The preset data storage rule both can reside in some
It in application program, can also be integrated in the system of the mobile terminal, for example, the mobile terminal includes entitled software business man
The application program in shop, the preset data storage rule is for scanning for the application program included by the software store
Storage.
S203 is scanned for according to the data characteristics element in the preset data storage rule in source data.
Specifically, the mobile terminal after getting the preset data storage rule, is just preset according to described
Data storage rule in data characteristics element scanned in source data, wherein the source data is according to specific feelings
Depending on condition, when the preset data storage rule is directed to the software store application program, the source data is described
All application programs in software store;When the preset data storage rule is directed to a Sexual Themes of some social software
When, the source data is all a Sexual Themes that the social software is provided;When the preset data storage rule needle
When to some music player software, the source data is all music that the music player software is provided.
S204, when being searched in the source data and the data characteristics element phase in the preset data storage rule
When matched data, the data to match are determined as target data.
Specifically, when the mobile terminal searched in the source data in the preset data storage rule
When the data that data characteristics element matches, the data to match are determined as target data, for example, the preset number
It is the download ranking application program of first three according to the data characteristics element in storage rule, in the application program of the software store
In search the download ranking application program of first three, the download ranking application program of first three is determined as described
Target data.
S205 is obtained when searching the target data to match with the data storage rule in the source data
The data type of the target data.
Specifically, when the mobile terminal searches the mesh to match with the data storage rule in the source data
When marking data, the data type of the target data and the target data is obtained.In general, the mesh that the acquisition for mobile terminal arrives
Mark data all carry the attribute information of the target data, and the attribute information includes the net of data type, data volume, data
The information such as network address, the general data type can be by identifying that the suffix name of data name obtains, for example, the suffix of song
Entitled " mp3 ", the suffix entitled " flv " of video, " mov " etc..
S206 stores the target data to destination path corresponding with the data type of the target data.
Specifically, the mobile terminal deposits the target data according to the data type of the target data got
The corresponding destination path of data type of target data described in Chu Zhiyu.For example, when the target data includes three songs
When, three song is stored to destination path corresponding with music automatically, when target data is also song next time,
Equally song is stored to destination path corresponding with music automatically, user is thus facilitated to be stored according to data type
Destination path under search the target data, the storage road for avoiding user from forgetting to manually select before after a period of time has passed
Diameter realizes the personalized storage of mobile terminal.
As the memory of the mobile terminal is increasing, the data that can be accommodated are also more and more, described mobile whole
End can store mass data under the premise of, according to the data type of the target data by the target data store to institute
State the corresponding destination path of data type of target data.
In embodiments of the present invention, by obtaining preset data storage rule and according to preset storage rule in source number
It is scanned in, when searching the target data to match with the data storage rule in source data, by the mesh
Mark data are stored to corresponding destination path, realize that mobile terminal according to preset data storage rule storing data automatically, makes
Mobile terminal can be obtained automatically and store data, improve the intelligent of mobile terminal, and saved user and searched for data
Time, while facilitate user according to destination path search, manage stored data.
Fig. 3 is referred to, is the flow diagram of another date storage method provided in an embodiment of the present invention, this method can
Including step S301- steps S308.
S301, according to the data characteristics Element generation data storage rule inputted.
S302 obtains preset data storage rule.
S303 is scanned for according to the data characteristics element in the preset data storage rule in source data.
S304, when being searched in the source data and the data characteristics element phase in the preset data storage rule
When matched data, the data to match are determined as target data.
S305 is obtained when searching the target data to match with the data storage rule in the source data
The data type of the target data.
The specific implementation of the step S301- steps S305 of the embodiment of the present invention can be found in the step of embodiment illustrated in fig. 2
Rapid S201- step S205, details are not described herein.
S306, obtains the data volume of the target data, and it is default to judge whether the data volume of the target data is more than
Data-quantity threshold.
In the case of the limited memory of the mobile terminal, directly storing the target data may occupy largely
Memory need to obtain described to influence the operational efficiency of the mobile terminal, therefore when being stored to the target data
The data volume of target data simultaneously judges whether the data volume of the target data is more than preset data-quantity threshold.Wherein, described
Preset data-quantity threshold can be the threshold value that system is given tacit consent to according to the amount of ram of the mobile terminal, can also be user setting
Threshold value, such as system default threshold value be 30M.
S307 obtains the corresponding network address of the target data when the result judged is is, and by the number of targets
It is stored to destination path corresponding with the data type of the target data according to corresponding network address.
Specifically, when the result judged is is, it is to be appreciated that the data volume of the target data is more than described pre-
If data-quantity threshold, directly storage may occupy certain memory headroom, therefore the mobile terminal is from the source data
Middle to obtain the corresponding network address of the target data, network address compares target data itself, the memory headroom of occupancy
It is smaller, the corresponding network address of the target data is stored to target corresponding with the data type of target data road
Diameter.For example, the target data is some highest application program of download, the data volume of the application program is 50M, and described
Preset data-quantity threshold is 30M, and the network address of the acquisition for mobile terminal application program simultaneously deposits the network address
The corresponding destination path of target data described in Chu Zhiyu.
S308 stores the target data to the data type with the target data when the result judged is no
Corresponding destination path.
Specifically, when the result judged is no, it is to be appreciated that the data volume of the target data is less than described pre-
If data-quantity threshold, the mobile terminal can directly store the target data to the data class with the target data
The corresponding destination path of type.
By judging whether the data volume of the target data is more than the preset data-quantity threshold, can avoid automatic
The target data of storage occupies a large amount of memory headroom, especially more in the number of the target data.
In embodiments of the present invention, by obtaining preset data storage rule and according to preset storage rule in source number
It is scanned in, when searching the target data to match with the data storage rule in source data, by the mesh
Mark data are stored to corresponding destination path, so that mobile terminal is automatically obtained and are stored data, improve mobile terminal
It is intelligent, and save user search for data time, while facilitate user according to destination path search, management stored
Data.The embodiment of the present invention also according to target data data volume whether more than preset data-quantity threshold come determine storage mesh
The network address for marking data itself or target data, can save memory headroom.
It describes in detail to mobile terminal provided in an embodiment of the present invention below in conjunction with attached drawing 4- attached drawings 7.It needs
It is bright, the attached terminals shown in Fig. 7 of attached drawing 4-, the method for executing Fig. 1-embodiment illustrated in fig. 3 of the present invention, for the ease of saying
It is bright, it illustrates only and is not disclosed with the relevant part of the embodiment of the present invention, particular technique details, please refer to Fig. 1-Fig. 3 of the present invention
Shown in embodiment.
Fig. 4 is referred to, is a kind of structural schematic diagram of mobile terminal provided by the invention;The terminal 10 may include:It obtains
Unit 101, search unit 102 and storage unit 103.
Acquiring unit 101, for obtaining preset data storage rule.
In the specific implementation, the preset data storage rule is the data characteristics Element generation inputted according to user
, wherein the data characteristics element includes at least one of attention rate, download, version value, grading system.User can
It, can also be in each booting or needs the preset data storage rule is arranged when using mobile terminal 10 for the first time
Use setting data storage rule when data storage function.The acquiring unit 101 obtains preset data storage rule, described
Preset data storage rule not only can also be system default according to the data characteristics Element generation that user is inputted
Data storage rule.For example, the data characteristics element that is inputted of user be attention rate ranking first three.The preset data are deposited
Storage rule both can reside in some application program, can also be integrated in the system of the mobile terminal, for example, the shifting
Dynamic terminal 10 includes the application program of entitled software store, and the preset data storage rule is used for the software store
Included application program scans for storing.
Search unit 102, for being scanned in source data according to the preset data storage rule.
In the specific implementation, the acquiring unit 101 is after getting the preset data storage rule, described search
Unit 102 can be scanned for according to the data characteristics element in the preset data storage rule in source data, wherein
The source data according to specific circumstances depending on, when the preset data storage rule be directed to the software store application program
When, the source data is all application programs in the software store;When the preset data storage rule is directed to certain
When a Sexual Themes of a social software, the source data is all a Sexual Themes that the social software is provided;When described
When preset data storage rule is directed to some music player software, the source data is that the music player software is provided
All music.
When described search unit 102 searches and the data in the preset data storage rule in the source data
When the data that characteristic element matches, the data to match are determined as target data by the mobile terminal 10, for example, institute
It is the download ranking application program of first three to state the data characteristics element in preset data storage rule, in the software store
Application program in search the download ranking application program of first three, by the download ranking application program of first three
It is determined as the target data.
Storage unit 103 searches the target to match with the data storage rule for working as in the source data
When data, the target data is stored to corresponding destination path.
In the specific implementation, when described search unit 102 searches and the data storage rule phase in the source data
When matched target data, the storage unit 103 obtains the data type of the target data, and the target data is deposited
The corresponding destination path of data type of target data described in Chu Zhiyu.In general, the target that the mobile terminal 10 is got
Data all carry the attribute information of the target data, and the attribute information includes the network of data type, data volume, data
The information such as address, the general data type can be by identifying that the suffix name of data name obtains, for example, the suffix name of song
For " mp3 ", the suffix entitled " flv " of video, " mov " etc..When the target data includes three song, automatically by described three
Song is stored to destination path corresponding with music, when target data is also song next time, equally automatically by song
It stores to destination path corresponding with music, user is thus facilitated to be looked under stored destination path according to data type
The target data is looked for, user is avoided to forget the store path manually selected before after a period of time has passed, is realized mobile whole
The personalized storage at end.
In embodiments of the present invention, by obtaining preset data storage rule and according to preset storage rule in source number
It is scanned in, when searching the target data to match with the data storage rule in source data, by the mesh
Mark data are stored to corresponding destination path, so that mobile terminal is automatically obtained and are stored data, improve mobile terminal
It is intelligent, and save user search for data time, while facilitate user according to destination path search, management stored
Data.
Fig. 5 is referred to, for the structural schematic diagram of another mobile terminal provided by the invention;The terminal 20 may include:It is raw
At unit 201, acquiring unit 202, search unit 203 and storage unit 204.
Generation unit 201, for according to the data characteristics Element generation data storage rule inputted.
In the specific implementation, the generation unit 201 stores rule according to the data characteristics Element generation data that user is inputted
Then, wherein the data characteristics element includes at least one of attention rate, download, version value, grading system.User can
The preset data storage rule is arranged when using mobile terminal for the first time, in each booting or can also need to make
With setting data storage rule when data storage function.For example, the data characteristics element that is inputted of user be attention rate highest and
Version value is newest.
Acquiring unit 202, for obtaining preset data storage rule.
In the specific implementation, the acquiring unit 202 obtains preset data storage rule, the preset data storage rule
Then not only it can also be the data storage rule of system default according to the data characteristics Element generation that user is inputted.
For example, the data characteristics element that is inputted of user be attention rate ranking first three.The preset data storage rule can both be deposited
It is in some application program, can also be integrated in the system of the mobile terminal, for example, the mobile terminal 20 includes name
The referred to as application program of software store, the preset data storage rule are used for the application journey included by the software store
Sequence scans for storing.
Search unit 203, for being scanned in source data according to the preset data storage rule.
In the specific implementation, described search unit 203 is deposited according to the preset data that the acquiring unit 202 is got
Storage rule is scanned in source data, wherein the source data according to specific circumstances depending on, when the preset data are deposited
When storage rule is directed to the software store application program, the source data is all application programs in the software store;
When the preset data storage rule is directed to a Sexual Themes of some social software, the source data is that the social activity is soft
All a Sexual Themes that part is provided;When the preset data storage rule is directed to some music player software, the source
Data are all music that the music player software is provided.
It is the structural schematic diagram of search unit provided in an embodiment of the present invention specifically, referring to Fig. 6, as shown in fig. 6,
Shown search unit 203 may include data search unit 2301 and data determination unit 2302.
Data search unit 2301 is used for according to the data characteristics element in the preset data storage rule in source number
It is scanned in.
In the specific implementation, the data search unit 2301 is according to the data characteristics in the preset data storage rule
Element scans in source data.
Data determination unit 2302, for when search in the source data in the preset data storage rule
Data characteristics element match data when, the data to match are determined as target data.
In the specific implementation, when the data search unit 2301 is searching and the preset number in the source data
When the data to match according to the data characteristics element in storage rule, the data determination unit 2302 is by the number to match
According to being determined as target data.For example, data characteristics element in the preset data storage rule be download ranking first three
Application program, the download ranking application program of first three is searched in the application program of the software store, by institute
It states the download ranking application program of first three and is determined as the target data.
Storage unit 204 searches the target to match with the data storage rule for working as in the source data
When data, the target data is stored to corresponding destination path.
In the specific implementation, when described search unit 203 searches and the data storage rule phase in the source data
When matched target data, the storage unit 204 stores the target data to corresponding destination path.
It is the structural schematic diagram of storage unit provided in an embodiment of the present invention specifically, referring to Fig. 7, as shown in fig. 7,
Shown storage unit 203 may include data capture unit 2401 and Destination Storage Unit 2402, wherein the Destination Storage Unit
2402 include data volume judging unit 2412, the first storage unit 2422 and the second storage unit 2432.
Data capture unit 2401, for being matched with the data storage rule when searching in the source data
When target data, the data type of the target data is obtained.
In the specific implementation, when described search unit 203 searches and the data storage rule phase in the source data
When matched target data, the data capture unit 2401 obtains the data class of the target data and the target data
Type.In general, the target data that the data capture unit 2401 is got all carries the attribute information of the target data, institute
It includes the information such as the network address of data type, data volume, data to state attribute information, and the general data type can pass through knowledge
The suffix name of other data name obtains, for example, the suffix of song is entitled " mp3 ", the suffix entitled " flv " of video, " mov " etc..
Destination Storage Unit 2402, for storing the target data to opposite with the data type of the target data
The destination path answered.
In the specific implementation, the Destination Storage Unit 2402 stores the target data to the number with the target data
According to the corresponding destination path of type.In the case of the mobile terminal limited memory, if the number ratio of the target data
The data volume of the more and described target data is bigger, and it is empty that the target data being automatically stored will occupy a large amount of storage
Between, to influence the performance of the mobile terminal.Therefore, in the embodiment of the present invention in the specific implementation, the target storage is single
Member 2402 includes data volume judging unit 2412, the first storage unit 2422 and the second storage unit 2432.
Data volume judging unit 2412, the data volume for obtaining the target data, and judge the target data
Whether data volume is more than preset data-quantity threshold.
In the specific implementation, the data volume judging unit 2412 obtains the data volume of the target data, and described in judgement
Whether the data volume of target data is more than preset data-quantity threshold, wherein the preset data-quantity threshold can be system
Can also be the threshold value of user setting, such as the threshold value of system default according to the threshold value that the amount of ram of the mobile terminal is given tacit consent to
For 30M.
First storage unit 2422, for when the result judged is is, obtaining the corresponding network of the target data
Location, and the corresponding network address of the target data is stored to target corresponding with the data type of target data road
Diameter.
In the specific implementation, when the result that the data volume judging unit 2412 judges is is, it is to be appreciated that described
The data volume of target data is more than the preset data-quantity threshold, and directly storage may occupy certain memory headroom, because
This described mobile terminal 20 obtains the corresponding network address of the target data from the source data, and network address compares target
Itself, the memory headroom of occupancy is smaller for data, and first storage unit 2422 is by the corresponding network of the target data
Address is stored to destination path corresponding with the data type of the target data.For example, the target data is download
The data volume of some highest application program, the application program is 50M, and the preset data-quantity threshold is 30M, the shifting
Dynamic terminal obtains the network address of the application program and stores the network address to target corresponding with the target data
Path.
Second storage unit 2432, for when the result judged is no, by the target data store to the mesh
Mark the corresponding destination path of data type of data.
In the specific implementation, when the result that the data volume judging unit 2412 judges is no, it is to be appreciated that described
The data volume of target data is less than the preset data-quantity threshold, and second storage unit 2432 can be directly by the mesh
Mark data are stored to destination path corresponding with the data type of the target data.
By judging whether the data volume of the target data is more than the preset data-quantity threshold, can avoid automatic
The target data of storage occupies a large amount of memory headroom, especially more in the number of the target data.
In embodiments of the present invention, by obtaining preset data storage rule and according to preset storage rule in source number
It is scanned in, when searching the target data to match with the data storage rule in source data, by the mesh
Mark data are stored to corresponding destination path, so that mobile terminal is automatically obtained and are stored data, improve mobile terminal
It is intelligent, and save user search for data time, while facilitate user according to destination path search, management stored
Data.The embodiment of the present invention also according to target data data volume whether more than preset data-quantity threshold come determine storage mesh
The network address for marking data itself or target data, can save memory headroom.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the program can be stored in a computer read/write memory medium
In, the program is when being executed, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, RAM) etc..
The above disclosure is only the preferred embodiments of the present invention, cannot limit the right model of the present invention with this certainly
It encloses, therefore equivalent changes made in accordance with the claims of the present invention, is still within the scope of the present invention.
Claims (4)
1. a kind of date storage method, which is characterized in that the method is applied to download scene, including:
Mobile terminal includes previously according to the data characteristics Element generation data storage rule inputted, the data characteristics element
At least one of attention rate, download, version value, grading system;
Preset data storage rule is obtained, the preset data storage rule is the data storage rule generated;
Mobile terminal is scanned for according to the preset data storage rule in source data, and the source data is described default
Data storage rule music player software provide all music;
When searching the target data to match with the preset data storage rule in the source data, described in acquisition
The data type of target data;
The data volume of the target data is obtained, and judges whether the data volume of the target data is more than preset data volume threshold
Value, the preset data-quantity threshold are the threshold value that system is arranged according to the amount of ram of mobile terminal, or the threshold for user setting
Value;
When the result judged is is, the corresponding network address of the target data is obtained, and the target data is corresponding
Network address is stored to the destination path of the mobile terminal corresponding with the data type of the target data;
When the result judged is no, the target data is stored to institute corresponding with the data type of the target data
The destination path of mobile terminal is stated, so that the mobile terminal automatically obtains and stores the target data.
2. according to the method described in claim 1, it is characterized in that, it is described according to the preset data storage rule in source number
It is scanned in, including:
It is scanned in source data according to the data characteristics element in the preset data storage rule;
When searching the number to match with the data characteristics element in the preset data storage rule in the source data
According to when, the data to match are determined as target data.
3. a kind of mobile terminal, which is characterized in that the mobile terminal is applied to download scene, including:
Generation unit, for previously according to the data characteristics Element generation data storage rule inputted, the data characteristics member
Element includes at least one of attention rate, download, version value, grading system;
Acquiring unit, for obtaining preset data storage rule, the preset data storage rule is the number generated
According to storage rule;
Search unit, for being scanned in source data according to the preset data storage rule, the source data is institute
State all music that the music player software of preset data storage rule provides;
Data capture unit searches the mesh to match with the preset data storage rule for working as in the source data
When marking data, the data type of the target data is obtained;
Data volume judging unit, obtains the data volume of the target data, and judges whether the data volume of the target data is big
In preset data-quantity threshold, the preset data-quantity threshold is the threshold value that system is arranged according to the amount of ram of mobile terminal,
Or the threshold value for user setting;
First storage unit, for when the result judged is is, obtaining the corresponding network address of the target data, and by institute
The corresponding network address of target data is stated to store to the mobile terminal corresponding with the data type of the target data
Destination path;
Second storage unit, for when the result judged is no, by the target data store to the target data
The destination path of the corresponding mobile terminal of data type, so that the mobile terminal automatically obtains and stores institute
State target data.
4. terminal according to claim 3, which is characterized in that described search unit includes:
Data search unit, for being carried out in source data according to the data characteristics element in the preset data storage rule
Search;
Data determination unit, for special with the data in the preset data storage rule when being searched in the source data
When the data that sign element matches, the data to match are determined as target data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510080588.0A CN104699765B (en) | 2015-02-12 | 2015-02-12 | A kind of date storage method and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510080588.0A CN104699765B (en) | 2015-02-12 | 2015-02-12 | A kind of date storage method and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104699765A CN104699765A (en) | 2015-06-10 |
CN104699765B true CN104699765B (en) | 2018-09-04 |
Family
ID=53346886
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510080588.0A Expired - Fee Related CN104699765B (en) | 2015-02-12 | 2015-02-12 | A kind of date storage method and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104699765B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108132846A (en) * | 2017-12-19 | 2018-06-08 | 广州阿里巴巴文学信息技术有限公司 | The method, apparatus and terminal device of data sharing between a kind of application program |
CN109408406B (en) * | 2018-10-18 | 2023-02-14 | 深圳三地一芯电子有限责任公司 | Data storage method and storage medium of flash memory |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102799634A (en) * | 2012-06-26 | 2012-11-28 | 中国农业银行股份有限公司 | Data storage method and device |
CN103838683A (en) * | 2012-11-22 | 2014-06-04 | 华为终端有限公司 | Method and device for data transmission |
CN104268162A (en) * | 2014-09-05 | 2015-01-07 | 广州三星通信技术研究有限公司 | Data storage method and device |
-
2015
- 2015-02-12 CN CN201510080588.0A patent/CN104699765B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102799634A (en) * | 2012-06-26 | 2012-11-28 | 中国农业银行股份有限公司 | Data storage method and device |
CN103838683A (en) * | 2012-11-22 | 2014-06-04 | 华为终端有限公司 | Method and device for data transmission |
CN104268162A (en) * | 2014-09-05 | 2015-01-07 | 广州三星通信技术研究有限公司 | Data storage method and device |
Also Published As
Publication number | Publication date |
---|---|
CN104699765A (en) | 2015-06-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6224039B2 (en) | Apparatus and method for extending application services | |
CN104461504B (en) | A kind of management method of end application | |
CN106031127B (en) | Method and apparatus for management of applications | |
US9141627B2 (en) | Providing a user access to data files distributed in a plurality of different types of user devices | |
US20130311946A1 (en) | Apparatus and method for user-centered icon layout on main screen | |
US20130219319A1 (en) | Apparatus and method for grouping application program folders in electronic device | |
CN109271078A (en) | Content share method, terminal device and storage medium | |
US20110289437A1 (en) | Methods and systems for shareable virtual devices | |
CN104915268A (en) | Desktop layout storage and recovery method and device thereof, terminal equipment and system | |
CN104331465B (en) | The searching method and device of mobile terminal | |
CN103888837A (en) | Video information pushing method and device | |
WO2011014706A1 (en) | Method and apparatus for customizing a user interface menu | |
CN102902531A (en) | Customization and generation method and device of Android application program | |
CN105867714A (en) | Application downloading method, apparatus and system | |
CN104461505B (en) | A kind of terminal | |
CN106155789A (en) | A kind of application freezing method and mobile terminal | |
CN108692735A (en) | Processing method, device, storage medium and the electronic equipment of navigation routine | |
WO2019157275A1 (en) | Techniques for selecting additional links | |
CN106371706A (en) | Method and device for site selection of application shortcuts | |
CN104219356A (en) | Method and device for displaying and searching contact man information and mobile terminal | |
CN104699765B (en) | A kind of date storage method and mobile terminal | |
CN104572981B (en) | A kind of Webpage method for caching and processing and mobile terminal device | |
CN103678393A (en) | Information obtaining method and device | |
US20050273839A1 (en) | System and method for automated context-based data presentation | |
CN112905073B (en) | Method and device for realizing extremely simple mode of application program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CP01 | Change in the name or title of a patent holder | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20180904 |
|
CF01 | Termination of patent right due to non-payment of annual fee |