Static vs dynamic BroadcastReceiver registration and modern Android implications

Tests background limits, lifecycle coupling. Static manifest receivers survive app death but API 26 blocks most implicit broadcasts; dynamic receivers run with the context and must be unregistered. Red flag: static registration handles all implicit broadcasts.
Tests whether the candidate understands Android background execution limits and lifecycle coupling. A strong answer distinguishes static manifest registration, which persists across app death but API 26 blocks most implicit broadcasts, from dynamic registration tied to the Activity or Service lifecycle; it receives implicit broadcasts while active and must be unregistered. Explicit broadcasts still work statically. Red flag: asserting static receivers handle all implicit broadcasts on modern Android or ignoring dynamic receiver leaks.
Read the original → developer.android.com
- #android
- #broadcastreceiver
- #background-execution
- #api-26
- #lifecycle
Get five bites like this every day.
Tezvyn delivers a daily feed of 60-second tech bites with quizzes to lock in what you learn.