Which method is used to close an activity?
Which method is used to close an activity?
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.
B. Finish()