AND-401 Exam QuestionsBrowse all questions from this exam

AND-401 Exam - Question 23


Which method is used to close an activity?

Show Answer
Correct Answer: B

To close an activity in an Android application, the method used is 'finish()'. It signals the OS to close the current activity. The 'destroy()', 'stop()', and 'close()' methods do not serve this purpose; 'destroy()' is called by the system when it needs to reclaim resources, 'stop()' pauses the activity but does not close it, and 'close()' is not a recognized method in this context.

Discussion

1 comment
Sign in to comment
MmadiOption: B
Dec 31, 2022

B. Finish()