unable to send Broadcast from activity :android
<p>hi friends i am unable to send Broadcast from one activity to other activity pls see my code below and help:</p>

<pre><code>      public class SendBroadcast extends Activity {
  public static String BROADCAST_ACTION =  "com.unitedcoders.android.broadcasttest.SHOWTOAST";

/*     }
    });
}



   public void sendBroadcast(){

    Intent broadcast = new Intent("com.unitedcoders.android.broadcasttest.SHOWTOAST");
    this.sendBroadcast(broadcast);
    //startActivity(broadcast);



}
</code></pre>

<p>}</p>

<p>Receiving side code:</p>

<pre><code>    public class ToastDisplay extends Activity {

private BroadcastReceiver mReceiver;

@Override
protected void onResume() {

    // TODO Auto-generated method stub
    super.onResume();
    Log.i("!!!!!!!InchooTutorial@@@@@@@$$$$","%%%%%%% msg_for_me");
</code></pre>

<p>ent
              //  String msg_for_me = intent.getStringExtra("some_msg");
                //log our message value
                Log.i("!!!!!!!InchooTutorial@@@@@@@$$$$","%%%%%%% msg_for_me");</p>

<pre><code>        }
    };
    //registering our receiver
    this.registerReceiver(mReceiver, intentFilter);
}

    @Override
    protected void onPause() {
    // TODO Auto-generated method stub
    super.onPause();
    //unregister our receiver
    this.unregisterReceiver(this.mReceiver);
}

}
</code></pre>

<p>Manifest.xml is:</p>

<pre><code>   &lt;?xml version="1.0" encoding="utf-8"?&gt;
   &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.unitedcoders.android.broadcasttest"
    android:versionCode="1"
     android:versionName="1.0"&gt;
    &lt;uses-sdk android:minSdkVersion="4" /&gt;
     &lt;uses-permission android:name="android.permission.BROADCAST_STICKY"/&gt;
    &lt;application android:icon="@drawable/icon" android:label="@string/app_name"&gt;
    &lt;activity android:name=".SendBroadcast"
              android:label="@string/app_name"&gt;
           &lt;intent-filter&gt;
          nitedcoders.android.broadcasttest.SHOWTOAST" /&gt;
   &lt;/application&gt;     &lt;/manifest&gt;
</code></pre>
