在Android中,弹出对话框使用AlertDialog.Builder方法. new AlertDialog.Builder(MainActivity.this).setTitle("本机设置") .setView(view) .setPositiveButton("确定",new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface v, int arg…
Stack Overflow 排错翻译 - Closing AlertDialog.Builder in Android -Android环境中关闭AlertDialog.Builder 转自:http://www.lanqibing.com/archives/783.html 原文: In the following code, I tried to dismiss the AlertDialog box but to no avail. However, if I remove compa…