CN102970420B - Picture filter method and system in Android system - Google Patents
Picture filter method and system in Android system Download PDFInfo
- Publication number
- CN102970420B CN102970420B CN201210442858.4A CN201210442858A CN102970420B CN 102970420 B CN102970420 B CN 102970420B CN 201210442858 A CN201210442858 A CN 201210442858A CN 102970420 B CN102970420 B CN 102970420B
- Authority
- CN
- China
- Prior art keywords
- picture
- file
- folder
- buffer memory
- scanning
- 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.)
- Active
Links
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Telephone Function (AREA)
Abstract
The invention provides a picture filter method and system in an Android system. The picture filter method includes the following steps: A receiving a picture scanning request; B judging whether to scan a picture according to the type of a folder, entering the step D on yes judgment and entering the step C otherwise; C judging whether the folder is a cache picture folder according to the size of a folder picture, entering the step E on yes judgment and entering the step D otherwise; D scanning the picture conventionally; E placing a .nomedia file into the cache picture folder; and F recording a path of the cache picture folder obtained in the step E. The execution method of the picture filter system in the Android system corresponds to the steps. According to the picture filter method and system in the Android system, the cache picture folder is screened out through folder type judgment and shielding file write-in, multimedia folder scanning time is effectively saved, complexity in manual cache picture deleting is avoided, and multimedia scanning response speed is improved.
Description
Technical field
The present invention relates to mobile terminal picture filtration art, relate in particular to image filtering method and system in a kind of Android system.
Background technology
The intelligent terminal operating system that the smart mobile phone of take is example is the terminal system that a kind of operational capability is stronger compared with conventional terminal operating system, use maximum operating system to have: Android, IOS, Symbian, WindowsPhone and BlackBerry OS, the application software between them is incompatible.Because third party software can be installed as PC, intelligent terminal has abundant function.
Android is that a kind of Linux of take is basic open source code operating system, mainly be used in portable equipment, there is exploration, allow any mobile terminal manufacturer to add its alliance, make it have more developer, be conducive to accumulate popularity, the network characteristic that Andro id terminal is born, allows user can break away from the constraint of operator, from the Internet more close to, in addition, Android system also has advantages of abundant hardware selection, is combined and not limited by developer with Google application seamless.Along with the development of Android system and perfect, Android system has become mobile interconnected core force gradually, on the market based on Android system can only mobile phone and the product of panel computer constantly emerge.Terminal based on Android system is produced the main flow terminal equipment that becomes already current mobile Internet, and it has born the function of most of multimedia shade player gradually, and user can listen song in the above, sees a film, browsing pictures etc.
Just due to the above-mentioned advantage of Android system, can free mounting software, user when using Android system terminal due to a large amount of third party softwares being installed, system produces a large amount of buffer memory pictures, during operation multimedia, media library also all scans buffer memory picture out, expends a large amount of time, buffer memory Image Display out also can affect user's selection the most at last, causes unnecessary trouble.To this, conventional method is that user finds buffer memory picture and deletes one by one, although temporarily deleted buffer memory picture, but when complex operation and Force Deletion buffer memory picture are used third party software next time, likely cause third party software to use being obstructed or buffer memory picture will produce again, during multimedia scanning, equally also will scan buffer memory picture, affect the multimedia speed of service.
Summary of the invention
The technical problem to be solved in the present invention is, for manually deleting in prior art when buffer memory picture complex operation and next round multimedia are moved, equally also will scan buffer memory picture, affect the problem of the multimedia speed of service, a kind of image filtering method and system of filtering the buffer memory picture of third party software generation in Android system intelligence terminal is provided.
The technical solution adopted for the present invention to solve the technical problems is:
Image filtering method in a kind of Android system is provided, it is characterized in that, comprise the following steps:
A. receive picture scanning request;
B. according to the type of file, judge whether to scan, if go to step D, go to step if not C;
C. according to file picture size, determine whether buffer memory picture file folder, if so, this document folder, for buffer memory picture file folder, goes to step E, if not, goes to step D;
D. the picture in scanning document folder in the usual way;
E. in described buffer memory picture file folder, put into .nomedia file.
Further, also comprise step:
F. described in recording step E, buffer memory picture file presss from both sides path.
Preferably, in described step B, according to the title of described file, judge in described file whether store the picture of being downloaded by user behavior, if represent that this document needs scanning.
Preferably, described Folder Name comprises save and/or download, represents the picture that in this document folder, storage is downloaded by user behavior.
Preferably, the picture size in the file in described step C more than 90% is all less than default threshold value, and described file is buffer memory picture file folder.
Preferably, described threshold value is 20K.
In addition, the present invention also provides the image filtering system in a kind of Android system, comprising:
Receiving element, receives picture scanning request;
The first judging unit, judges according to the type of file whether described file needs scanning;
The second judging unit, whether the file that does not need scanning that judgement is determined by the first judging unit is that buffer memory picture file presss from both sides;
Scanning element, scans the picture in the file of the definite needs of the first judging unit scanning and non-buffer memory picture file folder that the second judging unit is determined;
Writing unit writes .nomedia file in the definite buffer memory picture file folder of the second judging unit.
Preferably, also comprise: record cell, the described buffer memory picture file folder path of recording said write .nomedia file.
Preferably, in described the first judging unit, according to the title of described file, judge in described file whether store the picture of being downloaded by user behavior, if represent that this document needs scanning.
Preferably, described Folder Name comprises save and/or download, represents the picture that in this document folder, storage is downloaded by user behavior.
Preferably, described the second judging unit according to more than 90% picture size in described file, be all less than default threshold value, described file is buffer memory picture file folder.
Preferably, described threshold value is 20K.
Adopt image filtering method and system in the Android system of inventing, by most picture size in detection Folder Name and detection file, filtering out buffer memory picture file presss from both sides, .nomedia file is write to buffer memory picture file folder, to no longer scan this buffer memory picture file folder during multimedia scanning, effectively improved the speed of multimedia scanning, saved the response time, removed the loaded down with trivial details of manual deletion from, and only need filter and once can guarantee not scan afterwards this cache file folder, not affect the operation of third party software simultaneously.
Accompanying drawing explanation
Below in conjunction with drawings and Examples, the invention will be further described, in accompanying drawing:
Fig. 1 filters the flow chart of the embodiment of the method for picture in Andro id system of the present invention;
Fig. 2 filters the structural representation of the system embodiment of picture in Android system of the present invention.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein, only for explaining the present invention, is not intended to limit the present invention.
In one embodiment of the invention as shown in Figure 1, in Android system, filter the method flow diagram of picture.
In step 101, by user, select to input picture scanning request, multimedia is prepared scanning document folder according to user's picture scanning request.
Android system provides MediaScanner, MediaProvider, and interfaces such as MediaStore, and a set of database table is provided, the mode by Content Provider offers user.When mobile phone power-on or while having the event such as SD card plug to occur, system will automatic scan SD card and mobile phone EMS memory on media file, as audio, video, pictures etc., are put into corresponding information in the database table defining.
In step 102, before scanning document presss from both sides in the usual way, first according to the title of file, judge whether this document folder needs scanning.
Particularly, whether file needs the standard of scanning according to the title of file.If comprise the words such as save and/or download in the title of this document folder, can think that described file is the picture of downloading according to user's behavior, described file needs scanning, and flow process goes to step 103, scans in a conventional manner the picture in this document folder.
In step 104, in the judgement for step 102, if the filename of file does not comprise the text that save and/or download etc. represent that user behavior is downloaded, continue so this document folder to judge.
Detect the size of picture in this document folder, if the picture size wherein more than 90% is all less than the threshold value of setting, as 20K, think that this document folder is for buffer memory picture file folder, flow process goes to step 105.
Because the size of buffer memory picture is all very little, generally in 10K left and right, for example QQ system diagram is designated as 3K left and right, so 20K is optional threshold value.
If the picture in file does not meet more than 90% size and, lower than setting threshold, thinks that this document folder does not belong to buffer memory picture file folder, goes to step 103.
In step 105, the picture in buffer memory picture file folder directly writes .nomedia file in this document.The file that comprises .nomedia file in Android system is defaulted as the file of shielding media software scanning, therefore after having added .nomedia file in buffer memory picture file folder, after multimedia scanning in, automatic shield this document is pressed from both sides, turn to non-buffer memory picture file folder preview to user, so that user selects.
In step 106, the path that has write .nomedia file is recorded.Because multimedia scanning is less than this document folder, system cannot preview picture wherein, when the path of this document folder is recorded to needed, checks.
In addition, check the recovery operation of the file having shielded for needs, user can find this document folder then to delete .nomedia file according to its path just can preview picture wherein, also can change .nomedia into .media.
Fig. 2 filters the structural representation of the system embodiment of picture in Android system of the present invention.System of the present invention comprises:
Receiving element 201, is operated and is received multimedia scan request by user, and multimedia is prepared scanning document folder according to described scan request.In addition, when mobile phone power-on or while having the event such as SD card plug to occur, system will automatic scan SD card and mobile phone EMS memory on media file, as audio, video, pictures etc., are put into corresponding information in the database table defining.
The first judging unit 202, whether the folder type that judgement is about to scanning is the file that user downloads behavior generation, the file producing according to user behavior in name, generally comprise save, download etc. at interior text in order to represent, the title of the first judging unit retrieving files folder, if wherein comprise the words such as save and/or download, described file is that user behavior is downloaded the picture file folder producing, but not cache file folder.
The second judging unit 203, the size that does not comprise all pictures in the file of the texts such as save and/or download in retrieving files name, if more than 90% picture size is all less than default threshold value, such as 20K, this document folder is buffer memory picture file folder, otherwise this document folder, for non-buffer memory picture file folder, needs normal scan.Because the size of buffer memory picture is all very little, generally in 10K left and right, for example QQ system diagram is designated as 3K left and right, so 20K is optional threshold value.
Scanning element 204, for according to normal mode scanned picture, what comprise that the first judging unit determines downloads the picture in the non-buffer memory picture file folder that picture in the file producing and the second judging unit judge by user behavior.
Writing unit 205 writes .nomedia file in buffer memory picture file folder, in order to shield multimedia scanning.The file that comprises .nomedia file in Android system is defaulted as the file of shielding media software scanning, therefore after thinking to have added .nomedia file in buffer memory picture file folder, after multimedia scanning in, automatic shield this document is pressed from both sides, turn to non-buffer memory picture file folder preview to user, so that user selects.
Record cell 206, for recording the buffer memory picture file folder path that has write .nomedia file.Because multimedia scanning is less than this document folder, system cannot preview picture wherein, when the path of this document folder is recorded to needed, checks.
In addition, check the recovery operation of the file having shielded for needs, user can find this document folder then to delete .nomedia file according to its path just can preview picture wherein, also can change .nomedia into .media.
The method and system that the present invention is disclosed, are mainly used in the scanning shielding of buffer memory picture file folder in the mobile terminal of Android system, improve multimedia sweep speed, save the scanning response time.Described embodiment, only for explanation of the present invention, is not limited to the present invention, all any modifications of doing within the spirit and principles in the present invention, is equal to and replaces or improvement etc., within all should being included in protection scope of the present invention.
Claims (10)
1. the image filtering method in Android system, is characterized in that, comprises the following steps:
A. receive picture scanning request;
B. according to the type of file, judge whether to scan, if go to step D, go to step if not C;
C. according to file picture size, determine whether buffer memory picture file folder, if so, this document folder, for buffer memory picture file folder, goes to step E, if not, goes to step D;
D. the picture in scanning document folder in the usual way;
E. in described buffer memory picture file folder, put into .nomedia file.
2. the image filtering method in Android system according to claim 1, characterized by further comprising step:
F. described in recording step E, buffer memory picture file presss from both sides path.
3. the image filtering method in Android system according to claim 1, it is characterized in that, in described step B, according to the title of described file, judge in described file whether store the picture of being downloaded by user behavior, if represent that this document folder needs scanning.
4. the image filtering method in Android system according to claim 3, is characterized in that, described Folder Name comprises save and/or download, represents the picture that in this document folder, storage is downloaded by user behavior.
5. the image filtering method in Android system according to claim 1, is characterized in that, the picture size in the file in described step C more than 90% is all less than default threshold value, and described file is buffer memory picture file folder.
6. the image filtering system in Android system, comprising:
Receiving element, receives picture scanning request;
The first judging unit, judges according to the type of file whether described file needs scanning;
The second judging unit, whether the file that does not need scanning that judgement is determined by the first judging unit is that buffer memory picture file presss from both sides;
Scanning element, scans the picture in the file of the definite needs of the first judging unit scanning and non-buffer memory picture file folder that the second judging unit is determined;
Writing unit writes .nomedia file in the definite buffer memory picture file folder of the second judging unit.
7. the image filtering system in Android system according to claim 6, is characterized in that, also comprises: record cell, the described buffer memory picture file folder path of recording said write .nomedia file.
8. the image filtering system in Android system according to claim 7, it is characterized in that, in described the first judging unit, according to the title of described file, judge in described file whether store the picture of being downloaded by user behavior, if represent that this document folder needs scanning.
9. the image filtering method in Android system according to claim 8, is characterized in that, described Folder Name comprises save and/or download, represents the picture that in this document folder, storage is downloaded by user behavior.
10. the image filtering system in Android system according to claim 6, is characterized in that, described the second judging unit according to more than 90% picture size in described file, be all less than default threshold value, described file is buffer memory picture file folder.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210442858.4A CN102970420B (en) | 2012-11-07 | 2012-11-07 | Picture filter method and system in Android system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210442858.4A CN102970420B (en) | 2012-11-07 | 2012-11-07 | Picture filter method and system in Android system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102970420A CN102970420A (en) | 2013-03-13 |
CN102970420B true CN102970420B (en) | 2014-01-22 |
Family
ID=47800296
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210442858.4A Active CN102970420B (en) | 2012-11-07 | 2012-11-07 | Picture filter method and system in Android system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102970420B (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103514270B (en) * | 2013-09-13 | 2017-05-31 | 广东欧珀移动通信有限公司 | Multimedia database scan method and device |
CN103970836A (en) * | 2014-04-13 | 2014-08-06 | 数源科技股份有限公司 | Method for accelerating multimedia scanning process in Android |
CN105446980B (en) * | 2014-06-27 | 2018-12-14 | 北京金山安全软件有限公司 | Method and device for identifying picture junk files |
CN105446985B (en) | 2014-06-30 | 2018-12-14 | 北京金山安全软件有限公司 | Cache folder identification method and device |
CN105446987B (en) | 2014-06-30 | 2019-03-26 | 北京金山安全软件有限公司 | Picture garbage file identification method and device and electronic equipment |
CN106650484A (en) * | 2016-08-31 | 2017-05-10 | 深圳天珑无线科技有限公司 | Picture library content processing method and apparatus, and mobile device |
CN106909855B (en) * | 2017-03-24 | 2021-10-29 | 腾讯科技(深圳)有限公司 | File hiding method and device |
CN109597542A (en) * | 2018-10-08 | 2019-04-09 | 华为技术有限公司 | A kind of photograph album methods of exhibiting, electronic equipment and storage medium |
TR202018031A2 (en) | 2020-11-11 | 2022-05-23 | Arcelik As | COMPUTER AND METHOD OF PROCESSING MULTIMEDIA FILES |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102609515A (en) * | 2012-02-07 | 2012-07-25 | 奇智软件(北京)有限公司 | Quick file scanning method and quick file scanning system |
CN102654872A (en) * | 2011-03-03 | 2012-09-05 | 腾讯科技(深圳)有限公司 | Method and device for cleaning junk files generated by application programs |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1733316A1 (en) * | 2004-03-22 | 2006-12-20 | Nitgen Technologies Inc. | A streaming based contents distribution network system and methods for splitting, merging and retrieving files |
-
2012
- 2012-11-07 CN CN201210442858.4A patent/CN102970420B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102654872A (en) * | 2011-03-03 | 2012-09-05 | 腾讯科技(深圳)有限公司 | Method and device for cleaning junk files generated by application programs |
CN102609515A (en) * | 2012-02-07 | 2012-07-25 | 奇智软件(北京)有限公司 | Quick file scanning method and quick file scanning system |
Non-Patent Citations (2)
Title |
---|
小熊工作室.掌上软件.nomedia管理工具.《http://www.studiokuma.com/home.php》.2011, |
掌上软件.nomedia管理工具;小熊工作室;《http://www.studiokuma.com/home.php》;20110614;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN102970420A (en) | 2013-03-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102970420B (en) | Picture filter method and system in Android system | |
KR102128138B1 (en) | Hydration and dehydration with placeholders | |
CN103544207B (en) | A kind of method and system of picture loaded and displayed | |
US10871973B2 (en) | Application activation method and apparatus | |
US20200183885A1 (en) | File Processing Method and Mobile Terminal | |
CN108234554B (en) | Cloud file editing method and device | |
US10191838B2 (en) | Method and device for checking influence of deleting cache file, and mobile terminal | |
CN102760131B (en) | A kind of methods of exhibiting of network album and system | |
CN102890638B (en) | Upgrade method of STB (set top box) | |
CN106649596A (en) | Method and device for displaying folder catalogue in intelligent terminal | |
WO2014205903A1 (en) | File display method and device | |
CN110704184A (en) | Application memory optimization method and device and mobile terminal | |
CN105205142A (en) | Method, device and mobile terminal for saving log file | |
CN111212227A (en) | Method, device and equipment for configuring video resolution of camera and storage medium | |
CN103279337A (en) | Method and apparatus for executing application file and screen capture method and apparatus therefor | |
CN108279905B (en) | Method and device for introducing library file into assembly | |
CN106484779A (en) | File operation method and device | |
CN103136234A (en) | Data processing method and data processing device | |
CN112765110B (en) | PDF annotation data generation method, device, equipment and storage medium | |
CN111913918A (en) | File storage method and device and electronic equipment | |
CN110602416B (en) | Video processing method, terminal and computer readable storage medium | |
WO2017096889A1 (en) | Method and device for upgrading and downgrading system | |
CN112052655A (en) | Page processing method and device, computer storage medium and terminal | |
CN111274210B (en) | Metadata processing method and device and electronic equipment | |
CN105224561B (en) | Cache storage method and device based on paging file |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
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: OPPO Guangdong Mobile Communications Co., Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee before: Guangdong Opel Mobile Communications Co., Ltd. |
|
CP01 | Change in the name or title of a patent holder |