开发者

Getting an array list of all images on SD card

开发者 https://www.devze.com 2023-02-18 04:26 出处:网络
Can someo开发者_如何学Pythonne give me a hint how to get an array list of all images on my SD card?You need to query the Image media store to retrieve the data.

Can someo开发者_如何学Pythonne give me a hint how to get an array list of all images on my SD card?


You need to query the Image media store to retrieve the data.

Cursor c = managedQuery(MediaStore.Images.Media.EXTERNAL_CONTENT_URI,
                    new String[] { /*columns you want */, null, null, null);
c.moveToFirst();
while(!c.isLast()) {
// add some data to your array list
}
0

精彩评论

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