title: Android Broadcast Receiver, not Receiving?
body: <p>Got an issue with my <code>BroadcastReceiver</code> not ever being fired. Here's the definition of the receiver:</p>
  
  <pre><code>    public class UIUpdater extends BroadcastReceiver {
          private final Handler handler;
          public UIUpdater(Handler handler)
          {
              this.handler = handler;
          }
  
          @Override
          public void onReceive(final Context context, final Intent intent)
          {           
              String action = intent.getAction();
              Log.i("MAIN", " &gt;&gt;&gt; ACTION &lt;&lt;&lt; : " + action);
  
              if(action.equalsIgnoreCase("PROGRESSINIT"))
              {
                  int size = intent.getIntExtra("PROGRESSSIZE", 0);
                  updatePopulateProgressSize(size);
              }
  
              handler.post(new Runnable(){
                  @Override
                  public void run(){
                      updatePopulateProgress(intent.getIntExtra("PROGRESS", 0));                  
                  }
              });
          }
      }
  </code></pre>
  
  <p>Here's the <strong>Manifest</strong>:</p>
  
  <pre><code>    &lt;receiver android:name="com.goosesys.gaggle.Main$UIUpdater"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="com.goosesys.gaggle.populate"/&gt;
          &lt;/intent-filter&gt;
      &lt;/receiver&gt;
  </code></pre>
  
  <p>And here's where I attempt to use it:</p>
  
  <pre><code>    JSONArray array = new JSONArray(xmppBack.getPayload());
  
      Intent intent = new Intent(Constants.BC_POPULATE);
      intent.setAction(Constants.BC_PROGRESSINIT);
      intent.putExtra(Constants.BC_PROGRESSSIZE, array.length());
      GaggleApplication.getContext().sendBroadcast(intent);
  </code></pre>
  
  <p>Oh, and the constants:</p>
  
  <pre><code>public static final String BC_POPULATE              = "com.goosesys.gaggle.populate";
  public static final String BC_PROGRESSINIT          = "PROGRESSINIT";
  public static final String BC_PROGRESSSIZE          = "PROGRESSSIZE";
  public static final String BC_PROGRESSINC           = "PROGRESSINC";
  </code></pre>
  
  <p>Thing is, I've stepped through each and every part and all is fine, no errors, no leaks, no problems. Just that the <code>onReceive</code> is never popped :( </p>
  
  <p>I'm new to broadcastreceivers, please be gentle ;)</p>
  
  <p>Cheers in advance!</p>