Friday, July 27, 2012

Re: [android-developers] Regarding Application is not installed alert

It is fundamentally wrong to require a permission on your activity, and then publish intent filters for it that would allow other applications to try to launch it without explicitly expecting a permission (which means matching any standard filters such as MAIN for your main activities, VIEW, SEND, and on and on).

These are two completely incompatible things.  Publishing under one of these intent filters says "hey anyone who wants this standard kind of activity, you can find me and run me and not know anything else about me!"  Requiring a permissions says "hey you can only launch this activity if you explicitly know about this special behavior it has that requires you hold the appropriate permission to access."

Pick one or the other.  Not both.

On Wed, Jul 25, 2012 at 9:31 PM, Bunty syed <itsmeatforum@gmail.com> wrote:
 
Hi All,

Actually I have one launcher with some child apps.

I have given permission in all child apps so that only my launcher can launch them as follows
<permission android:name="android.permission.LAUNCH_KONY_POLICYINJECTED_APPS" android:protectionLevel="signature"/>

Tat is working fine. So with above, if any other application not signed with same keystore of child apps & not having required permission will get Permission denial exception while trying to launch the child apps .

Now my doubt is when I click any of  installed child Apps in the phone application menu, I am getting Alert saying that "Application is not installed.."
 Tat is a expected behavior.
But is there any way to customize that Alert message instead I want to display my alert message like "Plz launch from my launcher app".




--
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

No comments:

Post a Comment