Java tutorial
//package com.java2s; import android.content.Context; public class Main { public static boolean isFreeVersionInstalled(Context context) { return context.getPackageManager().checkSignatures(context.getPackageName(), "com.nolanlawson.keepscore") >= 0; } }