Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

强引用 #3

Open
onlysoft opened this issue Jun 13, 2016 · 1 comment
Open

强引用 #3

onlysoft opened this issue Jun 13, 2016 · 1 comment

Comments

@onlysoft
Copy link

在KBaseActivity中强引用了
// 应用全局的实例
public KApplication application;
// 核心层的Action实例
public AppAction appAction;
在activity关闭时能正常回收吗?

@wustnlp
Copy link

wustnlp commented Oct 11, 2017

什么强引用,没看懂,,

当activity被关闭的时候,先走BaseActivity的销毁,里面都是成员属性,会自动销毁该activity的一切,然后走自己的onDestroy,

所以这个问题不存在的

Repository owner deleted a comment from fede-s Feb 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants