//다이얼로그 생성
    protected Dialog onCreateDialog(int id) 
    {
        Dialog dialog = null;
 
        switch(id) {
            // ID_2BUTTON_DIALOG 로 정의된 0 번 ID 로 대화상자를 생성해야하는 경우
            case ID_2BUTTON_DIALOG : {
            if(cnt==2){
                // AlertDialog 를 생성해주는 AlertDialog.Builder 객체를 생성한다.
                new AlertDialog.Builder(this)
                // 대화상자의 제목을 설정한다.
                .setTitle("알림")
                // 대화상자에 출력될 메세지 내용을 적는다.
                .setMessage("선택하신 위치를 설정 하시겠습니까?")
                // 대화상자가 Back 버튼으로 닫히지 않도록 설정한다.
                .setCancelable(false)
                // 좌측(Positive Button) 에 출력될 버튼을 설정한다.
                // 해당 버튼을 클릭했을 때 처리할 문장을 리스너로 구성해준다.
                .setPositiveButton("확인", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
                        // Activity 에서 대화상자를 닫도록 메소드를 호출한다.
                    //TipsDrawableActivity.this.dismissDialog(ID_2BUTTON_DIALOG);
                    Intent intent = new Intent();
intent.setClass(TipsDrawableActivity.this, tall.class);
startActivity(intent);
                    
}
                }) 
 
                // 우측(Negative Button) 에 출력될 버튼을 설정한다.
                // 해당 버튼을 클릭했을 때 처리할 문장을 리스너로 구성해준다.
                .setNegativeButton("취소", new DialogInterface.OnClickListener() {
                @Override
                    public void onClick(DialogInterface dialog, int id) {
                        // 대화상자를 취소하여 닫는다.
                        dialog.cancel();
                    }
                })
                .show();
            }
                // 위에서 설정한 값을 이용하여 대화상자를 생성한다.
                //dialog = builder.create();
                
                break;
            }
            default :
                dialog = null;
                
        }
        return dialog;
    }


저기 줄친 부분이 들어가면 자꾸 오류가 생기면서 꺼지더라구요..
어떻게 해야 되는지 몰라서.. 답답해서 올립니다.ㅠㅠ
꼭좀 답변 부탁드려요!!ㅠㅠ