Skip to content

Instantly share code, notes, and snippets.

@goldstei goldstei/example2.java Secret
Last active Sep 22, 2017

Embed
What would you like to do?
IInAppBillingService mService;
ServiceConnection mServiceConn = new ServiceConnection() {
@Override
public void onServiceDisconnected(ComponentName name) {
mService = null;
}
@Override
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.