开发者

Getting an array list of all images on SD card

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜