BroadcastReceiver within a Service not receiving broadcasts Android
I've got this app, in which users update certain variables in an Activity, and this Activity passes the new variables to a IntentService using a BroadcastReceiver. However, the BroadcastReceiver in the IntentService doesn't seem to be receiving the broadcasts. This is the code within the service to create the broadcast receiver protected class UpdateReceiver extends BroadcastReceiver{ @Override public void onReceive(Context context, Intent intent){ Log.d("receiver", "Got message: "); //state=3; //Toast.makeText(context, "got it", Toast.LENGTH_SHORT).show(); } }; And here's the code to register