gpt4 book ai didi

java - 当我返回到我的 Activity 时,onCreate() 函数没有被调用

转载 作者:搜寻专家 更新时间:2023-11-01 09:02:17 25 4
gpt4 key购买 nike

我有一个应用程序,当它返回时我调用了第二个 Activity ,创建函数上的拳头 Activity 没有被调用。这个问题发生在 android 2.2 移动版中。当我安装 4.0 时它运行良好...请提供一些建议。第一个 Activity ——调用 onStop 然后在重启或创建时不调用非常感谢

最佳答案

I have an application and there i call second activity when it come back fist activity on create function is not called.

=> 在返回到第一个 Activity 时,它将调用 [onResume()][1]

仅供引用,onCreate()仅在 Activity 开始时调用一次。

关于java - 当我返回到我的 Activity 时,onCreate() 函数没有被调用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14210026/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com