InputStream in = getClass().getResourceAsStream("/assets/file.txt");
InputStream in_2 = getAssets().open("file.txt");
I would like to know the difference between these two methods. Will getAssets() perform better for android?
InputStream in = getClass().getResourceAsStream("/assets/file.txt");
InputStream in_2 = getAssets().open("file.txt");
I would like to know the difference between these two methods. Will getAssets() perform better for android?