Skip to content

Instantly share code, notes, and snippets.

@goldstei goldstei/ Secret
Last active Sep 22, 2017

What would you like to do?
IInAppBillingService mService;
ServiceConnection mServiceConn = new ServiceConnection() {
public void onServiceDisconnected(ComponentName name) {
mService = null;
public void onServiceConnected(ComponentName name, IBinder service) {
mService = IInAppBillingService.Stub.asInterface(service);
Bundle ownedItems = mService.getPurchases(3, getPackageName(),
"inapp", null);
// handle owned Items here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.