From 0d7c87481b54d30f00d7977e85d6413118fc73d7 Mon Sep 17 00:00:00 2001 From: Paul Rashidi Date: Mon, 9 Nov 2015 11:08:53 -0800 Subject: [PATCH] Updating IAB training/overview to use Github and YouTube video. We've moved the IAB sample to GitHub so just directing the docs to use that location as well. Also included a reference to the YouTube video on this subject. Bug: 24603614,25080797 Change-Id: Ia7d2a3505255fc1ad1449e1798482b1e3be17991 --- .../google/play/billing/billing_overview.jd | 5 ++++ .../in-app-billing/preparing-iab-app.jd | 27 +++++++++++++++---- 2 files changed, 27 insertions(+), 5 deletions(-) diff --git a/docs/html/google/play/billing/billing_overview.jd b/docs/html/google/play/billing/billing_overview.jd index 4ec4946f79c6f..cc564689b5cd5 100644 --- a/docs/html/google/play/billing/billing_overview.jd +++ b/docs/html/google/play/billing/billing_overview.jd @@ -32,6 +32,11 @@ same look-and-feel as for app purchases.
  • Sample Application (V3)
  • +

    Related Videos

    +
      +
    1. Implementing + Freemium
    2. +
    diff --git a/docs/html/training/in-app-billing/preparing-iab-app.jd b/docs/html/training/in-app-billing/preparing-iab-app.jd index 17cd0d51e81b5..ca33008d3c158 100644 --- a/docs/html/training/in-app-billing/preparing-iab-app.jd +++ b/docs/html/training/in-app-billing/preparing-iab-app.jd @@ -30,18 +30,35 @@ next.link=list-iab-products.html + +
    +

    Video

    +

    Implementing Freemium

    +
    +
    +

    Before you can start using the In-app Billing service, you'll need to add the library that contains the In-app Billing Version 3 API to your Android project. You also need to set the permissions for your application to communicate with Google Play. In addition, you'll need to establish a connection between your application and Google Play. You should also verify that the In-app Billing API version that you are using in your application is supported by Google Play.

    Download the Sample Application

    In this training class, you will use a reference implementation for the In-app Billing Version 3 API called the {@code TrivialDrive} sample application. The sample includes convenience classes to quickly set up the In-app Billing service, marshal and unmarshal data types, and handle In-app Billing requests from the main thread of your application.

    To download the sample application:

      -
    1. Open the Android SDK Manager.
    2. -
    3. In the SDK Manager, expand the {@code Extras} section.
    4. -
    5. Select Google Play Billing Library.
    6. -
    7. Click Install packages to complete the download.
    8. +
    9. Open Android Studio and then close any open projects until you are +presented with the welcome screen.
    10. +
    11. Choose Import an Android code sample from the + Quick Start list on the right side the window.
    12. +
    13. Type {@code Trivial Drive} into the search bar and select the + Trivial Drive sample.
    14. +
    15. Follow the rest of the instructions in the Import Sample + wizard to import the sample to a directory of your choosing. The sample code + is in the TrivialDrive subdirectory of the repository.
    -

    The sample files will be installed to {@code <sdk>/extras/google/play_billing/}.

    + +

    Alternatively, you can use {@code git} to manually clone + the repository from https://github.com/googlesamples/android-play-billing

    Add Your Application to the Developer Console

    The Google Play Developer Console is where you publish your In-app Billing application and manage the various digital goods that are available for purchase from your application. When you create a new application entry in the Developer Console, it automatically generates a public license key for your application. You will need this key to establish a trusted connection from your application to the Google Play servers. You only need to generate this key once per application, and don’t need to repeat these steps when you update the APK file for your application.