2

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.

Gavin
  • 2,214
  • 2
  • 18
  • 26
  • 2
    there is something wrong with your lock, not with android lifecycle. Post everything related with this lock, and we will help you. – Paulo Oct 26 '16 at 19:36
  • Good spot Paulo & Onik. I was looking in entirely the wrong place. For some reason there was a while(true) loop around thread.join in renderview.pause. Removing it fixed the issue. I'm also going to go back to the tutorial I followed months ago and see why it's even there to begin with. – Gavin Oct 26 '16 at 19:48

1 Answers1

0

onResume was fine.

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

Gavin
  • 2,214
  • 2
  • 18
  • 26