버튼을 생성하시는거면..
for(~~~~~){
button[i][j] = new Button( context );
button[i][j].setText("버튼 "+i);
layout.addView(button[i][j]);
}
이런식으로 추가하시면 될듯합니다