summaryrefslogtreecommitdiffstats
path: root/docs/html/google/play
diff options
context:
space:
mode:
authorquddusc <quddusc@google.com>2014-01-14 20:28:55 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-01-14 20:28:56 +0000
commit72159ab085c48f4451ccf44a436e8b2122716fd4 (patch)
treed32066c1be68097a1c7df1b0bb9988b7888da438 /docs/html/google/play
parent85f98508366e8422f71553d2a5e682eb804c7419 (diff)
parent896e9744b0a997ab41482e2ff4a551193208b3cb (diff)
downloadframeworks_base-72159ab085c48f4451ccf44a436e8b2122716fd4.zip
frameworks_base-72159ab085c48f4451ccf44a436e8b2122716fd4.tar.gz
frameworks_base-72159ab085c48f4451ccf44a436e8b2122716fd4.tar.bz2
Merge "docs: Fixed declarations for ArrayList<String> variables in the IAB V3 code snippets. Bug: 9316251" into klp-docs
Diffstat (limited to 'docs/html/google/play')
-rw-r--r--docs/html/google/play/billing/billing_integrate.jd10
1 files 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 949752a..dba43cd 100644
--- a/docs/html/google/play/billing/billing_integrate.jd
+++ b/docs/html/google/play/billing/billing_integrate.jd
@@ -174,7 +174,7 @@ Products</a> training class and associated sample.</p>
<h3 id="QueryDetails">Querying for Items Available for Purchase</h3>
<p>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.</p>
<pre>
-ArrayList<String> skuList = new ArrayList<String>();
+ArrayList&lt;String&gt; skuList = new ArrayList&lt;String&gt; ();
skuList.add("premiumUpgrade");
skuList.add("gas");
Bundle querySkus = new Bundle();
@@ -196,7 +196,7 @@ Bundle skuDetails = mService.getSkuDetails(3,
<pre>
int response = skuDetails.getInt("RESPONSE_CODE");
if (response == 0) {
- ArrayList<String> responseList
+ ArrayList&lt;String&gt; responseList
= skuDetails.getStringArrayList("DETAILS_LIST");
for (String thisResponse : responseList) {
@@ -282,11 +282,11 @@ Bundle ownedItems = mService.getPurchases(3, getPackageName(), "inapp", null);
<pre>
int response = ownedItems.getInt("RESPONSE_CODE");
if (response == 0) {
- ArrayList<String> ownedSkus =
+ ArrayList&lt;String&gt; ownedSkus =
ownedItems.getStringArrayList("INAPP_PURCHASE_ITEM_LIST");
- ArrayList<String> purchaseDataList =
+ ArrayList&lt;String&gt; purchaseDataList =
ownedItems.getStringArrayList("INAPP_PURCHASE_DATA_LIST");
- ArrayList<String> signatureList =
+ ArrayList&lt;String&gt; signatureList =
ownedItems.getStringArrayList("INAPP_DATA_SIGNATURE");
String continuationToken =
ownedItems.getString("INAPP_CONTINUATION_TOKEN");