[android-developers] Problem with broadcasts and permissions

2010-09-15 Thread Heiko
Hi,

I have two applications, one of which (B) implements a broadcast
receiver. The application (A) which sends the broadcast, binds a
permission to it which the receiver (B) shall possess. The problem is
now: If I install the receiver (B) first and the sender (A)
afterwards, the receiver will never receive the broadcast.
I assume this happens because the installation of the receiver
somewhere fails when it comes to the uses permission part of the
manifest (because this permission is not yet registered/defined).
However, this issue should be resolved as soon as the sender (which
defines the permission in the manifest) is installed, but
unfortunately isn't.

It does not even help to re-install the receiver. The only way to
resolve the issue is to completely uninstall the receiver application
and do a fresh install.

Is this behaviour intended (not a bug, a feature)?

Cheers,
Heiko

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Problem with broadcasts and permissions

2010-09-15 Thread Mark Murphy
On Wed, Sep 15, 2010 at 4:33 AM, Heiko heiko.wi...@gmail.com wrote:
 Is this behaviour intended (not a bug, a feature)?

Based on a previous discussion of this topic in this group, I think
the answer is bug or at least implementation gap.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en