title: My BroadcastReceiver never gets called?
body: <p>This BroadcastReceiver is inside my fragment:</p>
  
  <pre><code>  public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
      ...
      getActivity().startService(new Intent(getActivity(),LightSensor.class));
      Log.d(TAG, "Called the LightSensor Service Class to start");
  
      IntentFilter luxfilter = new IntentFilter("LuxUpdate");
      getActivity().getApplicationContext().registerReceiver(mLightReceiver, luxfilter);
  
  
      ...
      }
  
  ...
  
      // RECEIVE DATA FROM LIGHT SENSOR BROADCAST
          public BroadcastReceiver mLightReceiver = new BroadcastReceiver() {
  
              @Override
              public void onReceive(Context context, Intent intent) {
  
                  String lux = intent.getStringExtra("Lux");
                  Log.d(TAG, "Recieve Broadcast-Lux Update: " + lux);
                  //TextView tvSensorLightLux = (TextView) findViewById(R.id.tvSensorLightLux);
                  mLightValue.setText(lux);
  
              }
          };
  </code></pre>
  
  <p>The problem is that I do think think that it is listening or receiving.  The Log.d never shows in the LogCat.  I have no idea why.  The only difference in this entry and another the did work, was that the previous entry was actually in an Activity.  This one is in a Fragment.  Am I missing something here or should there be something in my manifest for this fragment or receiver?</p>
  
  <p>UPDATE:</p>
  
  <p>THe Sensor sends the broadcast with:</p>
  
  <pre><code>private void sendLuxUpdate() {
  
          if(isLightSensing){
          Log.d(TAG, "sender Broadcasting message " + Lux);
          Intent intent = new Intent("LuxUpdate");
          intent.putExtra("Lux", Lux);
          LocalBroadcastManager.getInstance(this).sendBroadcast(intent);
          }
      }
  </code></pre>