Skip to content

方法三 ActivityLifecycleCallbacks #14

Description

@AllenCoder

这个方法也有问题,当我横竖屏切换 重新实例化时,生命周期会先调用 自己的onStop ,再去调用 onStart会出现误判断 appCount =0; 而正常的 activity 跳转(A -》B)是 B Activity 先 onStart() 然后 A Activity 才 onStop()

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions