Log显示是
01-21 20:42:56.519 1361 1410 D skia : --- SkImageDecoder::Factory returned null
01-21 20:42:56.519 1361 1410 W System.err: java.io.IOException: BufferedInputStream is closed
01-21 20:42:56.520 1361 1410 W System.err: at java.io.BufferedInputStream.streamClosed(BufferedInputStream.java:125)
01-21 20:42:56.520 1361 1410 W System.err: at java.io.BufferedInputStream.read(BufferedInputStream.java:265)
查看了机器中data/data/com.android.providers.media/databases/目录下,只有internal.db文件,里面的视图 images里面是空的;没有external.db文件
应该是数据没有存储到external.db中,所以图片资源是空导致
而导致.db文件为空的原因是缺少WRITE_EXTERNAL_STORAGE权限
packages/screensavers/PhotoTable/AndroidManifest.xml
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />