我已經在我的帳戶中使用靜態回覆ID android.test.purchased
實施了應用內購買。現在,當購買項目a Toast
彈出窗口說「謝謝你的項目將很快出現。」Android In App購買問題
我認爲到目前爲止,每件事情都很完美。
我的問題是
Toast
從哪裏來。我找不到我的代碼。Reserved product ID
?一旦我使用我自己的產品ID,它會改變嗎?@Override
public void onPurchaseStateChange(PurchaseState purchaseState, String itemId,
long purchaseTime, String developerPayload) {
if (purchaseState == PurchaseState.PURCHASED) {
// Is it here?
}
}
onPurchaseStateChange
用戶界面的修改?這裏是我的onPurchaseStateChange
梅索德
@Override
public void onPurchaseStateChange(PurchaseState purchaseState, String itemId,
long purchaseTime, String developerPayload) {
if (Consts.DEBUG) {
Log.i(TAG, "onPurchaseStateChange() itemId: " + itemId + " " + purchaseState);
}
if (purchaseState == PurchaseState.PURCHASED) {
for (CatalogEntry e : CATALOG) {
if (e.sku.equals(itemId) &&
e.managed.equals(Managed.SUBSCRIPTION)) {
}
}
}
Toast.makeText(getApplicationContext(), "purchase failed", Toast.LENGTH_LONG).show();
}
任何幫助將不勝感激! :) 謝謝!
http://stackoverflow.com/questions/8399963/android-in-app-billing-remove-default-toast-message – user1378730 2012-08-17 06:20:45
該鏈接現在返回404。有誰知道如何刪除吐司消息?或者可以指向正確的鏈接。 – marcel 2013-03-21 14:44:03
引用此鏈接,它可能會幫助你。 http://stackoverflow.com/questions/14197295/how-to-change-toast-message-that-comes-after-successfull-purchase-of-a-product-i – 2013-03-22 05:42:37