still fails with the same exception. These works if I build in eclipse though. (Export unity project to eclipse and build there). I don’t want to do that however, since they say the procedure is a bit of a hack and I experience losing some unity features (like streaming audio).
I downloaded a tool to unpack an apk and it turns out that unity strips out non-code stuff out of jars. So if you have images on a jar and put the jar into unity, the output apk will not have the images inside the jar. So if you have jars with images (like ad jars or the facebook jar) most likely those will not work out of the box and you will have to write a way to read images from inside unity and push them out to your java jar.
At this point, getResource() or getResourceAsStream() is no longer the issue as there will be no point (for me, at least) to use the said function if the resource to load doesn’t even exists.
Edit:
We’ll just have to export the project to eclipse and if anything breaks, create our own implementation.