Search code examples
javaandroidandroid-lifecycleonresumeonpause

Android onResume() not being called when returning to an Activity


onResume runs at startup as per the app lifecycle, but not when the activity is returned to after pausing:

enter image description here

Where is meant to call onResume at this stage? the onResume being overriden does not run by itself either.


Solution

  • onResume was fine.

    onPause contained a function with an infinite loop which should have at least contained a break statement.