title: SendBroadcast not working
body: <p>I am trying to implement custom bradcastreciever. but my when i register it return null in my intent. I don't know what is going wrong here
  ? </p>
  
  <p>My activity is here </p>
  
  <pre><code>private MyReciever mReceiver;
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      this.mReceiver = new MyReciever();
      Intent result=registerReceiver(this.mReceiver, new IntentFilter(
              "com.example.Broadcast"));
      int status = result.getIntExtra("HighScore",0);
      System.out.println(status+"  Yahoo");
      setContentView(R.layout.activity_main);
      for (int i = 0; i &lt; 10; i++) {
  
          try {               
              if (i == 7) {
                  // MyReciever mr=new MyReciever();
                      Intent intent = new intent();               
                  intent.setAction("com.example.Broadcast");
                  intent.putExtra("HighScore", 1000);
                  sendStickyBroadcast(intent);
                  break;
  
              }
          } catch (Exception e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
          }
      }
  
  }
  
  @Override
  protected void onStop() {
      // TODO Auto-generated method stub
      super.onStop();
      unregisterReceiver(mReceiver);
  }
  </code></pre>
  
  <p>and Reciever is </p>
  
  <pre><code>     public class MyReciever extends BroadcastReceiver{
  
      @Override
      public void onReceive(Context context, Intent intent) {
          // TODO Auto-generated method stub
  
          //int data= intent.getIntExtra("HighScore",0);
          Toast.makeText(context, "Highest Score", Toast.LENGTH_LONG).show();
      }
  
  }
  </code></pre>
  
  <p>I have given permission in android mainfest file</p>
  
  <pre><code>     &lt;uses-permission android:name="android.permission.BROADCAST_STICKY"/&gt;
  </code></pre>