开发者

Android: can i update automatically a GalleryView?

开发者 https://www.devze.com 2023-03-28 11:41 出处:网络
I have a gallery that shows images from the sdcard; i would like to automatically populate it when the user adds new images in sdcard.

I have a gallery that shows images from the sdcard; i would like to automatically populate it when the user adds new images in sdcard. Is there a way to do it?

Actually i make a loop in the filesystem to select image names; i don't use the ContentProvider because i've seen that if the user does not go to t开发者_StackOverflowhe Gallery app, thumbnails are not refreshed.


You can use Handler/Thread to run it automatically

0

精彩评论

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