AXISHK
asked on
Java Code Enqury
#1 After running the "setContentView(gameView); " inside the onCreate method of GameActivity.java, does its onResume() method will be run to start the in order to call the resume() method inside TDView.java ?
#2 Inside resume() method in TDView, does it create a thread of itself and run the code under "run" method ?
gameThread = new Thread(this);
gameThread.start();
#3 What the purpose of "join" under pause method of TDView ? Does it remove the current thread after all the codes under method "run" have been executed ?
gameThread.join();
GameActivity.java
TDView.java
#2 Inside resume() method in TDView, does it create a thread of itself and run the code under "run" method ?
gameThread = new Thread(this);
gameThread.start();
#3 What the purpose of "join" under pause method of TDView ? Does it remove the current thread after all the codes under method "run" have been executed ?
gameThread.join();
GameActivity.java
TDView.java
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.