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

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

To get an InputStream for reading it, from out Context context, we can do this:
A . val input = context!!.openRawResource(
B . raw.sample_teas)
C . val input = context!!.getRawResource(
D . raw.sample_teas)
E . val input = context!!.resources.openRawResource(
F . raw.sample_teas)

Answer: C

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments