Re: [android-developers] Send Manual Broadcast
This is not a broadcast an application is supposed to send, it is for you to receive. You aren't allowed to send it.
On Wed, Dec 23, 2009 at 1:41 AM, rezar <rrawasi@gmail.com> wrote:
I created an intend which manually calls BT broadcast receiver as
follows:
Intent manualIntent = new Intent();
manualIntent.setAction
(android.bluetooth.BluetoothDevice.ACTION_FOUND);
sendBroadcast(manualIntent);
But in Runtime I got the following Exception:
ERROR/AndroidRuntime(4054): Caused by: java.lang.SecurityException:
Permission Denial: not allowed to send broadcast
android.bluetooth.device.action.FOUND from pid=4054, uid=10050
I did not found any appropriate permission to enable me send
Broadcast. Does any body have the same problem here ?
I am working on a Droid phone.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--
Dianne Hackborn
Android framework engineer
hackbod@android.com
Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home