You need to make a paid disable advertising in the Android application. Just done, adMob advertising. What do I need to do point by point to integrate InApp into the application?

Found a lot of different lessons from each other, so you need the help of the community ruSO.

  • I used these resources here. Everything worked out. Everything is working. Link1: habrahabr.ru/post/203368 Link2: habrahabr.ru/post/117944 - dubok79
  • @ dubok79, thanks! I read) Tell me, please, but you didn’t do a temporary outage of advertising: 1 month, 3 months, 1 year. And does this make sense? Share your opinion, please)) - web_alex
  • @ Dubok79, I read both articles, but I could not stick together into one working draft. You can throw implementation from and to? - web_alex
  • try reading this link: habrahabr.ru/post/233265 - dubok79
  • @ dubok79, read. In the comments speak badly about the library. I would love to introduce my own Google, but I could not figure out the sequence of actions myself - web_alex

1 answer 1

This link has an example (TrivialDrive) and instructions on how to integrate: http://developer.android.com/intl/ru/training/in-app-billing/preparing-iab-app.html#GetSample If in short, then:

  1. In the project, create folders "\ app \ src \ main \ aidl \ com \ android \ vending \ billing \" and in the last copy the file IInAppBillingService.aidl, it will automatically generate the code
  2. transfer the source code from the folder "\ TrivialDrive \ app \ src \ main \ java \ com \ example \ android \ trivialdrivesample \ util \" to your project
  • I already did it. What did you need to write in the MyFragment class MyFragment to make purchases? - web_alex
  • You must run the method "launchPurchaseFlow", for example: mHelper.launchPurchaseFlow (activity, SKU_TEST_PURCHASED, RC_REQUEST, mPurchaseFinishedListener, payload); - elron smith
  • It's over, it's great that you know the principle of operation, but I need a complete implementation principle with comments. Alas, but I did not understand the Google example, so I realized the purchase through a third-party library. - web_alex
  • @web_alex - how did you do? - Martinez Toni