쓰레드 개념이 없어서 어떻게 하는지 잘 모르겠습니다..

ProgressDialog.show(context, "","로딩중..");
우선 이걸 띄우고

intent = new Intent(AppSetting.this, CostTable.class);  
startActivity(intent);
이걸 실행하고,

저 액티비티 실행이 다 된뒤에 다이얼로그를 닫으려 합니다.

어떤식으로 구현해야 하나요?