android - which way to implement in app billing? -


after reading android documentation on developer website, i've realized there 2 ways set purchase:

  1. create iabhelper instance base64 string , use request purchase... in no way mentions have use serviceconnection bind the iinappbillingservice android.

  2. there seems way have create serviceconnection binds iinappbillingservice, have create bundle etc.

is possible use way create iabhelperinstance , call methods on instance acquired trivialdrive app ?

iabhelper internally uses serviceconnection , binds service when startsetup() on iabhelper. docs state (http://developer.android.com/training/in-app-billing/preparing-iab-app.html), still have to include .aidl file in project iinappbillingservice.

i suggest alternatives iabhelper. many developers (myself included) have found numerous bugs in implementation. example, queryinventoryasync implementation not handle concurrency correctly. lot of crashes due iabhelper if use it.

there numerous alternatives on github.


Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -