Toast(トースト)を使う
http://developer.android.com/reference/android/widget/Toast.html
import android.widget.Toast;String str = "Hello!!!";
Toast.makeText( this, str, Toast.LENGTH_LONG ).show();
Time | Details |
---|---|
LENGTH_LONG | Show the view or text notification for a long period of time. |
LENGTH_SHORT | Show the view or text notification for a short period of time. |