I know how permissions work. I'm thinking about creating two apk-s with different manifest, different required permissions. I don't want the source code to be changed. That is why I would like to check permission realtime.
Kevin, so can I use that method in this way? packageManager.checkPermission("android.permission.READ_SMS", myPackage) == PERMISSION_GRANTED; I didn't know that I should use this method or the SecurityManager. Zsolt, I wish we could declare a permission as optional. This is a very hard decision to add new permission requirement to the app. Maybe it can improve the funcionality of the app, but there will be users who complain about the new permission, uninstall the app or give you 1 star. -- 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