How to use onResume()?

后端 未结 8 1792
慢半拍i
慢半拍i 2020-12-04 17:21

Can anyone give me an example that uses onResume() in Android?

Also, if I want to restart the activity at the end of the execution of another, which met

8条回答
  •  离开以前
    2020-12-04 17:46

    KOTLIN

    Any Activity that restarts has its onResume() method executed first.

    To use this method, do this:

    override fun onResume() {
            super.onResume()
            // your code here
        }
    

提交回复
热议问题