Why do I get a ClassCastException?
<p>I am getting a <code>ClassCastException</code> on running this simple application.</p>

<p>I'm trying to use the <code>AlarmManager</code> for the first time.</p>

<pre><code>public class AlarmReciever extends BroadcastReceiver {

     @Override
     public void onReceive(Context context, Intent intent) {
       try {
         Bundle bundle = intent.getExtras();
         String message = bundle.getString("alarm_message");
         Toast.makeText(context, message, Toast.LENGTH_SHORT).show();
        } catch (Exception e) {
         Toast.makeText(context, "There was an error somewhere, but we still received an alarm", Toast.LENGTH_SHORT).show();
         e.printStackTrace();

        }
     }

    }
</code></pre>

<p>this is my manisfest:</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.tcs.mine"
      android:versionCode="1"
      android:versionName="1.0"&gt;
    &lt;application android:icon="@drawable/icon" android:label="@string/app_name"&gt;
         &lt;activity android:name=".AlarmReciever"
                  android:label="@string/app_name"&gt;
            &lt;intent-filter&gt;
                &lt;action android:name="android.intent.action.MAIN" /&gt;
                &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
            &lt;/intent-filter&gt;
        &lt;/activity&gt;
  &lt;receiver  android:process=":remote" android:name=".AlarmReceiver"&gt;&lt;/receiver&gt;
 &lt;/application&gt;
&lt;/manifest&gt; 
</code></pre>

<p>What am I doing wrong?</p>
