开源软件名称(OpenSource Name):robotmedia/AndroidBillingLibrary开源软件地址(OpenSource Url):https://github.com/robotmedia/AndroidBillingLibrary开源编程语言(OpenSource Language):Java 98.5%开源软件介绍(OpenSource Introduction):UpdateIn-app Billing v2 API is deprecated and will be shut down in January 2015. This library was developed for v2 a long time ago. If your app is still using this library, please migrate to the v3 API as soon as possible. The project Android Checkout Library by @serso supports v3 and attemps to provide data compatibility with AndroidBillingLibrary. We haven't verified this so please use it at your own discretion. Android Billing Library
That's how simple it should be to use Android In-app Billing. And with this library it is. Android Billing Library implements in-app billing's full specification and offers high-level classes to use it. Transactions are stored in a local obfuscated database which can be easily queried. Getting Started
...and this service and receiver inside the application element:
That's it! UsageSubclassing AbstractBillingActivityAbstractBillingActivity is an abstract activity that provides default integration with in-app billing (an analogous class for fragments is also provided). It is useful to get acquainted with the library, or for very simple applications that require in-app billing integration in only one activity. For more flexibility use BillingController directly. When created your AbstractBillingActivity instance will check if in-app billing is supported, followed by a call to Additionally, your AbstractBillingActivity subclass will attempt to restore all transactions, only once. This is necessary in case the user has previously installed the app and made purchases. Existing transactions will generate calls to Starting a purchase is as simple as calling If you override any of the methods provided by AbstractBillingActivity, make sure to call the superclass implementation. BillingControllerBillingController provides high-level functions to interact with the Billing service and to query an obfuscated local transaction database. Since most billing functions are asynchronous, BillingController notifies all registered IBillingObserver of the responses. Additionally, BillingController requires a Dungeons ReduxDungeons Redux is a sample app that shows how to use Android Billing Library via BillingController. It is a simplified version of the Dungeons in-app billing example provided by Google. It should be noted that Dungeons Redux does not intend to be an example of how to use in-app billing in general. Contacthttp://www.twitter.com/robotmedia | http://www.facebook.com/robotmedia | http://www.robotmedia.net LicenseCopyright 2011 Robot Media SL (http://www.robotmedia.net) Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论