title: How to send and receive broadcast message
body: <p>I am trying to pass data between two activities that are inside of tabs.  I am trying to use <code>sendBroadcast()</code>.  With breakpoints set I never reach <code>onReceive()</code>.</p>
  
  <p>Manifest: </p>
  
  <pre><code>&lt;activity
      android:name=".WebResults"
      android:label="@string/app_name"&gt;
  
      &lt;intent-filter&gt;
          &lt;action android:name="com.toxy.LOAD_URL" /&gt;
      &lt;/intent-filter&gt;         
  &lt;/activity&gt;
  </code></pre>
  
  <p>Activity Sender: </p>
  
  <pre><code>Intent intent=new Intent(getApplicationContext(),WebResults.class);
  intent.setAction("com.toxy.LOAD_URL");
  intent.putExtra("url",uri.toString());
  sendBroadcast(intent);
  </code></pre>
  
  <p>Activity Receiver :</p>
  
  <pre><code>@Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);    
      IntentFilter filter = new IntentFilter("com.toxy.LOAD_URL");
      this.registerReceiver(new Receiver(), filter);
  }
  
  private class Receiver extends BroadcastReceiver {
  
      @Override
      public void onReceive(Context arg0, Intent arg1) {
          String url = arg1.getExtras().getString("url");
          WebView webview =(WebView)findViewById(R.id.webView);
          webview.loadUrl(url);
      }
  }
  </code></pre>