I have created a folder called “diagrams” in my application. In this folder there are xml files. What I would like to achieve is when I run my application those xml files will be populated in the listview. Basically my application package name is com.my.application.diagrams
I have tried to access the folder new File(“/data/app/com.my.application.diagrams/”);
it shows the directory but the xml files cannot be seen. If I put the xml files somewhere else for example in sdcard and direct use the path /sdcard/ I can see the xml file list. Where should I place those xml files in my application and what path name I should use to access them?
You can put your xml in Asset Directory or create folder under Assets and put it there.
To list files from Asset folder use following code