super.onCreate (savedInstanceState);
But I went to the activity type of source code to see the next method is this
In the source code useless to this parameter saveInstanceState.
that this parameter pass over what meaning does
------ Solution ------------------------- -------------------
saved Activity state, if a non-running because of resource constraints, the Activity destroyed by the system, when the Activity starts again when preserved by the state instance, namely through saveInstanceState obtain information prior to destruction, and then use that information, allowing users to feel exactly the same interface as before, to enhance the user experience.
------ Solution ---------------------------------------- ----
deposit
@ Override protected void onSaveInstanceState (Bundle outState);
take
onCreate or onRestoreInstanceState
particular switch the screen anyway, that they will re-create the activity, and then go onCreate, it must be saved Model, in which to save? OnSaveInstanceState in preserved in the above-mentioned, in which the restored site? onCreate or onRestoreInstanceState li
PS: recommends that the next question time, look at notes, which have written. . .
------ For reference only -------------------------------------- -
This is our deposit into the.
------ For reference only -------------------------------------- -
+1
------ For reference only -------------------------------- -------
------ For reference only ---------------------------------- -----
Thank you, no way, English customs, however, will be watching it in English drowsy.
------ For reference only ---------------------------------------
Thank you understand
没有评论:
发表评论