Possible Duplicate:
Android: Saving a state during Android lifecycle
i want to save some values in a file before the user terminates the activity.In which method should i implement this?
Apart from using a file , or sql lite is there a way of storing complex data such as a layout (that has dynamically changed ) ?
"onDestroy() Note: do not count on this method being called as a place for saving data!"