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)
For example, we have a file in our raw folder app/src/main/res/raw/sample_teas.json. To get an InputStream for reading i
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
For example, we have a file in our raw folder app/src/main/res/raw/sample_teas.json. To get an InputStream for reading i
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!