Computer Science, asked by fahadsbhai12, 10 months ago

When only onDestroy is called for an activity without onPause() and onStop()?

Answers

Answered by tmohanty521
0

Answer:

onPause() and onStop() will not be invoked if finish() is called from within the onCreate() method. This might occur, for example, if you detect an error during onCreate() and call finish() as a result. In such a case, though, any cleanup you expected to be done in onPause() and onStop() will not be executed.

Explanation:

Mark as brainliest answer please.

Answered by Anonymous
2

Answer:

onpause() and onStop() will not be invoked if finish() is called from within the onCreate() method.

Hope it will be helpful :)

Similar questions