What’s the difference between getResourceAsStream and getAssets(), which method should I use more?
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? java android jvm