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