CN102970420A - Picture filter method and system in Android system - Google Patents
Picture filter method and system in Android system Download PDFInfo
- Publication number
- CN102970420A CN102970420A CN2012104428584A CN201210442858A CN102970420A CN 102970420 A CN102970420 A CN 102970420A CN 2012104428584 A CN2012104428584 A CN 2012104428584A CN 201210442858 A CN201210442858 A CN 201210442858A CN 102970420 A CN102970420 A CN 102970420A
- 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.)
- Granted
Links
Images
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 the mobile terminal picture filtration art, relate in particular to image filtering method and system in a kind of Android system.
Background technology
Intelligent terminal operating system as an example of smart mobile phone example is a kind of operational capability terminal system stronger than 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 a kind of take the open source code operating system of Linux as the basis, mainly be used in portable equipment, have exploration, allow any portable 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 the user can break away from the constraint of operator, from the Internet more close to, in addition, the Android system also has the advantage that abundant hardware is selected, is combined and not limited by the developer with the Google application seamless.Along with the development of Android system and perfect, the Android system has become mobile interconnected core force gradually, on the market based on the Android system can only mobile phone and the product of panel computer constantly emerge.Produce the main flow terminal equipment that becomes already current mobile Internet based on the terminal of Android system, it has born the function of most of multimedia shade player gradually, and the user can listen song in the above, sees a film, browsing pictures etc.
Just because the above-mentioned advantage of Android system, can free mounting software, the user when using the Android system terminal because a large amount of third party softwares has been installed, system produces a large amount of buffer memory pictures, during the operation multimedia, media library also all scans the buffer memory picture out, expends a large amount of time, the buffer memory Image Display out also can affect user's selection the most at last, causes unnecessary trouble.To this, method commonly used is that the user finds buffer memory picture and one by one deletion, although temporarily deleted the buffer memory picture, but when complex operation and Force Deletion buffer memory picture use third party software next time, might cause third party software to use being obstructed or the buffer memory picture will produce again, equally also will scan the buffer memory picture during multimedia scanning, affect the multimedia speed of service.
Summary of the invention
The technical problem to be solved in the present invention is, when moving, buffer memory picture complex operation and next round multimedia equally also will scan the buffer memory picture for manually deleting on the prior art, 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, may further comprise the steps:
A. receive the picture scanning request;
B. the type according to file judges whether and will scan, if then turn step D, then turns if not step C;
C. determine whether buffer memory picture file folder according to the file picture size, if then this document folder turns step e for buffer memory picture file folder, if not, then turns step D;
D. the picture in scanning document presss from both sides in the usual way;
E. in described buffer memory picture file folder, put into the .nomedia file.
Further, also comprise step:
F. the described buffer memory picture file of recording step E presss from both sides the path.
Preferably, judge whether store the picture of being downloaded by user behavior in the described file according to the title of described file among the described step B, need scanning if then represent this document.
Preferably, described Folder Name comprises save and/or download, then represents the picture that storage is downloaded by user behavior in this document folder.
Preferably, the picture size in the file among the described step C more than 90% is all less than default threshold value, and then 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 the picture scanning request;
The first judging unit judges according to the type of file whether needs scan described file;
The second judging unit judges whether the file that need not scan of being determined by the first judging unit is buffer memory picture file folder;
Scanning element scans the file of the definite needs scanning of the first judging unit and the interior picture of non-buffer memory picture file folder that the second judging unit is determined;
Writing unit writes the .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 record said write .nomedia file.
Preferably, judge whether store the picture of being downloaded by user behavior in the described file according to the title of described file in described the first judging unit, need scanning if then represent this document.
Preferably, described Folder Name comprises save and/or download, then represents the picture that storage is downloaded by user behavior in this document folder.
Preferably, described the second judging unit according to the picture size more than 90% in the described file all less than default threshold value, then 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, most picture size filter out buffer memory picture file folder in Folder Name and the detection file by detecting, the .nomedia file is write buffer memory picture file folder, in order to no longer scan this buffer memory picture file folder during multimedia scanning, Effective Raise 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.
Description of drawings
The invention will be further described below in conjunction with drawings and Examples, in the accompanying drawing:
Fig. 1 is the flow chart that filters the embodiment of the method for picture in the Andro id of the present invention system;
Fig. 2 is the structural representation that filters the system embodiment of picture in the Android of the present invention system.
Embodiment
In order to make purpose 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 is used for explaining the present invention, be not intended to limit the present invention.
Filter the method flow diagram of picture in the one embodiment of the invention as shown in Figure 1 in the Android system.
In step 101, by the request of user selection input picture scanning, multimedia is prepared the scanning document folder according to user's picture scanning request.
The Android system provides MediaScanner, MediaProvider, and interfaces such as MediaStore, an and sets of data Ku Biaoge is provided, the mode by Content Provider offers the user.When mobile phone power-on or when having the event such as SD card plug to occur, system will automatic scan SD card and mobile phone EMS memory on media file, such as audio, video, pictures etc. are put into corresponding information in the database table that defines.
In step 102, before scanning document presss from both sides in the usual way, at first judge according to the title of file this document presss from both sides whether needs scan.
Particularly, whether file needs the standard that scans according to the title of file.If comprise the literal such as save and/or download in the title of this document folder, can think that then 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 the expression user behaviors such as save and/or download are downloaded, continue so this document folder is judged.
Detect the size of picture in this document folder, if wherein the picture size more than 90% is all less than the threshold value of setting, such as 20K, think that then this document folder is buffer memory picture file folder, flow process turns step 105.
Because the size of buffer memory picture is all very little, generally about 10K, for example the QQ system diagram is designated as about 3K, so 20K is optional threshold value.
Be not lower than setting threshold if the picture in the file does not satisfy 90% above size, think that then this document folder does not belong to buffer memory picture file folder, turns step 103.
In step 105, the picture in the buffer memory picture file folder directly writes the .nomedia file in this document.The file that comprises the .nomedia file in the Android system is defaulted as the file of shielding media software scanning, therefore in buffer memory picture file folder, added after the .nomedia file, after multimedia scanning in, automatic shield this document is pressed from both sides, turn to non-buffer memory picture file folder and preview to the user, so that user selection.
In step 106, the path that has write the .nomedia file is recorded.Because multimedia scanning is less than this document folder, system can't preview picture wherein, the path of this document folder is recorded in order to check when needing.
In addition, check the recovery operation of the file that has shielded for needs, but the user can find this document folder then to delete just preview picture wherein of .nomedia file according to its path, also can change .nomedia into .media.
Fig. 2 is the structural representation that filters the system embodiment of picture in the Android of the present invention system.System of the present invention comprises:
Receiving element 201 operates reception multimedia scan request by the user, and multimedia is prepared the scanning document folder according to described scan request.In addition, when mobile phone power-on or when having the event such as SD card plug to occur, system will automatic scan SD card and mobile phone EMS memory on media file, such as audio, video, pictures etc. are put into corresponding information in the database table that defines.
The first judging unit 202, judge whether the folder type that is about to scanning is the file that the user downloads behavior generation, the file that produces according to user behavior name generally comprise save, download etc. at interior text in order to expression, the title of the first judging unit retrieving files folder, if wherein comprise the literal such as save and/or download, then described file is that user behavior is downloaded the picture file folder that produces, but not the 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 the retrieving files name, if the picture size more than 90% is all less than default threshold value, such as 20K, then this document folder is buffer memory picture file folder, otherwise this document folder needs normal scan for non-buffer memory picture file folder.Because the size of buffer memory picture is all very little, generally about 10K, for example the QQ system diagram is designated as about 3K, so 20K is optional threshold value.
Writing unit 205 writes the .nomedia file in buffer memory picture file folder, in order to shield multimedia scanning.The file that comprises the .nomedia file in the Android system is defaulted as the file of shielding media software scanning, therefore think to have added after the .nomedia file in the 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 and preview to the user, so that user selection.
In addition, check the recovery operation of the file that has shielded for needs, but the user can find this document folder then to delete just preview picture wherein of .nomedia file according to its path, 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 portable terminal of Android system, improve multimedia sweep speed, save the scanning response time.Described embodiment only is used 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., all should be included within protection scope of the present invention.
Claims (10)
1. the image filtering method in the Android system is characterized in that, may further comprise the steps:
A. receive the picture scanning request;
B. the type according to file judges whether and will scan, if then turn step D, then turns if not step C;
C. determine whether buffer memory picture file folder according to the file picture size, if then this document folder turns step e for buffer memory picture file folder, if not, then turns step D;
D. the picture in scanning document presss from both sides in the usual way;
E. in described buffer memory picture file folder, put into the .nomedia file.
2. the image filtering method in the Android according to claim 1 system characterized by further comprising step:
F. the described buffer memory picture file of recording step E presss from both sides the path.
3. the image filtering method in the Android according to claim 1 system, it is characterized in that, judge whether store the picture of being downloaded by user behavior in the described file according to the title of described file among the described step B, need scanning if then represent this document.
4. the image filtering method in the Android according to claim 3 system is characterized in that described Folder Name comprises save and/or download, then represents the picture that storage is downloaded by user behavior in this document folder.
5. the image filtering method in the Android according to claim 1 system is characterized in that, the picture size in the file among the described step C 90% or more is all less than default threshold value, and then described file is that the buffer memory picture file presss from both sides.
6. the image filtering system in the Android system comprises:
Receiving element receives the picture scanning request;
The first judging unit judges according to the type of file whether needs scan described file;
The second judging unit judges whether the file that need not scan of being determined by the first judging unit is buffer memory picture file folder;
Scanning element scans the file of the definite needs scanning of the first judging unit and the interior picture of non-buffer memory picture file folder that the second judging unit is determined;
Writing unit writes the .nomedia file in the definite buffer memory picture file folder of the second judging unit.
7. the image filtering system in the Android according to claim 6 system is characterized in that, also comprises: record cell, the described buffer memory picture file folder path of record said write .nomedia file.
8. the image filtering system in the Android according to claim 7 system, it is characterized in that, judge whether store the picture of being downloaded by user behavior in the described file according to the title of described file in described the first judging unit, need scanning if then represent this document.
9. the image filtering method in the Android according to claim 8 system is characterized in that described Folder Name comprises save and/or download, then represents the picture that storage is downloaded by user behavior in this document folder.
10. the image filtering system in the Android according to claim 6 system is characterized in that, described the second judging unit according to the picture size more than 90% in the described file all less than default threshold value, then 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 true CN102970420A (en) | 2013-03-13 |
CN102970420B 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) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103514270A (en) * | 2013-09-13 | 2014-01-15 | 广东欧珀移动通信有限公司 | Multimedia database scanning method and device |
CN103970836A (en) * | 2014-04-13 | 2014-08-06 | 数源科技股份有限公司 | Method for accelerating multimedia scanning process in Android |
WO2016000545A1 (en) * | 2014-06-30 | 2016-01-07 | 北京金山安全软件有限公司 | Junk picture file identification method, apparatus, and electronic device |
WO2016000554A1 (en) * | 2014-06-30 | 2016-01-07 | 北京金山安全软件有限公司 | Cache folder identification method and device |
CN105446980A (en) * | 2014-06-27 | 2016-03-30 | 北京金山安全软件有限公司 | Method and device for identifying picture junk files |
CN106650484A (en) * | 2016-08-31 | 2017-05-10 | 深圳天珑无线科技有限公司 | Picture library content processing method and apparatus, and mobile device |
CN106909855A (en) * | 2017-03-24 | 2017-06-30 | 腾讯科技(深圳)有限公司 | 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 |
EP4002158A1 (en) | 2020-11-11 | 2022-05-25 | Arçelik Anonim Sirketi | Computing device for handling multimedia files and method thereof |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060179153A1 (en) * | 2004-03-22 | 2006-08-10 | Nam-Yul Lee | Streaming based contents distribution network system and methods for splitting, merging and retrieving files |
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 |
-
2012
- 2012-11-07 CN CN201210442858.4A patent/CN102970420B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060179153A1 (en) * | 2004-03-22 | 2006-08-10 | Nam-Yul Lee | Streaming based contents distribution network system and methods for splitting, merging and retrieving files |
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 (1)
Title |
---|
小熊工作室: "掌上软件.nomedia管理工具", 《HTTP://WWW.STUDIOKUMA.COM/HOME.PHP》 * |
Cited By (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103514270B (en) * | 2013-09-13 | 2017-05-31 | 广东欧珀移动通信有限公司 | Multimedia database scan method and device |
CN103514270A (en) * | 2013-09-13 | 2014-01-15 | 广东欧珀移动通信有限公司 | Multimedia database scanning 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 |
CN105446980A (en) * | 2014-06-27 | 2016-03-30 | 北京金山安全软件有限公司 | Method and device for identifying picture junk files |
US10824597B2 (en) | 2014-06-30 | 2020-11-03 | Beijing Kingsoft Internet Security Software Co., Ltd. | Cache folder identification method and device |
CN105446985A (en) * | 2014-06-30 | 2016-03-30 | 北京金山安全软件有限公司 | Cache folder identification method and device |
WO2016000554A1 (en) * | 2014-06-30 | 2016-01-07 | 北京金山安全软件有限公司 | Cache folder identification method and device |
WO2016000545A1 (en) * | 2014-06-30 | 2016-01-07 | 北京金山安全软件有限公司 | Junk picture file identification method, apparatus, and electronic device |
US10838917B2 (en) | 2014-06-30 | 2020-11-17 | Beijing Kingsoft Internet Security Software Co., Ltd. | Junk picture file identification method, apparatus, and electronic device |
CN106650484A (en) * | 2016-08-31 | 2017-05-10 | 深圳天珑无线科技有限公司 | Picture library content processing method and apparatus, and mobile device |
CN106909855A (en) * | 2017-03-24 | 2017-06-30 | 腾讯科技(深圳)有限公司 | File hiding method and device |
WO2018171503A1 (en) * | 2017-03-24 | 2018-09-27 | 腾讯科技(深圳)有限公司 | File hiding method and 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 |
US11481357B2 (en) | 2018-10-08 | 2022-10-25 | Huawei Technologies Co., Ltd. | Album display method, electronic device, and storage medium |
EP4002158A1 (en) | 2020-11-11 | 2022-05-25 | Arçelik Anonim Sirketi | Computing device for handling multimedia files and method thereof |
Also Published As
Publication number | Publication date |
---|---|
CN102970420B (en) | 2014-01-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102970420B (en) | Picture filter method and system in Android system | |
US10871973B2 (en) | Application activation method and apparatus | |
CN108234554B (en) | Cloud file editing method and device | |
CN103577567A (en) | Method for uninstalling application and deleting garbage file in Android system | |
CN102760131B (en) | A kind of methods of exhibiting of network album and system | |
CN102890638B (en) | Upgrade method of STB (set top box) | |
CN110704184B (en) | Application memory optimization method and device and mobile terminal | |
US20170139813A1 (en) | Method and device for checking influence of deleting cache file, and mobile terminal | |
US20140033229A1 (en) | Method and computation node for processing application data | |
CN106649596A (en) | Method and device for displaying folder catalogue in intelligent terminal | |
CN101211367A (en) | Information processor, information processing method, and program | |
CN105205142A (en) | Method, device and mobile terminal for saving log file | |
CN107943501A (en) | Embedded device upgrade method, device, computer equipment and storage medium | |
CN111930703A (en) | Automatic log file capturing method and device and computer equipment | |
CN111212227B (en) | Method, device and equipment for configuring video resolution of camera and storage medium | |
CN102331956A (en) | User data backup method and device | |
EP2479962A1 (en) | Method and mobile terminal for recycling short messages | |
CN105700903A (en) | User terminal upgrading method and user terminal | |
CN106484779A (en) | File operation method and device | |
CN110825600B (en) | Page information processing method, server and page display device | |
CN102346696B (en) | A kind of file access pattern method and device | |
KR101085681B1 (en) | System and method for recovering data in mobile terminal | |
CN103136234A (en) | Data processing method and data processing device | |
CN106528658B (en) | The lookup method and device of application file | |
EP2413233B1 (en) | Android phone with an application for content display |
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 |