Toast多次显示

private Toast toast = null;

private void showToast(String msg) {
	if (toast != null)
		toast.cancel();

	toast = Toast.makeText(FileActivity.this, msg, Toast.LENGTH_SHORT);
	toast.show();
}

你可能感兴趣的:(Toast多次显示)