-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainActivity.kt
39 lines (31 loc) · 880 Bytes
/
MainActivity.kt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package com.example.myapplication
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.scrollview_13)
Log.d("life_cycle", "onCreate")
}
override fun onStart() {
super.onStart()
Log.d("life_cycle", "onStart")
}
override fun onPostResume() {
super.onPostResume()
Log.d("life_cycle", "onResume")
}
override fun onPause() {
super.onPause()
Log.d("life_cycle", "onPause")
}
override fun onStop() {
super.onStop()
Log.d("life_cycle", "onStop")
}
override fun onDestroy() {
super.onDestroy()
Log.d("life_cycle", "onDestroy")
}
}