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.
スコアカウンターやラウンドカウンターなどでゲームを作ろうとしていますが、このfinish()方法でゲームを終えてintsも、以前と同じ数字が残っているので、アクティビティが強制終了せずに閉じられたときに、メモリに保持されなくなりましたか?
finish()
ints
スコアカウンターやラウンドカウンターなどでゲームを作ろうとしていますが、finish()メソッドでゲームアクティビティを終了しても、intは以前と同じ数値のままです。
次に、静的データメンバーなど、アクティビティの存続期間を過ぎた場所に情報を保存します。