开发者

When the screen orientation changes the system will, by default, destroy the current activity and create a new one while preserving its state

开发者 https://www.devze.com 2023-02-04 22:31 出处:网络
I can not able to understand this sentence in android documention. Since it is saying When the screen orientation changes the system will, by default, destroy the c开发者_运维问答urrent activity.

I can not able to understand this sentence in android documention. Since it is saying

When the screen orientation changes the system will, by default, destroy the c开发者_运维问答urrent activity.

and it also saying

create a new one while preserving its state.

but actully it is contrary. How could it be? Can anybody explan to me.


Refer this Retaining an Object During a Configuration Change
And Activity restart on rotation Android where it discussed in detail

0

精彩评论

暂无评论...
验证码 换一张
取 消