For example, we have a file in our assets folder app/src/main/assets/sample_teas.json.
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 do this:
A . val input = context!!.resources.openRawResource(R.raw.sample_teas)
B . val input = context!!.assets.open("sample_teas.json")
C . val input = context!!.resources.assets.open("sample_teas.json")
Answer: B
Latest Associate Android Developer Dumps Valid Version with 107 Q&As
Latest And Valid Q&A | Instant Download | Once Fail, Full Refund
Subscribe
Login
0 Comments
Inline Feedbacks
View all comments