For example, we have a file in our assets folder app/src/main/assets/sample_teas.json. To get an InputStream for reading it, from out Context context, we can try doing this:
A. InputStream input = context.getResources().openRawResource(R.raw.sample_teas);
B. InputStream input = context.getAssets().open(“sample_teas.json”);
C. InputStream input = context.getResources().getAssets().open(“sample_teas.json”);