简体   繁体   中英

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

如何获取SD卡中的最后一张图像(捕获的最后一张)?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM