안녕하세요 안드로이드를 공부하고있는 학생입니다.
다름이아니라 혼자서 버튼이벤트좀구현해보려고했는데
이클립스상에선 에러가안나는데 에뮬레이터에서
yes ,no 버튼을 구현했는데 yes버튼을 누르면 wait로 화면을 넘기려는데
yes버튼을 누르면 Sorry하고 무슨무슨 stopped unexpectedly. please try again이라는 오류메세지가 뜹니다.
이클립스상에서 오류가나면 뭐 어떻게해보겠는데 이클립스상에선 별 문제없고 에뮬레이터상에서 말썽이네요...
일단 소스보여드릴게요....
제 생각에는 인텐트쪽 Intent intent = new Intent(Using.this,Wait.class); 이부분이나
매니페스트쪽  <activity android:name=".Wait.Wait" ></activity>    이부분이문제인거같은데..
도통 모르겠습니다.. 선배님들 도와주세요...
제가하려는것은
패키지 com.HappyGroup.Sub 내에있는 Using에서 yes버튼을 누를시
패키지 com.HappyGroup.Wait 내에있는 Wait로 넘기려고합니다.

★ Using.java 
import android.content.Intent;
import android.os.Bundle;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnTouchListener;
import android.widget.ImageButton;

public class Using extends Activity{
 public void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  setContentView(R.layout.using);
  
  ImageButton yes = (ImageButton)findViewById(R.id.yescmd);
  yes.setOnTouchListener(new OnTouchListener(){
   public boolean onTouch(View v, MotionEvent event){
    if(event.getAction() == MotionEvent.ACTION_DOWN){
     Intent intent = new Intent(Using.this,Wait.class); 
     startActivity(intent);
     return true;
    }
    return false;
   }
  });
  ImageButton no = (ImageButton)findViewById(R.id.nocmd);
  no.setOnTouchListener(new OnTouchListener(){
   public boolean onTouch(View v, MotionEvent event){
    if(event.getAction() == MotionEvent.ACTION_DOWN){
     finish();
     return true;
    }
    return false;
   }
  });
  
 }

}
★매니페스트소스★
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.HappyGroup"
      android:versionCode="1"
      android:versionName="1.0">

    <application android:icon="@drawable/icon" android:label="@string/app_name">
        <activity android:name=".HappyGroup"
                  android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity> 
 <activity android:name=".Wait.Wait" ></activity>  
    </application>
    <uses-sdk android:minSdkVersion="10" />
</manifest>