Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class ExampleActivity extends Activity {
- @State int mSelectedPosition; // This will be automatically saved and restored
- @Override public void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- Icepick.restoreInstanceState(this, savedInstanceState);
- }
- @Override public void onSaveInstanceState(Bundle outState) {
- super.onSaveInstanceState(outState);
- Icepick.saveInstanceState(this, outState);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement