Friday, February 25, 2011

[android-developers] Check permissions

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