protected Dialog onCreateDialog(int id){

        LayoutInflater inflater = (LayoutInflater) CalActivity.this.getSystemService(LAYOUT_INFLATER_SERVICE);   

        View layout = inflater.inflate(R.layout.calendar_dialog,(ViewGroup) findViewById(R.id.cal_dia_gv));   

        GridView cal_dia_gv = (GridView) layout.findViewById(R.id.cal_dia_gv); 

        

        Url_ImageAdapter Cal_dia_imgAdapter = new Url_ImageAdapter(CalActivity.this, dia_Bmps);

        cal_dia_gv.setAdapter(Cal_dia_imgAdapter);

        AlertDialog.Builder builder = new AlertDialog.Builder(CalActivity.this);

builder.setTitle(DateCode + "'s Beta Games~!!");

builder.setNeutralButton("Close", null);

        builder.setView(layout);

        Log.i("dialog", "building complete");

return builder.create();

}

protected void onPrepareDialog(int id, Dialog dialog){

LayoutInflater inflater = (LayoutInflater) CalActivity.this.getSystemService(LAYOUT_INFLATER_SERVICE);   

        View layout = inflater.inflate(R.layout.calendar_dialog,(ViewGroup) findViewById(R.id.cal_dia_gv));   

        GridView cal_dia_gv = (GridView) layout.findViewById(R.id.cal_dia_gv); 

        

        Url_ImageAdapter Cal_dia_imgAdapter = new Url_ImageAdapter(CalActivity.this, dia_Bmps);

        cal_dia_gv.setAdapter(Cal_dia_imgAdapter);

        AlertDialog.Builder builder = new AlertDialog.Builder(CalActivity.this);

        Log.i("dt", DateCode);

        builder.setTitle(DateCode + "'s Beta Games~!!");

        builder.setView(layout);

Log.i("onPrepared", "[onPrepareDialog] Called");

}


이렇게 onCreateDialog 과 onPrepareDialog 함수를 짜서 내용물은 변경되는데요,

Log.i 로 "DateCode" 값을 찍어보면 매 실행마다 제가 의도한 값이 들어오는 건 확인이 됩니다.


그러나 builder.setTitle(DateCode + "'s Beta Games~!!"); 이게 작동을 안 하는지 제목은 변하질 않더라구요.

내용물도 다 변하고 로그로 테스트 해 본 결과도 맞는데..


타이틀을 onPrepareDialog 에서 변경시키는 방법이 없는지 궁금합니다.