【发布时间】:2016-08-09 12:14:44
【问题描述】:
有没有办法在代号一个项目中获取src文件夹中的所有文件名(通常在theme.res文件旁边)?
我尝试使用:
try {
Resources theme = Resources.openLayered("/theme");
return theme.getImageResourceNames();
} catch (IOException e) {
e.printStackTrace();
}
但是,这似乎只返回 .res 文件本身中的资源图像。我也试过了
Storage.getInstance().listEntries();
和
FileSystemStorage.getInstance().listFiles(FileSystemStorage.getInstance().getAppHomePath());
虽然这些似乎返回设备上的存储空间,而不是应用程序中嵌入的存储空间。
【问题讨论】:
标签: codenameone