public class StartView extends Activity implements OnClickListener  {
 Button Newbtn;
 Button Continue;
 ProgressDialog progressDialog = null;
 
 @Override
 protected void onCreate(Bundle cicle) {
  super.onCreate(cicle);
  setContentView(R.layout.level);
  
  Newbtn = (Button)findViewById(R.id.newgame);
  Newbtn.setOnClickListener(this);
  Continue = (Button)findViewById(R.id.Continue);
  Continue.setOnClickListener(this);
 }
 public void onClick(View v) {
  // TODO Auto-generated method stub
  switch(v.getId()) {
  case R.id.newgame:
   progressDialog = ProgressDialog.show(StartView.this, "", "Please wait while loading...", true);
   new Thread() {
    public void run() {
     try {
      sleep(3000);
     } catch(Exception e) {
      }
     progressDialog.dismiss(); 
    }
   }.start();
   Intent i = new Intent(this, Start_Game.class);
   startActivity(i);
   break;
  }
 }
}
위에소스에서 프로세스다이얼로그가 3초뒤에 사라지고 Start_Game 클래스을 띄우게 하는 방법은 없나요??

Start_Game 클래스 정보를 읽어올 동안 프로세스 다이얼로그를 띄우고 정보 다 불러오면 다이얼로그 화면은 없애고

Start_Game 클래스를 보여주게 어떻게 해야되나요???
profile