Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
OnDestroy()Android アプリのすべてのアクティビティでメソッドをオーバーライドしても大丈夫ですか?
OnDestroy()
@Override public void onDestroy() { super.onDestroy(); }
メソッドを呼び出すだけsuper.onDestroy()でonDestroy()、メモリ リソースがクリーンアップされますか?
super.onDestroy()
onDestroy()
スーパークラスを呼び出す限り、onDestroy をオーバーライドしても問題ありません。ただし、スーパークラスを呼び出すだけなら、なぜそれを行うのでしょうか?