From 896e9744b0a997ab41482e2ff4a551193208b3cb Mon Sep 17 00:00:00 2001 From: quddusc Date: Mon, 6 Jan 2014 11:36:07 -0800 Subject: docs: Fixed declarations for ArrayList variables in the IAB V3 code snippets. Bug: 9316251 Change-Id: I06779c3f6318058e475621d57898c2982757df38 --- docs/html/google/play/billing/billing_integrate.jd | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/html/google/play/billing/billing_integrate.jd b/docs/html/google/play/billing/billing_integrate.jd index 949752a3ed9a..dba43cd1b864 100644 --- a/docs/html/google/play/billing/billing_integrate.jd +++ b/docs/html/google/play/billing/billing_integrate.jd @@ -174,7 +174,7 @@ Products training class and associated sample.

Querying for Items Available for Purchase

In your application, you can query the item details from Google Play using the In-app Billing Version 3 API. To pass a request to the In-app Billing service, first create a {@link android.os.Bundle} that contains a String {@link java.util.ArrayList} of product IDs with key "ITEM_ID_LIST", where each string is a product ID for an purchasable item.

-ArrayList skuList = new ArrayList();
+ArrayList<String> skuList = new ArrayList<String> ();
 skuList.add("premiumUpgrade");
 skuList.add("gas");
 Bundle querySkus = new Bundle();
@@ -196,7 +196,7 @@ Bundle skuDetails = mService.getSkuDetails(3,
 
 int response = skuDetails.getInt("RESPONSE_CODE");
 if (response == 0) {
-   ArrayList responseList 
+   ArrayList<String> responseList
       = skuDetails.getStringArrayList("DETAILS_LIST");
    
    for (String thisResponse : responseList) {
@@ -282,11 +282,11 @@ Bundle ownedItems = mService.getPurchases(3, getPackageName(), "inapp", null);
 
 int response = ownedItems.getInt("RESPONSE_CODE");
 if (response == 0) {
-   ArrayList ownedSkus = 
+   ArrayList<String> ownedSkus =
       ownedItems.getStringArrayList("INAPP_PURCHASE_ITEM_LIST");
-   ArrayList purchaseDataList = 
+   ArrayList<String>  purchaseDataList =
       ownedItems.getStringArrayList("INAPP_PURCHASE_DATA_LIST");
-   ArrayList signatureList = 
+   ArrayList<String>  signatureList =
       ownedItems.getStringArrayList("INAPP_DATA_SIGNATURE");
    String continuationToken = 
       ownedItems.getString("INAPP_CONTINUATION_TOKEN");
-- 
cgit v1.2.3-59-g8ed1b