@Override protected void onCreate(Bundle icicle) { super.onCreate(icicle); // Have the system blur any windows behind this one. // getWindow().setFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND, // WindowManager.LayoutParams.FLAG_BLUR_BEHIND); accountData = (AccountLoginData) getIntent().getSerializableExtra(MainApp.E_ACCOUNT_DATA); if (null == accountData) return; Ulog.d("AccountData reçu par configureAll : " + accountData.toString()); setContentView(R.layout.config_all); EditText editAgence = (EditText) findViewById(R.id.AgenceEdit); editAgence.setText(accountData.getAgenceId()); EditText editCompte = (EditText) findViewById(R.id.CompteEdit); EditText editCompteCle = (EditText) findViewById(R.id.CompteEditkey); String compte = accountData.getCompteId(); try { editCompte.setText(compte.substring(0, compte.length() - 1)); editCompteCle.setText(compte.substring(compte.length() - 1, compte.length())); } catch (Exception e) { editCompte.setText(""); editCompteCle.setText(""); } EditText editPass = (EditText) findViewById(R.id.PassEdit); editPass.setText(accountData.getPassword()); CheckBox saveAcc = (CheckBox) findViewById(R.id.SaveAccount); saveAcc.setChecked(accountData.isStoreAccount()); CheckBox savePass = (CheckBox) findViewById(R.id.SavePass); savePass.setChecked(accountData.isStorePass()); Button configOk = (Button) findViewById(R.id.ConfigAllSave); configOk.setOnClickListener(this); Button configCancel = (Button) findViewById(R.id.Cancel); configCancel.setOnClickListener(this); }