What is Activity.finish() method doing exactly?

前端 未结 12 1931
别那么骄傲
别那么骄傲 2020-11-22 16:16

I\'m developing android applications for a while, and followed a lot of posts about activity life cycle, and application\'s life cycle.

I know Activity.finish

12条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-22 16:43

    Finish() method will destroy the current activity. You can use this method in cases when you dont want this activity to load again and again when the user presses back button. Basically it clears the activity from the.current stack.

提交回复
热议问题