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.
アプリの終了時にアラームの繰り返しをキャンセルする必要があります。問題は、いくつかのアクティビティがあり、それらはいつでも強制終了できるため、最後のアクティビティがいつシャットダウンされているかを判断して、アラーム キャンセル メソッドを呼び出すことができることです。
100%信頼できる方法はありません。あなたができる最善のことは、サブクラス化ApplicationとオーバーライドonTerminate()です。
Application
onTerminate()