안녕하세요? Toast를 하면 글자가 나오긴 나오는데,

나오는 도중에 다른버튼을 누르면 Stop되는 기능이 없나요? ㅎㅎ

아래 코드대로 했더니 안멈추더군요 ^^

좋은 아이디어 있으신 분 계신지요?


package com.commonsware.android.messages;

import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.graphics.Color;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;

public class MessageDemo extends Activity implements View.OnClickListener {
 Button toast;
 Button toaststop;

 @Override
 public void onCreate(Bundle icicle) {
  super.onCreate(icicle);
  
  setContentView(R.layout.main);
  
  toaststop=(Button)findViewById(R.id.toaststop);
  toaststop.setOnClickListener(this);
  
  toast=(Button)findViewById(R.id.toast);
  toast.setOnClickListener(this);
 }
 
 public void onClick(View view) {
  
  
Toast mToast = Toast.makeText(this, "1번", Toast.LENGTH_SHORT);
Toast nToast = Toast.makeText(this, "2번", Toast.LENGTH_SHORT);
Toast oToast = Toast.makeText(this, "3번", Toast.LENGTH_SHORT);
Toast pToast = Toast.makeText(this, "4번", Toast.LENGTH_SHORT);


 
   
   if(view==toast){

       mToast.show();

       nToast.show();

       oToast.show();

       pToast.show();

    }
    else if(view==toaststop){

        mToast.cancel();

        nToast.cancel();

        oToast.cancel();

        pToast.cancel();

    }   } }