Buy Functionality in App (In Billing) [closed]

1

I would like to make my app have the option to buy functionality.

Type I made two apps, one paid (full) and one free (with advertisement).

I would like the person to click to buy remove the advertisement and add the activities related to the payment.

I saw that I have to do this using In Billing, but I only found it for purchase and product listing:

List additionalSkuList = new ArrayList();
additionalSkuList.add(SKU_APPLE);
additionalSkuList.add(SKU_BANANA);
mHelper.queryInventoryAsync(true, additionalSkuList,
   mQueryFinishedListener);

And price samples.

IabHelper.QueryInventoryFinishedListener
   mQueryFinishedListener = new IabHelper.QueryInventoryFinishedListener() {
   public void onQueryInventoryFinished(IabResult result, Inventory inventory)
   {
      if (result.isFailure()) {
         // handle error
         return;
       }

       String applePrice =
          inventory.getSkuDetails(SKU_APPLE).getPrice();
       String bananaPrice =
          inventory.getSkuDetails(SKU_BANANA).getPrice();

       // update the UI
   }
}

I would like to do with functionality. To:

  • Remove advertising
  • Add screen

Does anyone know a cool tutorial I can give?

Re: Establishing In-app Billing Products for Sale

    
asked by anonymous 09.07.2017 / 22:51

0 answers