Get all file names in src folder, codenameone project -


is there way file names in src folder in codenameone project (usually next theme.res file)?

i tried using:

    try {         resources theme = resources.openlayered("/theme");         return theme.getimageresourcenames();     } catch (ioexception e) {         e.printstacktrace();     } 

however, seems return resource images within .res file itself. tried

storage.getinstance().listentries(); 

and

filesystemstorage.getinstance().listfiles(filesystemstorage.getinstance().getapphomepath()); 

though these seem return storage on device, not embedded in app.

no , shouldn't that. "files" there translated platform native representation means not act in portable way in simulator , might run weird "on-device" issues.

you can create list of files in text file during build , save there use reference i'd rethink idea. if ask question describing trying achieve might able offer better approach e.g. use tar package html files in html directory can device portable web browsing experience.


Comments