Hello. Iam trying to create a If statment based on thsi protected static boolean.
protected static boolean isProInstalled(Context context) { PackageManager manager = context.getPackageManager(); if (manager.checkSignatures(context.getPackageName(), "packagename.to.search.for") == PackageManager.SIGNATURE_MATCH) { //Pro key installed, and signatures match return true; } return false; } And then i try with this: if (isProInstalled(null) { //code when true } And that will throw me a NullPointerException. I guess that its something simple, but maybe somebody could point me in the right direction here? -- 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