Buscar

What is the correct order of the following methods in an Android Activity lifecycle? The onCreate() method is called first and is executed only on...

What is the correct order of the following methods in an Android Activity lifecycle?

The onCreate() method is called first and is executed only once for each Activity.
The onStart() method is called after onCreate() and is executed every time the Activity becomes visible to the user.
The onResume() method is called after onStart() and is executed every time the Activity is resumed from a paused state.
The onRestart() method is called after onStop() and is executed every time the Activity is restarted after being stopped.
The onInitialize() method is not a part of the Android Activity lifecycle.
a. 1, 2, 3, 4, 5
b. 5, 4, 3, 2, 1
c. 2, 1, 3, 4, 5
d. 1, 3, 2, 4, 5

Essa pergunta também está no material:

Exe_02
3 pág.

Programação para Dispositivos Móveis Universidade Estácio de SáUniversidade Estácio de Sá

💡 1 Resposta

User badge image

Ed Verified user icon

A ordem correta dos métodos do ciclo de vida de uma Activity no Android é:
a. onCreate(), onStart(), onResume(), onRestart()
Portanto, a alternativa correta é a letra "a".

0
Dislike0

✏️ Responder

SetasNegritoItálicoSublinhadoTachadoCitaçãoCódigoLista numeradaLista com marcadoresSubscritoSobrescritoDiminuir recuoAumentar recuoCor da fonteCor de fundoAlinhamentoLimparInserir linkImagemFórmula

Para escrever sua resposta aqui, entre ou crie uma conta

User badge image

Outros materiais