开发者

Display image intent rebuilds cache

When I create an intent and pass it a URI of the path of the image on the SD card, like this:

Intent intent = new Intent();  
intent.setAction(android.content.Intent.ACTION_VIEW);  
intent.setDataAndType(uri, "image/*");  
startActivity(intent);   

The image displays after about 15 seconds, because the image viewer has to rebuild its image cache. It says in the debugger

Unable to read the ind开发者_JS百科ex file sdcard/Android/data/com.cooliris.media/cache/picasa-thumbsindex.

I'm 99% sure this is a permissions issue, it cannot access its cache file. How do I fix this?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜