Many developers use their apps to make money and earn a living. Over the years Google introduced many monetization methods for devs to get the most out of their hard work. Yesterday the company officially announced the Play Billing Library – Developer Preview 1.
The library includes several convenient classes and features for developers to use when integrating Android apps with the In-app Billing API. The library also provides an abstraction layer on top of the Android Interface Definition Language (AIDL) service, making defining the interface between your app and the In-app Billing API much easier.
In-app billing relies on the Google Play Store, which handles the communication between the app and Google's Play billing service. Using the billing features is very simple for the user, and is getting easier to implement as well.
You can try Google Play billing features in your app right now. If you want to use Play Billing features, you must request the com.android.vending.BILLING
permission in your AndroidManifest.xml
file. To use the library, add the following dependency in your build.gradle
file:
dependencies {
...
compile 'com.android.billingclient:billing:dp-1'
}
Google also updated the sample application to help developers understand how to implement the in-app billing in apps. The Trivial Drive has been rewritten and now works with Android TV and Android Wear. You can find a GitHub repository here. Finally, the company is now offering a new training class where they are explaining how to prepare your application, add products for purchase, purchase flow and much more. Give it a try!
Source: Android Developers
from xda-developers http://ift.tt/2sxQ86S
via IFTTT
No comments:
Post a Comment