[英]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() . 要获取代表SD卡文件系统根目录的File对象的句柄,可以使用Environment.getExternalStorageDirectory() 。
Listing the files in a directory is relatively straight forward using the File object's listFiles() method. 使用File对象的listFiles()方法,相对简单地列出目录中的文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.