내 app에서 동작 표시 줄 조각을 사용하고 있습니다. 화면이 회전하면 작업 표시 줄의 내용이 손실되어 유지 방법을 제안하십시오. 여기에 해당동작 표시 줄의 내용이 표시되지 않습니다.
@Override
protected void onSaveInstanceState(Bundle outState) {
super.onSaveInstanceState(outState);
if(currentDisplayedCase != null) {
outState.putInt(DISPLAY_CASE_KEY, currentDisplayedCase.intValue());
}
outState.putString(ACTION_BAR_TEXT, textView1.getText().toString());
}
과 장치가 회전되면
if(savedInstanceState!=null&&savedInstanceState.containsKey(ACTION_BAR_TEXT))
textView1.setText(savedInstanceState.getString(ACTION_BAR_TEXT, null));
지금도 동일하게하고 있지만 설정 변경시 콘텐츠를 가져 오지 못합니다. – Supreet