new AlertDialog.Builder(MainActivity.this).setTitle("确定清除吗")
.setNegativeButton("是",new ....)
.setPositiveButton("否",new ....)
.create().show();
new AlertDialog.Builder(MainActivity2.this).setTitle("确定清除吗")
.setNegativeButton("是", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialogInterface, int i) {
Toast.makeText(MainActivity2.this, s, Toast.LENGTH_SHORT).show();}//Toast是小弹窗
})
.setPositiveButton("否", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialogInterface, int i) {