views:

145

answers:

1

Hello All

can my activity broadcast this intent from itself

Intent i = new Intent("android.provider.Telephony.SMS_RECEIVED");

sendBroadcast(i);

I am able to send this broadcast and receive it back (from a broadcast receiver setup in the application) , but this is not a global broadcast , i.e. it is not received by the default SMS application. furthermore i am getting this error in the logcat

Permission Denial: broadcasting Intent { act=android.provider.Telephony.SMS_RECEIVED } from com.smartanuj.scale (pid=3572, uid=10029) requires android.permission.BROADCAST_SMS due to receiver com.android.mms/com.android.mms.transaction.PrivilegedSmsReceiver

I have already specified

 <uses-permission> android:name="android.permission.BROADCAST_SMS"></uses-permission>

in my manifest file

+1  A: 

Only applications signed with the system key may broadcast the arrival of new SMS messages.

Christopher
That was what i was thinking. thanks anyways
Anuj Tenani