package com.androidside;

       
        int i = (int)(Math.random() * 10);
        int resID = getResources().getIdentifier("com.androidside:id/Button" + i, null, null);

      ((Button)findViewById(resID)).setText("" +i);
        
   
패키지는 com.androidside
그리고 xml 상에

   <Button
android:text="@+id/Button01"
android:id="@+id/Button01"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
></Button>

이러한 버튼이 지금은 3개 그려져있습니다. (나중에는 10개그릴생각이구요)

일단은 3개의 버튼에 랜덤으로 쏘는 저 숫자를 입혀보고 싶어서 해본것인데,
컴파일이나 그런 문제는 없으나 에뮬로 돌려보면 실행되지않습니다.;;

어디가 틀린것인지 좀 알려주세요 ㅠ ㅠ
ID부분에 Button 저기가 틀린건지 ..ㅠㅠ;