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() メソッドをオーバーライドする場合、myBitmap.recycle() の前または後に super.onDestroy() を呼び出す必要がありますか? それは問題ですか?
順序は関係ありません。onDestroy()の基本実装は、呼び出したようにする以外は何もしません。一部の派生クラス(ListActivityなど)は何かを実行する場合がありますが、派生クラスを呼び出した後にそれらの状態を使用しようとしない限り、問題はありません。