@Override
public void surfaceCreated(SurfaceHolder arg0) {
if(_thread.state==GameThread.PAUSED){
//When game is opened again in the Android OS
_thread = new GameThread(getHolder(), _context, new Handler(),this);
_thread.start();
}else{
//creating the game Thread for the first time
if(!_thread.isAlive()) { //이렇게 처리해줘도 오류남 ㅠㅠ
_thread.start(); //이부분이 에러남
}
}
}
홈키로 나왓다가 다시 들어갈때 쓰레드중복실행으로 죽어버리네요..
그래서 isalive()조건을 줘도 소용이읍네요..
어떻게 처리해야할까요..