在我的应用程序中,我想将数据保存在savedInstanceState()
. 我想保存ArrayList<HashMap<String,String>>
。到目前为止,我无法做到这一点。这是困扰我的代码
@Override
protected void onSaveInstanceState(Bundle outState) {
super.onSaveInstanceState(outState);
outState.putParcelableArrayList("places", (ArrayList<? extends Parcelable>) places);
}
恢复()方法
private void restore(Bundle savedInstanceState) {
// TODO Auto-generated method stub
//What should i do here! i have try many things but none of them is helping
}