CN106020730A - Clearing method and device for multi-media data of mobile device - Google Patents
Clearing method and device for multi-media data of mobile device Download PDFInfo
- Publication number
- CN106020730A CN106020730A CN201610357118.9A CN201610357118A CN106020730A CN 106020730 A CN106020730 A CN 106020730A CN 201610357118 A CN201610357118 A CN 201610357118A CN 106020730 A CN106020730 A CN 106020730A
- Authority
- CN
- China
- Prior art keywords
- medium data
- life cycle
- life
- described multi
- data
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/062—Securing storage systems
- G06F3/0623—Securing storage systems in relation to content
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0646—Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
- G06F3/0652—Erasing, e.g. deleting, data cleaning, moving of data to a wastebasket
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The embodiment of the invention provides a clearing method and device for multi-media data of a mobile device. The method comprises following steps: setting lifecycles for multi-media data when multi-media data is generated in the mobile device; effectively verifying multi-media data according to lifecycles; and deleting multi-media data when multi-media data is not effective. The embodiment has following beneficial effects: based on lifecycles, multi-media data is automatically cleared in order to avoid manual screening and deletion; especially in the great number of multi-media data, convenience of clearing operation is greatly improved and consumption of user's time is reduced.
Description
Technical field
The present invention relates to the technical field of mobile device, particularly relate to the multimedia number of a kind of mobile device
According to method for cleaning and the cleaning plant of multi-medium data of a kind of mobile device.
Background technology
Along with the development of communication science and technology, the such as mobile device such as mobile phone, wrist-watch the work of people, study,
The utilization rate of each side such as daily exchange is more and more higher.
These mobile devices are the most all configured with the hardware such as photographic head, mike so that take pictures, record a video,
Recording becomes the common function of mobile device.
Obtain owing to taking pictures, record a video and recording is data, and reusability is high, and cost is the lowest, therefore,
User can carry out whenever and wherever possible taking pictures, records a video, record.
Therefore, after long term accumulation, substantial amounts of multi-medium data can be stored, not only bad for user
Management, and occupy substantial amounts of storage resource, it is therefore desirable to clear up.
At present, it is usually the volume size detecting multi-medium data, when exceeding certain volume (such as 10M)
Time, prompting user clears up.
But, this manner of cleaning up screening conditions are single, it is impossible to meet the demand of user, user's great majority
In the case of can only rider select need cleaning multi-medium data, then delete, the most matchmakers
In the case of volume data quantity is various, operate the most loaded down with trivial details, expend user's substantial amounts of time.
Summary of the invention
In view of the above problems, the problem loaded down with trivial details in order to solve the cleaning operation of above-mentioned multi-medium data, this
The method for cleaning that bright embodiment proposes the multi-medium data of a kind of mobile device is a kind of mobile with corresponding
The cleaning plant of the multi-medium data of equipment.
In order to solve the problems referred to above, the embodiment of the invention discloses the multi-medium data of a kind of mobile device
Method for cleaning, including:
When generating multi-medium data in a mobile device, described multi-medium data is configured life cycle;
According to described life cycle, described multi-medium data is carried out validity check;
When described multi-medium data lost efficacy, delete described multi-medium data.
Preferably, during the described multi-medium data of generation in a mobile device, described multi-medium data is configured
The step of life cycle includes:
Receive the request generating multi-medium data based on life cycle in a mobile device;
According to described request, life parameter is set in hardware abstraction layer;
When the multimedia hardware calling mobile device generates multi-medium data, from described hardware abstraction layer
Inquiry life parameter;
According to described life parameter, described multi-medium data is configured life cycle.
Preferably, the described step to described multi-medium data configuration life cycle includes:
Life cycle is write in the first field of described multi-medium data;
Life cycle mark is write in the second field of described multi-medium data.
Preferably, the described step that according to described life cycle, described multi-medium data is carried out validity check
Suddenly include:
When listening to the load request of multi-medium data, it is judged that whether described multi-medium data has life
Cycle;
When described multi-medium data has life cycle, it is judged that whether described multi-medium data is in described
In life cycle;
If, it is determined that described multi-medium data is effective;
If not, it is determined that described multi-medium data lost efficacy.
Preferably, described judge whether described multi-medium data has the step of life cycle and include:
Judge whether the second field of described multi-medium data has life cycle mark;
If, it is determined that described multi-medium data has life cycle;
If not, it is determined that described multi-medium data does not have life cycle.
Preferably, the described step bag judging whether described multi-medium data is in described life cycle
Include:
Life cycle is read from the first field of described multi-medium data;
Inquire about the generation time of described multi-medium data;
Calculate current time and the time difference between the described generation time;
When described time difference is less than described life cycle, confirm that described multi-medium data is in described life
In cycle;
When described time difference is more than or equal to described life cycle, confirm that described multi-medium data is in institute
State outside life cycle.
Preferably, described judge the step whether described multi-medium data has life cycle after, institute
Method of stating also includes:
When described multi-medium data does not has life cycle, load described multi-medium data.
Preferably, also include:
When described multi-medium data is effective, load described multi-medium data.
The embodiment of the invention also discloses the cleaning plant of the multi-medium data of a kind of mobile device, including:
Life cycle configuration module, during for generating multi-medium data in a mobile device, to described many matchmakers
Volume data configuration life cycle;
Validity check module, for carrying out effectiveness according to described life cycle to described multi-medium data
Verification;
Multi-medium data removing module, for when described multi-medium data lost efficacy, deletes described multimedia
Data.
Preferably, described life cycle configuration module includes:
Request receives submodule, generates multi-medium data for receiving in a mobile device based on life cycle
Request;
Life parameter arranges submodule, for arranging life in hardware abstraction layer according to described request
Cycle parameter;
Life parameter inquiry submodule, for generating many matchmakers at the multimedia hardware calling mobile device
During volume data, from described hardware abstraction layer, inquire about life parameter;
Multi-medium data configuration submodule, is used for according to described life parameter described multi-medium data
Configuration life cycle.
Preferably, described life cycle configuration module includes:
Life cycle write submodule, for writing Life Cycle in the first field of described multi-medium data
Phase;
Life cycle mark write submodule, raw for write in the second field of described multi-medium data
Life period indication.
Preferably, described validity check module includes:
First judges submodule, for when listening to the load request of multi-medium data, it is judged that described many
Whether media data has life cycle;
Second judges submodule, for when described multi-medium data has life cycle, it is judged that described many
Whether media data is in described life cycle;The most then call and effectively determine submodule, if it is not,
Then call and invalid determine submodule;
Effectively determine submodule, be used for determining that described multi-medium data is effective;
Invalid determine submodule, be used for determining that described multi-medium data lost efficacy.
Preferably, described first judges that submodule includes:
Whether life cycle mark judging unit, have in the second field judging described multi-medium data
Life cycle is had to identify;The most then call and have first and determine unit, determine if it is not, then call second
Unit;
First determines unit, is used for determining that described multi-medium data has life cycle;
Second determines unit, is used for determining that described multi-medium data does not have life cycle.
Preferably, described second judges that submodule includes:
Life cycle reads unit, for reading Life Cycle from the first field of described multi-medium data
Phase;
Generate time inquiring unit, for inquiring about the generation time of described multi-medium data;
Time difference calculating unit, for calculating the time difference between current time and described generation time;
3rd determines unit, for when described time difference is less than described life cycle, confirming described many matchmakers
Volume data is in described life cycle;
4th determines unit, for when described time difference is more than or equal to described life cycle, confirming institute
State multi-medium data to be in outside described life cycle.
Preferably, also include:
First multi-medium data load-on module, is used for when described multi-medium data does not has life cycle,
Load described multi-medium data.
Preferably, also include:
Second multi-medium data load-on module, for when described multi-medium data is effective, loads described many
Media data.
The embodiment of the present invention includes advantages below:
When the embodiment of the present invention generates multi-medium data in a mobile device, multi-medium data is configured life
In the cycle, under certain conditions, according to life cycle, multi-medium data is carried out validity check, if school
Test this multi-medium data to lose efficacy, then can delete this multi-medium data, it is achieved that based on life cycle to many
The automatic cleaning of media data, it is to avoid user manually carries out the operation screened, delete, the most matchmakers
In the case of volume data quantity is various, substantially increases the simplicity of cleaning operation, decrease user time
Consuming.
Accompanying drawing explanation
Fig. 1 is the step of the method for cleaning embodiment 1 of the multi-medium data of a kind of mobile device of the present invention
Flow chart;
Fig. 2 is the Organization Chart of a kind of android system of the embodiment of the present invention;
Fig. 3 is the step of the method for cleaning embodiment 2 of the multi-medium data of a kind of mobile device of the present invention
Flow chart;
Fig. 4 is the structural frames of the cleaning plant embodiment of the multi-medium data of a kind of mobile device of the present invention
Figure.
Detailed description of the invention
Understandable, below in conjunction with the accompanying drawings for enabling the above-mentioned purpose of the present invention, feature and advantage to become apparent from
The present invention is further detailed explanation with detailed description of the invention.
With reference to Fig. 1, it is shown that the method for cleaning of the multi-medium data of a kind of mobile device of the present invention is implemented
The flow chart of steps of example 1, specifically may include steps of:
Step 101, when generating multi-medium data in a mobile device, raw to the configuration of described multi-medium data
The life cycle;
In implementing, the embodiment of the present invention can be applied in a mobile device, such as, mobile phone, flat
Plate computer, personal digital assistant, wearable device (such as glasses, wrist-watch etc.) etc..
These mobile devices are commonly configured with one or more multimedia hardwares, such as, photographic head camera,
Mike MIC, to generate the multi-medium datas such as view data, video data, voice data.
The operating system of these mobile communication terminals can include Android (Android), IOS, Windows
Phone, Windows etc..
For making those skilled in the art be more fully understood that the embodiment of the present invention, in this manual, will
Android illustrates as a kind of example of operating system.
In implementing, if generating multi-medium data in a mobile device, then can be automatically to multimedia
Data configuration life cycle.
So-called life cycle, refers to that multi-medium data, from the time being generated between deleting, can be system
Acquiescence, it is also possible to being user setup, this is not any limitation as by the embodiment of the present invention.
In one embodiment of the invention, step 101 can include following sub-step:
Sub-step S11, receives the request generating multi-medium data based on life cycle in a mobile device;
In implementing, in the interface of multimedia application, it is provided that generate many matchmakers with life cycle
The control of volume data, if user clicks on this control, volume can trigger and generate multimedia number based on life cycle
According to request.
Sub-step S12, arranges life parameter according to described request in hardware abstraction layer;
As in figure 2 it is shown, in android system, run an application (as photographic head is applied), one
As need Java applications (application layer), Framework (application framework layer), Hardware (hard
Part level of abstraction), mutual between Linux Kernel (Linux inner core).
Trigger launcher searches application (as photographic head is applied) at Java applications (application layer)
Resource, obtain start entrance, Java code successively hand over virtual machine resolve perform, execution process
The middle interface that can call Framewrok (application framework layer) successively, Hardware (hardware abstraction layer)
Interface and the driving interface of Linux Kernel (Linux inner core).
Wherein, Java applications (application layer) is to operate in Java void with what Java language was write
Program on plan machine, as photographic head is applied.
Hardware (hardware abstraction layer) can be the hardware device to linux system (such as photographic head)
The encapsulation of operation interface, upwards provides interface, and shield bottom realizes details.
Therefore, it can arrange life parameter in hardware abstraction layer, with when generating multi-medium data
Detect.
Sub-step S13, when the multimedia hardware calling mobile device generates multi-medium data, from described
Hardware abstraction layer is inquired about life parameter;
In android system, multi-media recording object MediaRecorder can be created,
MediaRecorder records clothes to liking to be created by the recording service module MPS of application framework layer
Pragmatic example StageFrightRecorder, controls the recording of multimedia file.
Wherein, StagefrightRecorder is the entity object for recording operation that MPS creates.
Interprocess communication is realized by AIDL interface, in order to take the photograph between application and the MPS of recorded video
As head application and development is convenient, android system provides packaged help class.
Application such as recorded video is realized by MediaRecorder object and MediaRecorderClient
Exchange with MPS.
MediaRecorder to as if the process space of the application that operates in recorded video inside, represent
MPS, MediaRecorderClient operate in and represent recorded video inside the multimedia server process space
Application.
By preset photographic head source class CameraSource from camera collection view data, video counts
According to.
Voice data is gathered from mike by preset audio-source class AudioSource.
When generating multi-medium data in android system, can inquire about in hardware abstraction layer and whether inquire about
There is life parameter.
Sub-step S14, configures life cycle according to described life parameter to described multi-medium data.
If inquiry has life parameter in hardware abstraction layer, then to the multi-medium data configuration generated
Life cycle.
It should be noted that life parameter can be life cycle itself, then directly to multimedia number
According to configuring this life cycle, it is also possible to there is for mark the parameter of the multi-medium data of life cycle, then read
Take default life cycle to configure, it is also possible to be that life cycle itself has life cycle with mark
The parameter of multi-medium data, this is not any limitation as by the embodiment of the present invention.
Step 102, carries out validity check according to described life cycle to described multi-medium data;
Owing to multi-medium data has life cycle, need automatically to clear up, therefore, it can necessarily
Under conditions of, such as loading multimedia data, timing etc., multi-medium data is carried out validity check, with
Determine that this multi-medium data is the most effective.
Step 103, when described multi-medium data lost efficacy, deletes described multi-medium data.
In the embodiment of the present invention, if multi-medium data is positioned in life cycle, the most effective;If multimedia
Data are positioned at outside life cycle, typically lose efficacy, then can delete this multi-medium data.
Certainly, delete multi-medium data, can be directly to delete multi-medium data itself, it is also possible to many
Media data is labeled as deleting, and does not shows, the most just deletes, in this section
In time, user can recover, and this is not any limitation as by the embodiment of the present invention.
When the embodiment of the present invention generates multi-medium data in a mobile device, multi-medium data is configured life
In the cycle, under certain conditions, according to life cycle, multi-medium data is carried out validity check, if school
Test this multi-medium data to lose efficacy, then can delete this multi-medium data, it is achieved that based on life cycle to many
The automatic cleaning of media data, it is to avoid user manually carries out the operation screened, delete, the most matchmakers
In the case of volume data quantity is various, substantially increases the simplicity of cleaning operation, decrease user time
Consuming.
With reference to Fig. 3, it is shown that the method for cleaning of the multi-medium data of a kind of mobile device of the present invention is implemented
The flow chart of steps of example 2, specifically may include steps of:
Step 301, when generating multi-medium data in a mobile device, raw to the configuration of described multi-medium data
The life cycle;
In implementing, in order to save the memory space of mobile device, multimedia number the most for convenience
According to unified management, life cycle can be write in the attribute of multi-medium data.
Furthermore, life cycle can be write in the first field of multi-medium data, can be many
Second field of media data writes life cycle mark.
Wherein, life cycle is designated and identifies this multi-medium data and have the information of life cycle.
With exif (Exchangeable Image File Format, exchangeable image file) information as many
The example of the attribute of media data, exif information be a kind of standard for specification picture, sound, screen and
Shooting condition and the cameras such as aperture during shooting, shutter, white balance, ISO, focal length, date-time
The sound recorded when brand, model, color coding, shooting and global positioning system (GPS), contracting
The information such as sketch map.
The identifier between 0xFFE0--0xFFEF idle in Exif Information Pull jpeg file, note
Record photographing information, such as shutter speed, f-number etc..
In one example, it is possible to use whether 0XFFE0 record uses flash lamp when taking pictures, and this value is
Employ flash lamp when representing when 1 and take pictures, be to represent when 0 not use flash lamp.
Android system provides the exif interface support of multi-medium data, can read multi-medium data
In this type of information, come whether data recording multimedia data has life by this type of information in exif information
Cycle, life cycle time a length of how much.
Expanded by the UserComment field (the first field) of the exif information of multi-medium data
Exhibition, record life cycle, the management of the follow-up multi-medium data with life cycle, simultaneously
The makenote field (the second field) of exif information is processed, when this field attribute is true,
Characterize multi-medium data and there is life cycle.
Certainly, the configuration mode of above-mentioned multi-medium data is intended only as example, is implementing the embodiment of the present invention
Time, the configuration mode of other multi-medium datas can be set according to practical situation, such as, by independent
File, such as configuration literary compositions such as XML (Extensible Markup Language, extensible markup language)
Part, the life cycle of data recording multimedia data, etc., this is not any limitation as by the embodiment of the present invention.Separately
Outward, in addition to the configuration mode of above-mentioned multi-medium data, those skilled in the art can also be according to actual need
Using the configuration mode of other multi-medium data, this is not any limitation as by the embodiment of the present invention.
Step 302, when listening to the load request of multi-medium data, it is judged that described multi-medium data is
No have life cycle;
In implementing, open picture library, open the operation such as photographic head, unlatching mike, all can load
Multi-medium data.
When user opens picture library, unlatching photographic head, unlatching mike, it generally is the figure browsing generation
As multi-medium datas such as data, video data, voice datas, in order to present can add from data base to user
Carry multi-medium data, now go life cycle is carried out validity check, existing logic can be used,
Without newly-increased logic, reduce the amendment to application.
In a kind of mode, it can be determined that the second field of multi-medium data is (such as exif information
Makenote field) in whether have life cycle mark;
If, it is determined that multi-medium data has life cycle;
If not, it is determined that multi-medium data does not have life cycle.
Certainly, if life cycle uses the mode records such as independent file (such as XML file), it is possible to
To use the modes such as the mark (such as ID) mating multi-medium data in this independent file to judge many matchmakers
Whether volume data has life cycle, i.e. inquires in this independent file (such as XML file) and works as
The mark (such as ID) of front multi-medium data, then it is assumed that this multi-medium data has life cycle, otherwise,
The mark (such as ID) of current multimedia data is not inquired in this independent file (such as XML file),
Then think that this multi-medium data does not have life cycle, etc. the embodiment of the present invention this is not any limitation as.
Step 303, when described multi-medium data does not has life cycle, loads described multi-medium data;
If multi-medium data does not have life cycle, then can show with this multi-medium data of normal load
Show.
Step 304, when described multi-medium data has life cycle, it is judged that described multi-medium data is
No it is in described life cycle;The most then perform step 305, if it is not, then perform step 307;
In implementing, can be from the first field of multi-medium data (such as exif information
UserComment field) middle reading life cycle.
The generation time of inquiry multi-medium data, by sides such as System.currentTimeMillis () methods
Formula reads the current time of system, and calculates the time difference between current time and generation time.
When this time difference is less than life cycle, confirms that multi-medium data is in life cycle, confirm have
Effect;
When this time difference is more than or equal to life cycle, confirm that multi-medium data is in outside life cycle,
Confirm to lose efficacy.
Step 305, determines that described multi-medium data is effective;
Step 306, when described multi-medium data is effective, loads described multi-medium data;
If multi-medium data has life cycle, and in life cycle, then can these be many with normal load
Media data shows.
Step 307, determines that described multi-medium data lost efficacy;
Step 308, when described multi-medium data lost efficacy, deletes described multi-medium data.
If multi-medium data has life cycle, and outside life cycle, then can delete this multimedia
Data.
It should be noted that for embodiment of the method, in order to be briefly described, therefore it is all expressed as one it be
The combination of actions of row, but those skilled in the art should know, and the embodiment of the present invention is not by described
The restriction of sequence of movement because according to the embodiment of the present invention, some step can use other orders or
Person is carried out simultaneously.Secondly, those skilled in the art also should know, embodiment described in this description
Belong to preferred embodiment, necessary to the involved action not necessarily embodiment of the present invention.
With reference to Fig. 4, it is shown that the cleaning plant of the multi-medium data of a kind of mobile device of the present invention is implemented
The structured flowchart of example, specifically can include such as lower module:
Life cycle configuration module 401, during for generating multi-medium data in a mobile device, to described
Multi-medium data configuration life cycle;
Validity check module 402, for having described multi-medium data according to described life cycle
The verification of effect property;
Multi-medium data removing module 403, for when described multi-medium data lost efficacy, deletes described many
Media data.
In one embodiment of the invention, described life cycle configuration module 401 can include following son
Module:
Request receives submodule, generates multi-medium data for receiving in a mobile device based on life cycle
Request;
Life parameter arranges submodule, for arranging life in hardware abstraction layer according to described request
Cycle parameter;
Life parameter inquiry submodule, for generating many matchmakers at the multimedia hardware calling mobile device
During volume data, from described hardware abstraction layer, inquire about life parameter;
Multi-medium data configuration submodule, is used for according to described life parameter described multi-medium data
Configuration life cycle.
In one embodiment of the invention, described life cycle configuration module 401 can include following son
Module:
Life cycle write submodule, for writing Life Cycle in the first field of described multi-medium data
Phase;
Life cycle mark write submodule, raw for write in the second field of described multi-medium data
Life period indication.
In one embodiment of the invention, described validity check module 402 can include following submodule
Block:
First judges submodule, for when listening to the load request of multi-medium data, it is judged that described many
Whether media data has life cycle;
Second judges submodule, for when described multi-medium data has life cycle, it is judged that described many
Whether media data is in described life cycle;The most then call and effectively determine submodule, if it is not,
Then call and invalid determine submodule;
Effectively determine submodule, be used for determining that described multi-medium data is effective;
Invalid determine submodule, be used for determining that described multi-medium data lost efficacy.
In one embodiment of the invention, described first judges that submodule can include such as lower unit:
Whether life cycle mark judging unit, have in the second field judging described multi-medium data
Life cycle is had to identify;The most then call and have first and determine unit, determine if it is not, then call second
Unit;
First determines unit, is used for determining that described multi-medium data has life cycle;
Second determines unit, is used for determining that described multi-medium data does not have life cycle.
In one embodiment of the invention, described second judges that submodule can include such as lower unit:
Life cycle reads unit, for reading Life Cycle from the first field of described multi-medium data
Phase;
Generate time inquiring unit, for inquiring about the generation time of described multi-medium data;
Time difference calculating unit, for calculating the time difference between current time and described generation time;
3rd determines unit, for when described time difference is less than described life cycle, confirming described many matchmakers
Volume data is in described life cycle;
4th determines unit, for when described time difference is more than or equal to described life cycle, confirming institute
State multi-medium data to be in outside described life cycle.
In one embodiment of the invention, it is also possible to include such as lower module:
First multi-medium data load-on module, is used for when described multi-medium data does not has life cycle,
Load described multi-medium data.
In one embodiment of the invention, it is also possible to include such as lower module:
Second multi-medium data load-on module, for when described multi-medium data is effective, loads described many
Media data.
For device embodiment, due to itself and embodiment of the method basic simlarity, so the comparison described
Simply, relevant part sees the part of embodiment of the method and illustrates.
Each embodiment in this specification all uses the mode gone forward one by one to describe, and each embodiment stresses
Be all the difference with other embodiments, between each embodiment, identical similar part sees mutually
?.
Those skilled in the art are it should be appreciated that the embodiment of the embodiment of the present invention can be provided as method, dress
Put or computer program.Therefore, the embodiment of the present invention can use complete hardware embodiment, completely
Software implementation or the form of the embodiment in terms of combining software and hardware.And, the embodiment of the present invention
Can use and can be situated between with storage at one or more computers wherein including computer usable program code
The upper computer journey implemented of matter (including but not limited to disk memory, CD-ROM, optical memory etc.)
The form of sequence product.
The embodiment of the present invention is with reference to method according to embodiments of the present invention, terminal unit (system) and meter
The flow chart of calculation machine program product and/or block diagram describe.It should be understood that can be by computer program instructions
Each flow process in flowchart and/or block diagram and/or square frame and flow chart and/or square frame
Flow process in figure and/or the combination of square frame.Can provide these computer program instructions to general purpose computer,
The processor of special-purpose computer, Embedded Processor or other programmable data processing terminal equipment is to produce
One machine so that performed by the processor of computer or other programmable data processing terminal equipment
Instruction produce for realizing at one flow process of flow chart or multiple flow process and/or one square frame of block diagram or
The device of the function specified in multiple square frames.
These computer program instructions may be alternatively stored in and computer or other programmable datas can be guided to process
In the computer-readable memory that terminal unit works in a specific way so that be stored in this computer-readable
Instruction in memorizer produces the manufacture including command device, and this command device realizes flow chart one
The function specified in flow process or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded into computer or other programmable data processing terminals set
Standby upper so that on computer or other programmable terminal equipment, to perform sequence of operations step in terms of producing
The process that calculation machine realizes, thus the instruction performed on computer or other programmable terminal equipment provides and uses
In realizing in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame
The step of the function specified.
Although having been described for the preferred embodiment of the embodiment of the present invention, but those skilled in the art being once
Know basic creative concept, then these embodiments can be made other change and amendment.So,
Claims are intended to be construed to include preferred embodiment and fall into the institute of range of embodiment of the invention
There are change and amendment.
Finally, in addition it is also necessary to explanation, in this article, the relational terms of such as first and second or the like
It is used merely to separate an entity or operation with another entity or operating space, and not necessarily requires
Or imply relation or the order that there is any this reality between these entities or operation.And, art
Language " includes ", " comprising " or its any other variant are intended to comprising of nonexcludability, so that
Process, method, article or terminal unit including a series of key elements not only include those key elements, and
Also include other key elements being not expressly set out, or also include for this process, method, article or
The key element that person's terminal unit is intrinsic.In the case of there is no more restriction, statement " include one
It is individual ... " key element that limits, it is not excluded that including the process of described key element, method, article or end
End equipment there is also other identical element.
Method for cleaning and one to the multi-medium data of a kind of mobile device provided by the present invention above
The cleaning plant of the multi-medium data of mobile device, is described in detail, used herein the most individual
Principle and the embodiment of the present invention are set forth by example, and the explanation of above example is only intended to help
Understand method and the core concept thereof of the present invention;Simultaneously for one of ordinary skill in the art, foundation
The thought of the present invention, the most all will change, in sum,
This specification content should not be construed as limitation of the present invention.
Claims (10)
1. the method for cleaning of the multi-medium data of a mobile device, it is characterised in that including:
When generating multi-medium data in a mobile device, described multi-medium data is configured life cycle;
According to described life cycle, described multi-medium data is carried out validity check;
When described multi-medium data lost efficacy, delete described multi-medium data.
Method the most according to claim 1, it is characterised in that described generate in a mobile device
During multi-medium data, the step of described multi-medium data configuration life cycle is included:
Receive the request generating multi-medium data based on life cycle in a mobile device;
According to described request, life parameter is set in hardware abstraction layer;
When the multimedia hardware calling mobile device generates multi-medium data, from described hardware abstraction layer
Inquiry life parameter;
According to described life parameter, described multi-medium data is configured life cycle.
Method the most according to claim 1 and 2, it is characterised in that described to described multimedia
The step of data configuration life cycle includes:
Life cycle is write in the first field of described multi-medium data;
Life cycle mark is write in the second field of described multi-medium data.
4. according to the method described in claim 1 or 2 or 3, it is characterised in that described in described basis
The step that life cycle carries out validity check to described multi-medium data includes:
When listening to the load request of multi-medium data, it is judged that whether described multi-medium data has life
Cycle;
When described multi-medium data has life cycle, it is judged that whether described multi-medium data is in described
In life cycle;
If, it is determined that described multi-medium data is effective;
If not, it is determined that described multi-medium data lost efficacy.
Method the most according to claim 4, it is characterised in that described judgement described multimedia number
Include according to the step whether with life cycle:
Judge whether the second field of described multi-medium data has life cycle mark;
If, it is determined that described multi-medium data has life cycle;
If not, it is determined that described multi-medium data does not have life cycle.
Method the most according to claim 4, it is characterised in that described judgement described multimedia number
Include according to the step whether being in described life cycle:
Life cycle is read from the first field of described multi-medium data;
Inquire about the generation time of described multi-medium data;
Calculate current time and the time difference between the described generation time;
When described time difference is less than described life cycle, confirm that described multi-medium data is in described life
In cycle;
When described time difference is more than or equal to described life cycle, confirm that described multi-medium data is in institute
State outside life cycle.
Method the most according to claim 4, it is characterised in that in the described multimedia of described judgement
After whether data have the step of life cycle, described method also includes:
When described multi-medium data does not has life cycle, load described multi-medium data.
Method the most according to claim 4, it is characterised in that also include:
When described multi-medium data is effective, load described multi-medium data.
9. the cleaning plant of the multi-medium data of a mobile device, it is characterised in that including:
Life cycle configuration module, during for generating multi-medium data in a mobile device, to described many matchmakers
Volume data configuration life cycle;
Validity check module, for carrying out effectiveness according to described life cycle to described multi-medium data
Verification;
Multi-medium data removing module, for when described multi-medium data lost efficacy, deletes described multimedia
Data.
Device the most according to claim 9, it is characterised in that described life cycle configuration module
Including:
Request receives submodule, generates multi-medium data for receiving in a mobile device based on life cycle
Request;
Life parameter arranges submodule, for arranging life in hardware abstraction layer according to described request
Cycle parameter;
Life parameter inquiry submodule, for generating many matchmakers at the multimedia hardware calling mobile device
During volume data, from described hardware abstraction layer, inquire about life parameter;
Multi-medium data configuration submodule, is used for according to described life parameter described multi-medium data
Configuration life cycle.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610357118.9A CN106020730A (en) | 2016-05-25 | 2016-05-25 | Clearing method and device for multi-media data of mobile device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610357118.9A CN106020730A (en) | 2016-05-25 | 2016-05-25 | Clearing method and device for multi-media data of mobile device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106020730A true CN106020730A (en) | 2016-10-12 |
Family
ID=57095034
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610357118.9A Pending CN106020730A (en) | 2016-05-25 | 2016-05-25 | Clearing method and device for multi-media data of mobile device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106020730A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107332995A (en) * | 2017-06-30 | 2017-11-07 | 北京三快在线科技有限公司 | Call management device |
CN110083451A (en) * | 2019-04-16 | 2019-08-02 | 惠州Tcl移动通信有限公司 | Network parameter management method, device and the storage medium of mobile terminal |
Citations (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1920828A (en) * | 2006-08-28 | 2007-02-28 | 华为技术有限公司 | Method and system for cleaning garbage files |
CN1932821A (en) * | 2005-09-14 | 2007-03-21 | 三星电子株式会社 | Method and apparatus for managing multimedia content stored in digital multimedia device |
CN101094465A (en) * | 2006-06-23 | 2007-12-26 | 北京握奇数据系统有限公司 | Device for automatic updating short message to be sent and received, and method for automatic updating short message |
CN101183986A (en) * | 2007-11-26 | 2008-05-21 | 河北全通通信有限公司 | Method for economized storage, construction ''green'' database |
US20100287249A1 (en) * | 2007-12-18 | 2010-11-11 | Cai Yigang | Methods and systems for expiration handling in electronic message systems |
CN103399806A (en) * | 2013-07-26 | 2013-11-20 | 安徽省徽商集团有限公司 | Method and system for updating and managing network backups |
CN103412753A (en) * | 2013-08-12 | 2013-11-27 | 宇龙计算机通信科技(深圳)有限公司 | Image deletion method and device |
CN103581052A (en) * | 2012-08-02 | 2014-02-12 | 华为技术有限公司 | Data processing method, router and NDN system |
CN104036001A (en) * | 2014-06-13 | 2014-09-10 | 上海新炬网络技术有限公司 | Dynamic hotlist priority scheduling based quick data cleaning method |
CN104113509A (en) * | 2013-04-16 | 2014-10-22 | 腾讯科技(深圳)有限公司 | Media file push method and server |
CN104391745A (en) * | 2014-10-13 | 2015-03-04 | 浪潮通用软件有限公司 | Method for managing extensible object life cycle |
CN104572762A (en) * | 2013-10-24 | 2015-04-29 | 杭州海康威视数字技术股份有限公司 | Method and device for deleting and recovering video files |
CN104636475A (en) * | 2015-02-13 | 2015-05-20 | 小米科技有限责任公司 | Method and device for optimizing multimedia file storage space |
CN104994277A (en) * | 2015-06-30 | 2015-10-21 | 青岛海信移动通信技术股份有限公司 | Rapid shooting method and device for mobile communication terminal |
CN105045535A (en) * | 2015-07-22 | 2015-11-11 | 北京京东尚科信息技术有限公司 | Method and system for automatically deleting expired data |
-
2016
- 2016-05-25 CN CN201610357118.9A patent/CN106020730A/en active Pending
Patent Citations (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1932821A (en) * | 2005-09-14 | 2007-03-21 | 三星电子株式会社 | Method and apparatus for managing multimedia content stored in digital multimedia device |
CN101094465A (en) * | 2006-06-23 | 2007-12-26 | 北京握奇数据系统有限公司 | Device for automatic updating short message to be sent and received, and method for automatic updating short message |
CN1920828A (en) * | 2006-08-28 | 2007-02-28 | 华为技术有限公司 | Method and system for cleaning garbage files |
CN101183986A (en) * | 2007-11-26 | 2008-05-21 | 河北全通通信有限公司 | Method for economized storage, construction ''green'' database |
US20100287249A1 (en) * | 2007-12-18 | 2010-11-11 | Cai Yigang | Methods and systems for expiration handling in electronic message systems |
CN103581052A (en) * | 2012-08-02 | 2014-02-12 | 华为技术有限公司 | Data processing method, router and NDN system |
CN104113509A (en) * | 2013-04-16 | 2014-10-22 | 腾讯科技(深圳)有限公司 | Media file push method and server |
CN103399806A (en) * | 2013-07-26 | 2013-11-20 | 安徽省徽商集团有限公司 | Method and system for updating and managing network backups |
CN103412753A (en) * | 2013-08-12 | 2013-11-27 | 宇龙计算机通信科技(深圳)有限公司 | Image deletion method and device |
CN104572762A (en) * | 2013-10-24 | 2015-04-29 | 杭州海康威视数字技术股份有限公司 | Method and device for deleting and recovering video files |
CN104036001A (en) * | 2014-06-13 | 2014-09-10 | 上海新炬网络技术有限公司 | Dynamic hotlist priority scheduling based quick data cleaning method |
CN104391745A (en) * | 2014-10-13 | 2015-03-04 | 浪潮通用软件有限公司 | Method for managing extensible object life cycle |
CN104636475A (en) * | 2015-02-13 | 2015-05-20 | 小米科技有限责任公司 | Method and device for optimizing multimedia file storage space |
CN104994277A (en) * | 2015-06-30 | 2015-10-21 | 青岛海信移动通信技术股份有限公司 | Rapid shooting method and device for mobile communication terminal |
CN105045535A (en) * | 2015-07-22 | 2015-11-11 | 北京京东尚科信息技术有限公司 | Method and system for automatically deleting expired data |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107332995A (en) * | 2017-06-30 | 2017-11-07 | 北京三快在线科技有限公司 | Call management device |
CN107332995B (en) * | 2017-06-30 | 2018-12-25 | 北京三快在线科技有限公司 | Call management device |
CN110083451A (en) * | 2019-04-16 | 2019-08-02 | 惠州Tcl移动通信有限公司 | Network parameter management method, device and the storage medium of mobile terminal |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2015043512A1 (en) | Picture management method and device | |
JP2007094762A (en) | Information processor, information processing method, and program | |
US20090327229A1 (en) | Automatic knowledge-based geographical organization of digital media | |
WO2018113725A1 (en) | Method and device for loading picture resource, and program and medium | |
CN110175081B (en) | Optimization system and method for Android audio playing | |
KR102180474B1 (en) | Apparatus and Method For Managing Image Files By Displaying Backup Information | |
WO2015074203A1 (en) | Picture displaying method, apparatus and terminal device | |
CN113329176A (en) | Image processing method and related device applied to camera of intelligent terminal | |
CN115689963B (en) | Image processing method and electronic equipment | |
CN106020729A (en) | Clearing method and device for multi-media data of mobile terminal | |
CN109246467A (en) | Label is to the method, apparatus of sharing video frequency, video camera and smart phone | |
CN106020730A (en) | Clearing method and device for multi-media data of mobile device | |
CN113709026B (en) | Method, device, storage medium and program product for processing instant communication message | |
CN113495744A (en) | Version upgrading method and related device | |
CN106527891B (en) | A kind of edit object selection method and relevant apparatus | |
CN114374813A (en) | Multimedia resource management method, recorder and server | |
CN113055585B (en) | Thumbnail display method of shooting interface and mobile terminal | |
CN104580889A (en) | Terminal | |
CN117135341A (en) | Image processing method and electronic equipment | |
CN114979785B (en) | Video processing method, electronic device and storage medium | |
CN101420503A (en) | System and method capable of displaying user information on digital photograph | |
WO2023050418A1 (en) | Data processing method, data processing system, electronic device, and storage medium | |
CN113642010B (en) | Method for acquiring data of extended storage device and mobile terminal | |
KR101458979B1 (en) | Method for generating life-log data and displaying method thereof | |
CN114666497A (en) | Imaging method, terminal device, storage medium, and program product |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20161012 |
|
RJ01 | Rejection of invention patent application after publication |