开发者

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

开发者 https://www.devze.com 2022-12-22 13:06 出处:网络
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.getExt

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

精彩评论

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