android onSaveInstanceState的使用方法(5)
来源:未知 责任编辑:责任编辑 发表时间:2013-12-01 14:14 点击:次
@Override
public void onRestoreInstanceState(Bundle savedInstanceState) {
super.onRestoreInstanceState(savedInstanceState);
int mCount = savedInstanceState.getInt("IntTest");
String StrTest = savedInstanceState.getString("StrTest");
Log.e(TAG, "onRestoreInstanceState+IntTest="+mCount+"+StrTest="+StrTest);
}
public void onDestroy()
{
super.onDestroy();
this.mThreadDisble = true;
}
public void onPause()
{
Log.v(TAG, "onPause");
super.onPause();
mThreadDisble = true;
}
public void onResume()
{
Log.v(TAG, "onResume");
super.onResume();
mThreadDisble = false;
}
}