Activity Lifecycle Flashcards

1
Q

onCreate

A

In the creation state, activities load the static user interface elements and allocate system resources such as the display device, network device, and other resources required for the application.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

onStart

A

After creation by the onCreate method, an activity enters the started state. It becomes visible and ready to handle user interaction.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

onResume

A

In the resumed state, all actions are performed, such as user input, drawing new user interface elements according to user input, and so on.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

onPause

A

In the paused state, the application is taken to the background, or another application is started and brought to the front.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

onStop

A

In the stopped state, the application is totally invisible and in a sleeping state.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

onDestroy

A

The destroyed state means that all processes are killed and all device resources released.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

onSaveInstanceState

A

In this function it is possible to save activity state ina Bundle to be restored in the onCreate(Bundle) method

How well did you know this?
1
Not at all
2
3
4
5
Perfectly