|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@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;
}
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||