Top "Broadcastreceiver" questions

BroadcastReceiver is an Android component that responds to system-wide broadcast announcements.

When to Register/Unregister Broadcast Receivers created in an activity?

I have a need to create a custom broadcast receiver in the onCreate event of an activity and obviously I …

android broadcastreceiver
How to update UI in a BroadcastReceiver

I created an application in which I registered a broadcast receiver within my main class(Main Activity) and whenever I …

android broadcastreceiver
java.lang.InstantiationException: class has no zero argument constructor

I am trying to use a BroadcastReceiver as an inner class to track the network state but I got the …

android broadcastreceiver
How To Test BOOT_COMPLETED Broadcast Receiver In Emulator

I want to check the BROADCAST RECEIVER with Action BOOT_COMPLETED in the emulator. Is there any way to check …

android android-emulator broadcastreceiver
BroadcastReceiver declared in manifest is not receiving the Broadcast

I've tried to register a Wifi BroadcastReceiver to get the wifi state when it changes. But so far I have …

android broadcastreceiver android-wifi
using getWindowManager() inside BroadcastReceiver

I am trying to use getWindowManager() inside BroadcastReceiver and I get this error: "The method getWindowManager() is undefined for the …

android broadcastreceiver
Does BroadcastReceiver.onReceive always run in the UI thread?

In my App, I create a custom BroadcastReceiver and register it to my Context manually via Context.registerReceiver. I also …

android broadcastreceiver
How to detect when a user plugs headset on android device? (Opposite of ACTION_AUDIO_BECOMING_NOISY)

I'm developing an application that has the following requisite: If there is a headset plugged in the device and the …

android broadcastreceiver android-audiomanager
Why BroadcastReceiver works even when app is in background ?

I am checking Internet connectivity in my app using BroadcastReceiver and I show an alert dialog if the connection is …

android broadcastreceiver manifest