最終更新:2013-12-11 (水) 15:21:35 (3800d)
android.widget.Toast
Top / android.widget.Toast
http://developer.android.com/reference/android/widget/Toast.html
Toast.makeText(this, "Toast Test!!", Toast.LENGTH_SHORT).show();
try { camera = Camera.open(); } catch (RuntimeException e) { Toast.makeText(context, e.getMessage(), Toast.LENGTH_LONG).show(); }
定数
int LENGTH_LONG Show the view or text notification for a long period of time. int LENGTH_SHORT Show the view or text notification for a short period of time.