Act1Activity.java  파일


public class Act1 extends Activity {

	private MyView view = null;
	public static boolean allClear = false;
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        
       		try {
			this.view = new MyView(this, null);
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
        
        this.view.setFocusable(true);
        this.view.setFocusableInTouchMode(true);
        
        setContentView(view);
	if(allClear){
		finish();
	}
    }
}


MyView.java 파일

class MyView extends view{

	class MyThread extends Thread {

		public void run() {
			~~
			if(~~){
				Act1.allClear = true;
			}
			~~
		}
	}
}


이런식으로 쓰레드에서 어떤 조건을 만족하면 static 변수를 이용해서
액티비티를 종료시킬려고 합니다.
그런데 이렇게 하면 정상적으로 실행이 안되네요...

뭔가 다른 확실한 방법이 없을까요>?