标签: android android-activity
我想知道如果我从收到recreate()的{{1}}拨打activity会发生什么。方案是bundle将加载依赖于activity内容的内容。如果要调用bundle方法,recreate()的内容会丢失还是仍然存在?
recreate()
activity
bundle
编辑使用bundle,我在recreate()方法中添加Log.d(),onCreate()似乎仍然拥有数据。我的活动仍然被破坏,任何想法为什么?
Log.d()
onCreate()
答案 0 :(得分:0)
我刚刚使用SharedPreferences
SharedPreferences