총4개 버튼중 정답버튼 1개,오답버튼3개가 있구요. 오답버튼을 눌릴게 되면 오답노트에 해당 문제(클래스)가 저장이 되어야 되는데

DB를 안쓰고 할려는데 인텐트말구요 어떤씩으로 해야될찌요?

public class main1 extends Activity 


public void onCreate(Bundle savedInstanceState) 

{

super.onCreate(savedInstanceState);

setContentView(R.layout.main1);

   

    Button b1=  (Button)findViewById(R.id.b1);

    Button b2 = (Button)findViewById(R.id.b2);

Button b3 = (Button)findViewById(R.id.b3);

Button b4 = (Button)findViewById(R.id.b4);



b1.setOnClickListener(new Button.OnClickListener()

{

public void onClick(View v) 

{

new AlertDialog.Builder(main1.this)

.setTitle("오답입니다.'빈칸은 문장의 동사 자리이므로 동사인(B)가들어가야 합니다.'")

.setMessage("다시풀기Y,다음문제N")

.setPositiveButton("Yes",new DialogInterface.OnClickListener()

{


public void onClick(DialogInterface dialog,int whicButton)

{

Intent intent=new Intent(main1.this,main1.class);

startActivity(intent);

}


})

.setNegativeButton("No",new DialogInterface.OnClickListener()

{


public void onClick(DialogInterface dialog,int whicButton)

{

Intent intent=new Intent(main1.this,main2.class);

startActivity(intent);

}

})

.show();

}

});


b2.setOnClickListener(new Button.OnClickListener()

{


public void onClick(View v) 

{

new AlertDialog.Builder(main1.this)

.setTitle("정답입니다*^^*")

.setMessage("다음문제로")

.setPositiveButton("Yes",new DialogInterface.OnClickListener()

{


public void onClick(DialogInterface dialog,int whicButton)

{

Intent intent=new Intent(main1.this,main2.class);

startActivity(intent);

}


})

.setNegativeButton("No",new DialogInterface.OnClickListener()

{


public void onClick(DialogInterface dialog,int whicButton)

{

Intent intent=new Intent(main1.this,main.class);

startActivity(intent);

}


})

.show();

}

});


b3.setOnClickListener(new Button.OnClickListener()

{

public void onClick(View v) 

{

new AlertDialog.Builder(main1.this)

.setTitle("오답입니다.'빈칸은 문장의 동사 자리이므로 동사인(B)가들어가야 합니다.'")

.setMessage("다시풀기Y,다음문제N")

.setPositiveButton("Yes",new DialogInterface.OnClickListener()

{


public void onClick(DialogInterface dialog,int whicButton)

{

Intent intent=new Intent(main1.this,main1.class);

startActivity(intent);

}


})

.setNegativeButton("No",new DialogInterface.OnClickListener()

{


public void onClick(DialogInterface dialog,int whicButton)

{

Intent intent=new Intent(main1.this,main2.class);

startActivity(intent);

}

})

.show();

}

});


b4.setOnClickListener(new Button.OnClickListener()

{

public void onClick(View v) 

{

new AlertDialog.Builder(main1.this)

.setTitle("오답입니다.'빈칸은 문장의 동사 자리이므로 동사인(B)가들어가야 합니다.'")

.setMessage("다시풀기Y,다음문제N")

.setPositiveButton("Yes",new DialogInterface.OnClickListener()

{


public void onClick(DialogInterface dialog,int whicButton)

{

Intent intent=new Intent(main1.this,main1.class);

startActivity(intent);

}


})

.setNegativeButton("No",new DialogInterface.OnClickListener()

{


public void onClick(DialogInterface dialog,int whicButton)

{

Intent intent=new Intent(main1.this,main2.class);

startActivity(intent);

}

})

.show();

}

});