@@ -0,0 +1,1208 @@
+package com.sometrik.framework;%0D%0A%0D%0Aimport com.android.vending.billing.IInAppBillingService;%0D%0A%0D%0Aimport android.app.Activity;%0D%0Aimport android.content.ComponentName;%0D%0Aimport android.content.Context;%0D%0Aimport android.content.Intent;%0D%0Aimport android.content.ServiceConnection;%0D%0Aimport android.os.IBinder;%0D%0A%0D%0Apublic class PurchaseHelper %7B%0D%0A%09%0D%0A%09IInAppBillingService mService;%0D%0A%09private static PurchaseHelper instance = null;%0D%0A%0D%0A%09public static PurchaseHelper getInstance() %7B%0D%0A%09%09if (instance == null) %7B%0D%0A%09%09%09instance = new PurchaseHelper();%0D%0A%09%09%7D%0D%0A%09%09return instance;%0D%0A%09%7D%0D%0A%0D%0A%09ServiceConnection mServiceConn = new ServiceConnection() %7B%0D%0A%09%09@Override%0D%0A%09%09public void onServiceDisconnected(ComponentName name) %7B%0D%0A%09%09%09mService = null;%0D%0A%09%09%7D%0D%0A%0D%0A%09%09@Override%0D%0A%09%09public void onServiceConnected(ComponentName name, IBinder service) %7B%0D%0A%09%09%09mService = IInAppBillingService.Stub.asInterface(service);%0D%0A%09%09%7D%0D%0A%09%7D;%0D%0A%0D%0A%09protected PurchaseHelper() %7B%0D%0A%09%7D%0D%0A%0D%0A%09public void createConnection(Activity activity) %7B%0D%0A%09%09Intent serviceIntent = new Intent(%22com.android.vending.billing.InAppBillingService.BIND%22);%0D%0A%09%09serviceIntent.setPackage(%22com.android.vending%22);%0D%0A%09%09activity.bindService(serviceIntent, mServiceConn, Context.BIND_AUTO_CREATE);%0D%0A%09%7D%0D%0A%0D%0A%7D%0D%0A

Add PurchaseHelper