I got a simple?! Problem that I can't solve...
I'm trying to access a File in the assets folder like this:
File file = new File("file:///android_asset/test/sample.pdf");
But the file is not available because this
System.out.println("#### "+file.exists());
returns false.
Now things are getting strange.. if im using the AssetsManager and debug that folder with
for(String asset : getAssets().list("test")) {
System.out.println("### FOUND ASSET " +asset);
}
I'm getting a positive result. (The sample.pdf is displayed).
Can someone tell me what I'm doing wrong? I have no clue at all.