I have registered my Receiver in mainfist XML, as shown below:

```
<?xml version="1.0" encoding="UTF-8"?>
  <manifest android:versionName="1.0"
  android:versionCode="1"
  package="com.eiq.randomsendriod"
  xmlns:android="http://schemas.android.com/apk/res/android">
  <uses-sdk
        android:minSdkVersion="19"
        android:targetSdkVersion="19" />
<uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
      <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >

        <activity
            android:name="com.eiq.randomsendriod.SendRandom"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <receiver android:name="myreceiver">
            <intent-filter>
                <action android:name="com.esmaeel.incomIM">
                </action>
            </intent-filter>
        </receiver>

        <service android:name=".seekNet"></service>

    </application>

</manifest>

```

declared My **BroadCastReceiver**:

```
public BroadcastReceiver myreceiver = new BroadcastReceiver() {
@Override
public void onReceive(Context context, Intent intent) {
Toast.makeText(context,"I have raceived a        broadcast",Toast.LENGTH_SHORT).show();
            Log.e("SEMOAS","In onReceive(...)");
            Bundle bundle = intent.getExtras();
            if (bundle != null) {

                incom.setBody(bundle.get("body").toString());
                incom.setFrom(bundle.get("From").toString());
                incom.setTo(bundle.get("To").toString());
                incom.setTogender(bundle.get("toGender").toString());
                incom.my_gender=bundle.get("SenderGender").toString();
                incom.type=bundle.getInt("msgType");
                incom.url=bundle.get("url").toString();
                incom.userID=bundle.get("SenderID").toString();
Log.e("SEMOA","Message ariived to activity via Brodcasting");
                Toast.makeText(context,"Congratulations!!! got message: "+   incom.getBody(),Toast.LENGTH_LONG).show();
            }
            Log.e("SEMOA","Message ariived to activity via Brodcasting-----null");
        }
    };

```

and Sending broadcast from my Service: 

```
    Timer t = new Timer();
    t.scheduleAtFixedRate( new TimerTask() {
    @Override
    public void run() {

    Log.e("SEMOA", "IN RUNNABLE");
    try {
    if ((incom = (Message) SendRandom.ObjectInServercht.readUnshared()) == null)
    Log.e("ESMOA","No incumming messages!!!");
    else {

    myI.putExtra("body", incom.getBody());// myI is an intent
    myI.putExtra("From", incom.getFrom());
    myI.putExtra("To", incom.getTo());
    myI.putExtra("toGender", incom.getTogender());
    myI.putExtra("SenderGender", incom.my_gender);
    myI.putExtra("msgType", incom.type);
    myI.putExtra("url", incom.url);
    myI.putExtra("SenderID", incom.userID);

   myI.setAction("com.esmaeel.incomIM");
   try{
   seekNet.this.sendBroadcast(myI);
   Log.e("ESMOA","sendBroadcast!!");
   }catch(Exception e){
   Log.e("ESMOA","not sent sendBroadcast!! "+ e.toString());
   }

   }

```

the send part Success, I see: `Log.e("ESMOA","sendBroadcast!!");` result in logcat, 
but the receive function (onReceive) never run!

In the XML manifest file: `<receiver android:name="myreceiver">`, the value "myreceiver" apeare in red and unresolved!

May you point on the error?