I have a running game thread (lets call it 'A') that will call a new activity to start from within it ('B'). The game thread object itself is declared and run from another activity 'C' though so how can I pass a Bundle from 'A' to 'B'? An intent is used in 'A' to launch 'B' but would a different method be applicable?
I cannot just create an object of type 'B' in 'A' and pass the information through a method because the intent will be creating a different instance of 'B'.
I tried pausing the running 'A' thread but calling notifyAll(), and .finish() from the 'B' activity but that seems to pause the thread without switching to the new activity 'B' and so the game just stops. Is there a correct control structure I should be using?
My current thought is to pass a Bundle from 'A' somehow to 'B' and then destroy 'A'. Then I would create a new thread of the same type as 'A' and restore its state to that saved in the Bundle. But because I can't think how to achieve this passing of information from the thread to the activity I am struggling.
I hope this wasnt too confusing! Many thanks