From afc270bb755cdc49741412846db4cb74a3b05013 Mon Sep 17 00:00:00 2001
From: Bill Gruber
CHECK_BILLING_SUPPORTED—verifies that the Android Market application
supports in-app billing.REQUEST_PURCHASE—sends a purchase request for an in-app item.REQUEST_PURCHASE—sends a purchase request for an in-app item.GET_PURCHASE_INFORMATION—retrieves transaction information for a purchase
or refund.CONFIRM_NOTIFICATIONS—acknowledges that you received the transaction
@@ -584,9 +584,9 @@ interface.
// Note that the developer payload is optional.
if (mDeveloperPayload != null) {
request.putString(DEVELOPER_PAYLOAD, mDeveloperPayload);
+ }
Bundle response = mService.sendBillingRequest(request);
// Do something with this response.
- }
The makeRequestBundle() method constructs an initial Bundle, which contains the
three keys that are required for all requests: BILLING_REQUEST,
@@ -930,9 +930,9 @@ sent in response to billing requests.
public class BillingReceiver extends BroadcastReceiver {
-
+
private static final String TAG = "BillingReceiver";
-
+
// Intent actions that we receive in the BillingReceiver from Android Market.
// These are defined by Android Market and cannot be changed.
// 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_PURCHASE_STATE_CHANGED =
"com.android.vending.billing.PURCHASE_STATE_CHANGED";
-
+
// The intent extras that are passed in an intent from Android Market.
// These are defined by Android Market and cannot be changed.
// The sample application defines these in the Consts.java file.
--
cgit v1.2.3-59-g8ed1b