List of questions
Related questions
Question 13 - Associate Android Developer discussion
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(R.raw.sample_teas)
B.
val input = context!!.getRawResource(R.raw.sample_teas)
C.
val input = context!!.resources.openRawResource(R.raw.sample_teas)
Your answer:
0 comments
Sorted by
Leave a comment first