Configure FMX.InAppPurchase. Android in delphi xe7

I want to configure FMX.InAppPurchase.Android the way: C:\Program Files (x86)\Embarcadero\Studio\15.0\source\fmx

. When I changed any code of this device, the block compiled from the previous code, for example the source code of the module

  ServiceIntent := TJIntent.JavaClass.init(StringToJString('com.android.vending.billing.InAppBillingService.BIND'));
  ServiceIntent.setPackage(StringToJString('com.android.vending'));'

customize unit code

  ServiceIntent := TJIntent.JavaClass.init(StringToJString('xxx.bind'));
  ServiceIntent.setPackage(StringToJString('com.xxx.xxx'));

      

I want my app to connect to another billing service (xxx), but when the app is running, the app is connected to play in the store.

+3


source to share


1 answer


Create a customized version of FMX.InAppPurchase.Android

the project folder and add it to your project Project

Add to Project

.



When you do this, Delphi will compile and use your customized version instead of the original one.

+1


source







All Articles