How to get onPause in the override methods in Android Studio

  android

I am new to android development, and I was learning about the life cycles of an activity.
I was trying to override the onPause method. But I searched everywhere, updated IDE, plugins and any updates necessary but I still could not find it. All the others are there(onCreate, onStart, onResume, onStop and onDestroy) only one am missing is the onPause.enter image description here

Any help on how to get it.

it shows an error when I try to write the code manually

Source: Android Questions

LEAVE A COMMENT