Thứ Năm, 24 tháng 12, 2009

Android: Overridable functions in Application's lifecycle

onSaveInstanceState() is called by Android if the Activity is being stopped and may be killed before it is resumed! This means it should store any state necessary to re-initialize to the same condition when the Activity is restarted. It is the counterpart to the onCreate() method, and in fact the savedInstanceState Bundle passed in to onCreate() is the same Bundle that you construct as outState in the onSaveInstanceState() method.

Không có nhận xét nào:

Đăng nhận xét