@Retention(value=CLASS) @Target(value=FIELD) public @interface InstanceState
Use on activity fields to save and restore their values when the system calls
onSaveInstanceState(Bundle)
and onCreate(Bundle)
.
Example :@EActivity public class MyActivity extends Activity { @InstanceState int someId; @InstanceState MySerializableBean bean; }
Copyright © 2010-2015. All Rights Reserved.