Advertisement
Guest User

Untitled

a guest
Oct 24th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. class ExampleActivity extends Activity {
  2. @State int mSelectedPosition; // This will be automatically saved and restored
  3.  
  4. @Override public void onCreate(Bundle savedInstanceState) {
  5. super.onCreate(savedInstanceState);
  6. Icepick.restoreInstanceState(this, savedInstanceState);
  7. }
  8.  
  9. @Override public void onSaveInstanceState(Bundle outState) {
  10. super.onSaveInstanceState(outState);
  11. Icepick.saveInstanceState(this, outState);
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement