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

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”);

Download Printable PDF. VALID exam to help you PASS.

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.