sharathg.satya -10 Posting Whiz in Training

this is my broadcastreceiver which will be invoked on receiving a message.
package com.dummies.castsBroad;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import android.widget.Toast;

public class BroadcastsActivity extends BroadcastReceiver {
/** Called when the activity is first created. */

public void onReceive(Context arg0, Intent arg1) {
    // TODO Auto-generated method stub

System.out.println("message is received ");
Toast.makeText(arg0, "text", 888).show();
Log.i("message","message is reveived and reveiver is invoked");

and the following is my manifest file.

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android=""
android:versionName="1.0" >

<uses-sdk android:minSdkVersion="8" />

    android:label="@string/app_name" >

            <action android:name="android.provider.Telephony.SMS_RECEIVED" />


i am not getting any toast message or console message or the logcat information.
Can any one help me in finding out what exactly the problem is.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.