AlertDialog.Builder dialog = new AlertDialog.Builder(DeviceSetting.this);
LayoutInflater inflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);
LinearLayout layout = (LinearLayout)inflater.inflate(R.layout.wifidialog, null);
dialog.setView(layout);
passwdet = (EditText)layout.findViewById(R.id.wifipasswd);
dialog.setTitle("请输入密码");
dialog.setPositiveButton("确定", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int which) {
// TODO Auto-generated meth
LayoutInflater inflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);
LinearLayout layout = (LinearLayout)inflater.inflate(R.layout.wifidialog, null);
dialog.setView(layout);
passwdet = (EditText)layout.findViewById(R.id.wifipasswd);
dialog.setTitle("请输入密码");
dialog.setPositiveButton("确定", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int which) {
// TODO Auto-generated meth