How to use onResume()?

后端 未结 8 1797
慢半拍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 18:02

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

    To use this method, do this:

    @Override
    public void onResume(){
        super.onResume();
        // put your code here...
    
    }
    

提交回复
热议问题