public class Loading extends Activity {
 ProgressDialog myProgressDialog;
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.loading);
       
        myProgressDialog = ProgressDialog.show(Loading.this, "로딩중", "로딩중엔 잠시만 기다려 주십시오...", true);

       new Thread() {
         public void run() {
           try {
             sleep(5000);
             Toast.makeText(Loading.this, "dddd", Toast.LENGTH_SHORT).show();

              startActivity(new Intent(Loading.this,Using.class));
           } catch (Exception e) {
           }
           myProgressDialog.dismiss();
         }
       }.start();
    }
}

 

소스는 위와 같은데요  다이얼로그 안쓰고 startActivity만하면 잘 되는데 이렇게 하면 되질 않네요ㅜㅜ

위에 문제가 있나요??ㅠㅠ