- List<String> getFilePaths(String path) {
- List<String> fileNames = null;
- try {
- fileNames = Arrays.asList(getAssets().list(path));
- } catch (IOException e) {
- e.printStackTrace();
- }
- return fileNames;
- }
- //该片段来自于http://www.codesnippet.cn/detail/261120137499.html
来源: http://www.codesnippet.cn/detail/261120137499.html