Java tutorial
//package com.java2s; //License from project: Apache License import java.io.File; import java.util.ArrayList; import java.util.List; import android.os.Environment; public class Main { public static List<String> ListFile() { File file = new File(Environment.getExternalStorageDirectory() + "/rectPhoto/"); File[] f = file.listFiles(); List<String> datas = new ArrayList<String>(); // String Path[] = new String[f.length]; for (int i = 0; i < f.length; i++) { // Path[i] = f[i].getPath(); datas.add(f[i].getPath()); } return datas; } }