Skip to content

Instantly share code, notes, and snippets.

@iamsibasish
Last active January 9, 2018 10:52
Show Gist options
  • Save iamsibasish/cbfe020e5912a86e562a67b4cbf7bd62 to your computer and use it in GitHub Desktop.
Save iamsibasish/cbfe020e5912a86e562a67b4cbf7bd62 to your computer and use it in GitHub Desktop.
@Override
public void onSaveInstanceState(Bundle state){
super.onSaveInstanceState(state);
state.putParcelableArrayList("questionsArray", questions);
state.putParcelableArrayList("userAnswersArray", userAnswers);
state.putInt("position", position);
state.putInt("mSeconds", mSeconds);
state.putInt("mTestId", mTestId);
state.putParcelable("mTest", mTest);
}
<?xml version="1.0" encoding="UTF-8"?>
<nitf>
<head>
<title>Colombia Earthquake</title>
</head>
<body>
<headline>
<hl1>143 Dead in Colombia Earthquake</hl1>
</headline>
<byline>
<bytag>By Jared Kotler, Associated Press Writer</bytag>
</byline>
<dateline>
<location>Bogota, Colombia</location>
<date>Monday January 25 1999 7:28 ET</date>
</dateline>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment