PdfPrep.com

For example, we have a file in our assets folder app/src/main/assets/sample_teas.json. To get an

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(
B . raw.sample_teas);
C . InputStream input = context.getAssets().open("sample_teas.json");
D . InputStream input = context.getResources().getAssets().open ("sample_teas.json");

Answer: B

Exit mobile version