I put my files in the directory assets. how do I get them?
I tried following the instructions but have not worked:
File f = new File("/data/data/ant.BrowserX/files/" + pagCorrente + ".html");
File f = new File("file:///android_asset/" + pagCorrente + ".html");
there are no errors but running I can not access the file. How do I access the directory “assets”?
EDIT
thanks for the trick. I have the problem that I use a BufferedReader to read the file, and initialize it so, and not with an InputStream.
in = new BufferedReader(new FileReader(f));
how could I do?
I know you can use this to get a inputstream :
So probably you can use: