More explicitly, recall that the permissions set in the manifest are
displayed to the user at -install- time. So that is when the
permissions must be set, not at run time. That in turn is why we
should not expect the ability to set it programatically.

On Jul 30, 6:22 am, Carlos Silva <r3...@r3pek.org> wrote:
> On Fri, Jul 30, 2010 at 14:09, RamaMohan <rama.mohan...@gmail.com> wrote:
> > HI all,
> > I want to add   <uses-permission> via programatically .I want to
> > telephone number of the device.For that i need to access the phone
> > state.But i need to add that permission only with Java code at
> > runtime.
> > Is it Possible to do so. (or)
> > Can you suggest any alternative way to read the telephone number .?
>
> Specify it the manifest. That's the purpose of it, warn the user about the
> permissions the application will need (among other things)
>
> There's no way to do that programatically.

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

Reply via email to