I wrote a lib and packed it to JAR file.
In the file,there are some xml file and I need parse the file in the code,
As the lib Class is Lib
I tried this
the other non-Android projects run correctly , they can obtain the resources needed, but when an Android project call the lib, it failed. I will also try to put that xml file in Android project code package, and then use this method to access, still not result,the path is exactly right, but the stream I got is null.
anyone can tell me why?
the lib contains only one method,
you can call getText("Gansu"), will return 甘南
the lib and the test code in the attachment
Forgive me for bad English