This question is with regards to this one. Since it is a specific question I moved that question by itself here. I have tried creating a text file, \"foo.txt\", an read it i
I'm with CommonsWare in that case (that's the safe side :) ), but it should be:
AssetManager assetManager = getResources().getAssets();
InputStream inputStream = null;
try {
inputStream = assetManager.open("foo.txt");
if ( inputStream != null)
Log.d(TAG, "It worked!");
} catch (IOException e) {
e.printStackTrace();
}
Do not use InputStream is = assetManager.open("assets/foo.txt");