OSDN Git Service

Fixing line in Market IAB docs that explains how to bind to the
authorTrevor Johns <trevorjohns@google.com>
Wed, 30 Mar 2011 18:30:09 +0000 (11:30 -0700)
committerTrevor Johns <trevorjohns@google.com>
Wed, 30 Mar 2011 21:19:40 +0000 (14:19 -0700)
MarketService.

We use the IMarketBillingService, which is incorrect. It should be
"com.android.vending.billing.MarketBillingService.BIND".

docs/html/guide/market/billing/billing_integrate.jd

index 26bda66..56e471e 100755 (executable)
@@ -296,7 +296,7 @@ parent.link=index.html
 <pre>
 try {
   boolean bindResult = mContext.bindService(
-    new Intent(IMarketBillingService.class.getName()), this, Context.BIND_AUTO_CREATE);
+    new Intent("com.android.vending.billing.MarketBillingService.BIND"), this, Context.BIND_AUTO_CREATE);
   if (bindResult) {
     Log.i(TAG, "Service bind successful.");
   } else {