AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this); builder.setMessage("数据库创建出错"); builder.setTitle("异常"); builder.create().show();