Google News
logo
Android - Quiz(MCQ)
How can we kill an activity in android?
A)
Using finish() method
B)
Using finishActivity(int requestCode)
C)
Both (A) and (B)
D)
Neither (A) nor (B)

Correct Answer :   Both (a) and (b)


Explanation : The finish() method is used to close the activity. Whereas the finishActivity(int requestCode) also closes the activity with requestCode.

Advertisement