开发者

How to retrieve the last image from an SDcard in Android?

How can I retrieve开发者_运维百科 the last image in the SDcard (last one captured)?


To get a handle to the File object representing the root of the SD card's filesystem you can use, Environment.getExternalStorageDirectory().

Listing the files in a directory is relatively straight forward using the File object's listFiles() method.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜