2

This one表示我將使用getBuyIntent()啓動購買流程,而another one告訴我使用launchPurchaseFlow()。用於應用內結算的getBuyIntent()和launchPurchaseFlow()方法有什麼區別?

我應該使用哪一個?

+0

intresting ..兩個看起來都和我一樣。我們使用lauchPurchaseFlow()沒有任何問題。即使在github上的google-play-services給出的例子使用launchPurchaseflow()https://github.com/googlesamples/android-play-billing,希望有人可以給出使用第一個的確切原因 –

+0

@AmodGokhale upvote它,所以我們可以得到答案 –

回答

1

要在app-billing中使用,您必須使用IInAppBillingService。第一個鏈接是關於這個服務API。第二個鏈接(培訓部分)用IInAppBillingService的包裝器來解釋示例,因此underneath它也使用getBuyIntent()

相關問題