开发者

Display image intent rebuilds cache

开发者 https://www.devze.com 2023-03-28 03:34 出处:网络
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();

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

精彩评论

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