As expected the moment I left a computer I figured out what the bug was. Within 10 minutes of getting onto my computer I had solved it.
Inside the xml layout files I created a display. Parts of this display were replaced during the on onResume. android did not like this. What I should have been doing was not creating the custom parts in the xml file and then adding them during onResume.
Simple fix, wishing it had not taken me hours to get to it. And wow it is boring hitting the 7 key on the numeric pad to rotate the android emulator orientation hundreds of times to see there are other problems.