Friday, February 25, 2011

[android-developers] Re: Check permissions

I don't think you understand how permissions work. Permissions are
NOT optional, if you ask for it, the user must accept it in order to
run your app. So there is no need to check.

On Feb 26, 3:17 pm, b_t <bartata...@gmail.com> wrote:
> Hi,
>
> What is the correct way to check if app has a permission, for example
> "android.permission.READ_SMS".
> I would like to create different versions of my app with the same code
> but different manifest xml with different permissions.
>
> So I would like to check runtime if this version has a permission or
> not.
>
> Thanks,
> Tamás

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