@Override protected void onResume() { super.onResume(); // If the application was shutdown make sure to clear the password field, if it // was saved in the instance state if (App.isShutdown()) { TextView password = (TextView) findViewById(R.id.password); password.setText(""); } // Clear the shutdown flag App.clearShutdown(); }