일단 자바소스는 이런데요 .. 메인화면에 이미지버튼들이 있구요 ...
그런데 이상한게 아래쪽 시험풀기화면으로 넘어갔다가 메인으로돌아와서
컨닝하기화면으로 가면 컨닝하기화면이 실행이되는데
메인화면에서 바로 컨닝하기화면으로 넘어가려고 하면
죄송합니다 애플리케이션 어쩌구하면서 어플이 꺼지네요 ..
어떻게 해결해야할까요 ..
package com.androidside.license;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageButton;
public class MainImage extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main1);
// 시험풀기화면으로 넘어가기
ImageButton launch = (ImageButton)findViewById(R.id.exam);
launch.setOnClickListener(new ImageButton.OnClickListener(){
public void onClick(View v){
Intent intent = new Intent(MainImage.this, p2_exam.class);
startActivity(intent);
// 컨닝하기화면으로 넘어가기
ImageButton launch = (ImageButton)findViewById(R.id.easy);
launch.setOnClickListener(new ImageButton.OnClickListener(){
public void onClick(View v){
Intent intent1 = new Intent(MainImage.this, p3_easyexam.class);
startActivity(intent1);
}
});
}});
}
};



