Tag Archives: Media Scanner

Defy+CM10 图库为空和无法播放音乐

很久没有用手机听音乐了,最近在整理电脑上的MP3,想把整理完了的放在手机上再听一遍,结果常用的MiniLyrics死活都无法播放音乐,不管是把MP3放在SD卡的Albums还是Music文件夹都不行,试了系统自带的Apollo也不行。

后来想起来似乎图库也无法找到突破,不过一般都用快图浏览(主要就是因为快图浏览可以指定文件夹),猜测可能和媒体存储(Media Storage)有关,试了一下清除数据,清除之后Media Scanner是需要事件来触发的,比如重启或者插入SD卡,CM10上好像没找到移除SD卡的选项(反正Defy也不支持热插拔SD卡),Play市场下了一个Rescan SD,但是清除之后重新扫描也没啥用。试着禁用了媒体存储,MiniLyrics显示正在扫描SD卡,但是卡住了没反应,而且铃声都用不了了。

没办法只好放狗,发现答案也是五花八门,有人说要放内存,也有人说是ICS以来的BUG,最后还是在XDA上CM10的那个帖子上找到了答案:http://forum.xda-developers.com/showpost.php?p=29668749&postcount=3529

About the empty gallery bug… It is not sd-card related as someone of you guessed. This is issue of jelly bean in general.
New Media scanner is crashing on some files that are damaged in its point of view and stops scanning without updating Gallery. One of known examples of these “damaged” files are photos taken with Camera 360. My solution was :
1. Move all photos with name starting with C360* to a different folder.
2. Put .nomedia file in that directory, so it won’t be scanned. If this bug is fixed you can bring back these photos just by moving them back to main folder.
3. Delete Camera360 folder from sd card just in case, because I don’t use this crappy software (Picasa had troubles with its files too). It holds some photos too in it’s sub folders.
4.force media scanner update using SD Rescanner from Play Store. You can accomplish this by rebooting too I think or just wait.. Your call.

答案原来是相机360。。。按照他说的可以解决问题,可是鉴于相机360有时候拍的照片比较讨好,比如说HDR模式(Sigh,俺什么时候变得这么庸俗了???),还想保留一下这个应用,在照片文件夹下面添加.noname文件时可行的(.noname可以避过Media Scanner,当然代价就是图片看不到这些图片了),问题是他自己还有一些数据文件位于/sdcard/Camera360下面,每次程序启动的时候似乎都回去更新这个文件夹,添加的.noname文件会被他删掉,真是恶心,再想想这程序启动的速度,果断删除之,这下清净了,图库和音乐都能用了。

后来看了一下,还有某些国内应用也有这个问题,有人怀疑是exif信息,俺怀疑里头还有别的道道,唉,国内软件还是要少用啊。。。

如果非得用相机360的话那就只能自带媒体扫描的应用了,比如快图浏览和天天动听