(1)在前面引入包import andriod.widget.Toast;(2)典型的使用例子如下:Toast.makeText(MainActivity.this,"这里是提示的例子",Toast.LENGTH_LONG).show();