1

Giving local xml file as an input to a java class in android

view story
linux-howto

http://stackoverflow.com – I have a local xml file called coffee.xml inside assets folder. I have the following structure: 1 activity called Game.java 1 class called Units.java 1 class called MyUnit.java which extends Units.java Now, I'm trying to give the coffee.xml file as an input in the MyUnits.java file. I saw many solutions like using getResources() OR classLoader() etc... Nothing works. I also tried giving direct path "C:\Users\MyName\Workspace ..... coffee.xml" That too doesn't work. I am totally confused on how to give this file as an input. Please advise. Thanks! (stack overflow is getting annoying w (HowTos)