* commit 'c7b354810e9caebe1d4c79d8a2e756f3c194e68f': IAB Doc Fix: Error in code snippet Bug 5221766
This commit is contained in:
@@ -476,7 +476,7 @@ key can have the following five values:</p>
|
|||||||
<ul>
|
<ul>
|
||||||
<li><code>CHECK_BILLING_SUPPORTED</code>—verifies that the Android Market application
|
<li><code>CHECK_BILLING_SUPPORTED</code>—verifies that the Android Market application
|
||||||
supports in-app billing.</li>
|
supports in-app billing.</li>
|
||||||
<li><code>REQUEST_PURCHASE</code>—sends a purchase request for an in-app item.</li>
|
<li><code>REQUEST_PURCHASE</code>—sends a purchase request for an in-app item.</li>
|
||||||
<li><code>GET_PURCHASE_INFORMATION</code>—retrieves transaction information for a purchase
|
<li><code>GET_PURCHASE_INFORMATION</code>—retrieves transaction information for a purchase
|
||||||
or refund.</li>
|
or refund.</li>
|
||||||
<li><code>CONFIRM_NOTIFICATIONS</code>—acknowledges that you received the transaction
|
<li><code>CONFIRM_NOTIFICATIONS</code>—acknowledges that you received the transaction
|
||||||
@@ -584,9 +584,9 @@ interface.</p>
|
|||||||
// Note that the developer payload is optional.
|
// Note that the developer payload is optional.
|
||||||
if (mDeveloperPayload != null) {
|
if (mDeveloperPayload != null) {
|
||||||
request.putString(DEVELOPER_PAYLOAD, mDeveloperPayload);
|
request.putString(DEVELOPER_PAYLOAD, mDeveloperPayload);
|
||||||
|
}
|
||||||
Bundle response = mService.sendBillingRequest(request);
|
Bundle response = mService.sendBillingRequest(request);
|
||||||
// Do something with this response.
|
// Do something with this response.
|
||||||
}
|
|
||||||
</pre>
|
</pre>
|
||||||
<p>The <code>makeRequestBundle()</code> method constructs an initial Bundle, which contains the
|
<p>The <code>makeRequestBundle()</code> method constructs an initial Bundle, which contains the
|
||||||
three keys that are required for all requests: <code>BILLING_REQUEST</code>,
|
three keys that are required for all requests: <code>BILLING_REQUEST</code>,
|
||||||
@@ -930,9 +930,9 @@ sent in response to billing requests.</p>
|
|||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
public class BillingReceiver extends BroadcastReceiver {
|
public class BillingReceiver extends BroadcastReceiver {
|
||||||
|
|
||||||
private static final String TAG = "BillingReceiver";
|
private static final String TAG = "BillingReceiver";
|
||||||
|
|
||||||
// Intent actions that we receive in the BillingReceiver from Android Market.
|
// Intent actions that we receive in the BillingReceiver from Android Market.
|
||||||
// These are defined by Android Market and cannot be changed.
|
// These are defined by Android Market and cannot be changed.
|
||||||
// The sample application defines these in the Consts.java file.
|
// The sample application defines these in the Consts.java file.
|
||||||
@@ -940,7 +940,7 @@ public class BillingReceiver extends BroadcastReceiver {
|
|||||||
public static final String ACTION_RESPONSE_CODE = "com.android.vending.billing.RESPONSE_CODE";
|
public static final String ACTION_RESPONSE_CODE = "com.android.vending.billing.RESPONSE_CODE";
|
||||||
public static final String ACTION_PURCHASE_STATE_CHANGED =
|
public static final String ACTION_PURCHASE_STATE_CHANGED =
|
||||||
"com.android.vending.billing.PURCHASE_STATE_CHANGED";
|
"com.android.vending.billing.PURCHASE_STATE_CHANGED";
|
||||||
|
|
||||||
// The intent extras that are passed in an intent from Android Market.
|
// The intent extras that are passed in an intent from Android Market.
|
||||||
// These are defined by Android Market and cannot be changed.
|
// These are defined by Android Market and cannot be changed.
|
||||||
// The sample application defines these in the Consts.java file.
|
// The sample application defines these in the Consts.java file.
|
||||||
|
|||||||
Reference in New Issue
Block a user