开发者

Android Development: Find every picture on SD?

开发者 https://www.devze.com 2023-02-11 11:29 出处:网络
Is there a way to get all let say pictures (*.jpg) and list them in a listview /adapter? And find all pictures within subfolders too.

Is there a way to get all let say pictures (*.jpg) and list them in a listview /adapter? And find all pictures within subfolders too.

Thank you! Regar开发者_运维百科ds user564612


You don't need to do that... MediaStore does it for you.

What you'd need to do is query the MediaStore content provider, probably with MediaStore.Images.Media.query()

0

精彩评论

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