避免图像要由缩略图服务处理 [英] Avoid images to be processed by the thumbnail service

查看:159
本文介绍了避免图像要由缩略图服务处理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我建立了从网络到SD卡下载图像的应用程序,然后方便地显示出来。该应用程序还生成缩略图那些照片。问题是,这些图像和它们所产生的缩略图是由媒体服务编入索引,例如出现在画廊。

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.

此外,产生自己的缩略图时该系统服务会消耗大量的CPU。

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?

推荐答案

把一个空的 .nomedia 文件在您的图片所在的目录。

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

这篇关于避免图像要由缩略图服务处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆