@@ -0,0 +1,1680 @@
+package com.bryanjswift.swiftnote.app;%0A%0Aimport android.os.Handler;%0Aimport android.os.Message;%0Aimport android.util.Log;%0Aimport com.android.vending.licensing.LicenseCheckerCallback;%0Aimport com.bryanjswift.swiftnote.Constants;%0A%0A/** @author bryanjswift */%0Apublic class SwiftNoteLicenseCallback  implements LicenseCheckerCallback %7B%0A    private static final String LOGGING_TAG = Constants.TAG + %22SwiftNoteLicenseCallback%22;%0A    /** Handler to send messages to the UI thread */%0A    private final Handler handler;%0A%0A    /**%0A     * Enable creation of Licensing callback that accepts a Handler for posting to the%0A     * UI thread%0A     * @param handler used to pass messages to UI thread%0A     */%0A    public SwiftNoteLicenseCallback(final Handler handler) %7B%0A        this.handler = handler;%0A    %7D%0A%0A    /**%0A     * @see com.android.vending.licensing.LicenseCheckerCallback#allow()%0A     */%0A    public void allow() %7B%0A        // No need to do anything really%0A        Message.obtain(handler, Constants.MESSAGE_LICENSE_VALID).sendToTarget();%0A    %7D%0A%0A    /**%0A     * @see com.android.vending.licensing.LicenseCheckerCallback#applicationError(com.android.vending.licensing.LicenseCheckerCallback.ApplicationErrorCode)%0A     */%0A    public void applicationError(final LicenseCheckerCallback.ApplicationErrorCode code) %7B%0A        Log.w(LOGGING_TAG, String.format(%22Error when checking license, %25s%22, code.toString()));%0A    %7D%0A%0A    /**%0A     * @see com.android.vending.licensing.LicenseCheckerCallback#dontAllow()%0A     */%0A    public void dontAllow() %7B%0A        // Kill the application and send toast about unlicensed software%0A        Message.obtain(handler, Constants.MESSAGE_LICENSE_INVALID).sendToTarget();%0A    %7D%0A%7D%0A

Add a LicenseCheckerCallback implementation