如何根據請求獲取給予此方法的包(Bundle outState)?如何根據請求接收活動狀態實例(包)?
@Override
protected void onSaveInstanceState(***Bundle outState***) {
super.onSaveInstanceState(outState);
// Only if you need to restore open/close state when
// the orientation is changed
if (adapter != null) {
adapter.saveStates(outState);
}
}
@KarlssonMakhno你只能的onSaveInstanceState內()存儲數據,並且可以從的onCreate()onRestoreInstanceState()得到它; –