onResume runs at startup as per the app lifecycle, but not when the activity is returned to after pausing:
Where is meant to call onResume at this stage? the onResume being overriden does not run by itself either.
onResume was fine.
onPause contained a function with an infinite loop which should have at least contained a break statement.