Good point, actually, I never though of someone just adding the permission and getting free use of some feature.
On Mon, Jan 16, 2012 at 9:31 PM, Kristopher Micinski <krismicin...@gmail.com > wrote: > > http://developer.android.com/reference/android/content/ContextWrapper.html#checkPermission(java.lang.String > , > int, int) > > A few libraries do this (admob, a few other libraries, etc...) to make > sure they don't break the program incase the developer accidentally > forgets to put the internet permission on (or in my case, if somebody > strips it off ;-)... > > However, it seems like the way you use this is a bit hackey, you might > want to think of a better way to design your code to determine what > functionality you need than checking for a permission.. (This isn't > meant as an insult, but, for example, what happens if somebody takes > your unpaid version, adds the contacts permission, and suddenly gets > the paid functionality?) > > kris > > On Mon, Jan 16, 2012 at 9:06 PM, James Black <planiturth...@gmail.com> > wrote: > > Hello, > > I have a paid version of a program that will go to the contacts > provider, > > but the free version doesn't. > > > > So, in the manifest file I have it set for the paid app. > > > > But, both versions go to the same function to use what was entered, > as, if > > the data isn't a contact then the program calls a webservice. > > > > Right now I just catch the SecurityException, and that works, but I am > not > > happy with this solution, and I am curious if there is a better way. > > > > -- > > "I know that you believe you understand what you think I said, but I'm > not > > sure you realize that what you heard is not what I meant." > > - Robert McCloskey > > > > -- > > 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 > > -- > 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 -- "I know that you believe you understand what you think I said, but I'm not sure you realize that what you heard is not what I meant." - Robert McCloskey -- 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