package alarmmanager.app;
import java.util.Random;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class game1 extends Activity{
 
 public int randoma[] = new int[6];
 
 Random m_rand = new Random();
 
 Button btnup = (Button)findViewById(R.id.btnup);
 Button btndown = (Button)findViewById(R.id.btndown);
 Button btnleft = (Button)findViewById(R.id.btnleft);
 Button btnright = (Button)findViewById(R.id.btnright);
  
 
 @Override
 public void onCreate(Bundle savedInstanceState) {
  // TODO Auto-generated method stub
  super.onCreate(savedInstanceState);
  setContentView(R.layout.game1);
  
  RandomClick t1 = new RandomClick();
  t1.start();
      
  findViewById(R.id.btnup).setOnClickListener( mClickListener);
  findViewById(R.id.btnleft).setOnClickListener( mClickListener);
  findViewById(R.id.btnright).setOnClickListener( mClickListener);
  findViewById(R.id.btndown).setOnClickListener( mClickListener);
  findViewById(R.id.btnre).setOnClickListener( mClickListener);
 
 }
 
 class RandomClick extends Thread{
  public void run(){
   
   btnup.setFocusableInTouchMode(true);
   btndown.setFocusableInTouchMode(true);
   btnleft.setFocusableInTouchMode(true);
   btnright.setFocusableInTouchMode(true);
   
  try{
   for(int i=0 ; i<=5 ; i++)
    {
     randoma[i] = (m_rand.nextInt(1000)+4)%4;
    switch(i){
    case 0 :
     btnup.requestFocus();
     Thread.sleep(1000);
     break;
    case 1 :
     btndown.requestFocus();
     Thread.sleep(1000);
     break;
    case 2 :
     btnleft.requestFocus();
     Thread.sleep(1000);
     break;
    case 3 :
     btnright.requestFocus();
     Thread.sleep(1000);
     break;
    }
    }
  }catch (InterruptedException e) {
   // TODO Auto-generated catch block
    
  }
  }
 }
 
 Button.OnClickListener mClickListener= new View.OnClickListener() {
 @Override
 public void onClick(View v) {
  // TODO Auto-generated method stub
  
 }
 };
}


이리저리고쳐봐도 실행이 안되네요
에러자체는 없던데 무슨문제인질 모르겠네요

로그캣도 첨부합니다

10-11 06:07:02.064: ERROR/AndroidRuntime(351): ERROR: thread attach failed
10-11 06:07:02.074: INFO/ActivityManager(53): Start proc alarmmanager.app for activity alarmmanager.app/.day: pid=357 uid=10024 gids={1015}
10-11 06:07:02.184: DEBUG/dalvikvm(351): LinearAlloc 0x0 used 639500 of 5242880 (12%)
10-11 06:07:02.534: DEBUG/ddm-heap(357): Got feature list request
10-11 06:07:03.483: DEBUG/AndroidRuntime(357): Shutting down VM
10-11 06:07:03.483: WARN/dalvikvm(357): threadid=3: thread exiting with uncaught exception (group=0x4001b188)
10-11 06:07:03.493: ERROR/AndroidRuntime(357): Uncaught handler: thread main exiting due to uncaught exception
10-11 06:07:03.514: ERROR/AndroidRuntime(357): java.lang.RuntimeException: Unable to start activity ComponentInfo{alarmmanager.app/alarmmanager.app.day}: java.lang.NullPointerException
10-11 06:07:03.514: ERROR/AndroidRuntime(357):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2496)
10-11 06:07:03.514: ERROR/AndroidRuntime(357):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)
10-11 06:07:03.514: ERROR/AndroidRuntime(357):     at android.app.ActivityThread.access$2200(ActivityThread.java:119)
10-11 06:07:03.514: ERROR/AndroidRuntime(357):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)
10-11 06:07:03.514: ERROR/AndroidRuntime(357):     at android.os.Handler.dispatchMessage(Handler.java:99)
10-11 06:07:03.514: ERROR/AndroidRuntime(357):     at android.os.Looper.loop(Looper.java:123)
10-11 06:07:03.514: ERROR/AndroidRuntime(357):     at android.app.ActivityThread.main(ActivityThread.java:4363)
10-11 06:07:03.514: ERROR/AndroidRuntime(357):     at java.lang.reflect.Method.invokeNative(Native Method)
10-11 06:07:03.514: ERROR/AndroidRuntime(357):     at java.lang.reflect.Method.invoke(Method.java:521)
10-11 06:07:03.514: ERROR/AndroidRuntime(357):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
10-11 06:07:03.514: ERROR/AndroidRuntime(357):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
10-11 06:07:03.514: ERROR/AndroidRuntime(357):     at dalvik.system.NativeStart.main(Native Method)
10-11 06:07:03.514: ERROR/AndroidRuntime(357): Caused by: java.lang.NullPointerException
10-11 06:07:03.514: ERROR/AndroidRuntime(357):     at alarmmanager.app.day.onCreate(day.java:22)
10-11 06:07:03.514: ERROR/AndroidRuntime(357):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
10-11 06:07:03.514: ERROR/AndroidRuntime(357):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2459)
10-11 06:07:03.514: ERROR/AndroidRuntime(357):     ... 11 more