ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 75 - Associate Android Developer discussion

Report
Export

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.
InputStream input = context.openRawResource(R.raw.sample_teas);
Answers
A.
InputStream input = context.openRawResource(R.raw.sample_teas);
B.
InputStream input = context.getRawResource(R.raw.sample_teas);
Answers
B.
InputStream input = context.getRawResource(R.raw.sample_teas);
C.
InputStream input = context.getResources().openRawResource(R.raw.sample_teas);
Answers
C.
InputStream input = context.getResources().openRawResource(R.raw.sample_teas);
Suggested answer: C
asked 18/09/2024
Ryan John Ricafranca
46 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first