調べもの:BroadcastReceiver(2回目) [Android 技術者認定試験]
OnReceiver()でBroadcastメッセージを受信する間はライフサイクル有効と考えられる。
受信しないようOnPauseやOnStop内でunregisterした時点で受信しなくなる。
「android - BroadcastReceiver lifecycle - Stack Overflow」
https://stackoverflow.com/questions/20935949/broadcastreceiver-lifecycle
「Broadcast receiver lifecycle - Android System - Android Developer」
https://www.androidcookbook.info/android-system/broadcast-receiver-lifecycle.html
「What is the life cycle of BroadcastReceiver in Android?」
https://ostoday.org/%D0%B1%D0%B5%D0%B7-%D1%80%D1%83%D0%B1%D1%80%D0%B8%D0%BA%D0%B8/what-is-the-life-cycle-of-broadcastreceiver-in-android.html
「ブロードキャストの概要 | Android デベロッパー | Android Developers 」
https://developer.android.com/guide/components/broadcasts?hl=ja
受信しないようOnPauseやOnStop内でunregisterした時点で受信しなくなる。
「android - BroadcastReceiver lifecycle - Stack Overflow」
https://stackoverflow.com/questions/20935949/broadcastreceiver-lifecycle
「Broadcast receiver lifecycle - Android System - Android Developer」
https://www.androidcookbook.info/android-system/broadcast-receiver-lifecycle.html
「What is the life cycle of BroadcastReceiver in Android?」
https://ostoday.org/%D0%B1%D0%B5%D0%B7-%D1%80%D1%83%D0%B1%D1%80%D0%B8%D0%BA%D0%B8/what-is-the-life-cycle-of-broadcastreceiver-in-android.html
「ブロードキャストの概要 | Android デベロッパー | Android Developers 」
https://developer.android.com/guide/components/broadcasts?hl=ja
コメント 0