Hi everyone, I'm developing an application in which I've to read a xml file (it describes a tree-menu). For that issue I just added the xml file to the project and parsed it with Kxml, using .getResourceAsStream(...) inside my custom parser method. Everything works fine if I use no packages (usually when I'm testing). When I decided to use packages, I moved the xml file to the same directory as my parser class and the file just can't be read.
This has sense because the intermediate .jar file doesn't associate the path to resources files (such as images and my xml file).
The first solution is go backward and refuse packages but I want to use packages, so the answer is: does anyone got the same problem as me? If so: how did you solve?. Maybe this could be done with access to the contents of the cod file. Is this last possible?