There is that, but also - IMarketBillingService is not the billing service class. It's the interface exposed by this service through binding.

Gustavo - see dungeons & potions sample code here:

http://developer.android.com/guide/market/billing/billing_integrate.html#billing-download

The correct code for binding to Market billing service is in BillingService.java, see method bindToMarketBillingService().

PS - I believe you copied your code from the online documentation. Looks wrong to me.

-- Kostya

24.03.2011 18:49, jotobjects пишет:
Probably that class is not in your application so an "explicit" intent
(with a class name) is not going to work.

On Mar 24, 4:04 am, Gustavo Costa<[email protected]>  wrote:
I'm trying start com.android.vending.billing.IMarketBillingService service
and I received this message. I'm using emulator Android 2.3.3 - API Level
10. Anybody help me?

03-23 15:04:53.535: WARN/ActivityManager(61): Unable to start service Intent { 
act=com.android.vending.billing.IMarketBillingService }: not found
03-23 15:04:53.535: ERROR/BillingService(416): Could not bind to service.

Code:

private boolean bindToMarketBillingService() {
     try {
         if (Consts.DEBUG) {
             Log.i(TAG, "binding to Market billing service");
         }
         boolean bindResult = bindService(
                 new Intent(IMarketBillingService.class.getName()),
                 this,
                 Context.BIND_AUTO_CREATE);

         if (bindResult) {
             return true;
         } else {
             Log.e(TAG, "Could not bind to service.");
         }
     } catch (SecurityException e) {
         Log.e(TAG, "Security exception: " + e);
     }
     return false;

}


--
Kostya Vasilyev -- http://kmansoft.wordpress.com

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to