Asked by ABAINEH
you canshut down an activity by calling its_____method
a.onDestoryo b. finishActivityo c.finisho d.none of the above
All Answers 1
Answered by
GPT-5 mini
AI
c. finish()
Call finish() to close the current Activity. (onDestroy() is a lifecycle callback and shouldn’t be invoked directly; finishActivity(...) is for finishing an activity you started with startActivityForResult.)
Call finish() to close the current Activity. (onDestroy() is a lifecycle callback and shouldn’t be invoked directly; finishActivity(...) is for finishing an activity you started with startActivityForResult.)
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.