Avoid images to be processed by the thumbnail service

旧巷老猫 提交于 2019-12-05 06:15:17

问题


I am building an application that downloads images from the web to the SD Card and then displays them conveniently. The application also generates thumbnails for those pictures. Problem is that those images and their generated thumbnails are indexed by the Media service and for instance appear in the gallery.

Furthermore, that system service consumes lots of CPU when generating its own thumbnails.

Is there a way to tell that system service that I don't want my pictures to appear in the gallery and that it should not generate thumbnails for my images?


回答1:


Put an empty .nomedia file in the directory where your images reside.



来源:https://stackoverflow.com/questions/4110774/avoid-images-to-be-processed-by-the-thumbnail-service

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!