开发者

Is it okay if we override OnDestroy() method in every activity of Android Application?

Is it okay if we override OnDestroy() method in every activity of Android Application?

@Override
    public void onDestroy开发者_StackOverflow社区() {
        super.onDestroy();
}

Just by calling super.onDestroy() in onDestroy() Method, will it cleanup the memory resources?


It's fine to override onDestroy, so long as you do call up to the superclass. If all you're doing is calling up to the superclass, though, why would you do it?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜