I am using the following code:
public class MyBillingService extends Service implements ServiceConnection { String TAG = "MyBillingService"; @Override public void onCreate() { super.onCreate(); Log.i(TAG, "onCreate"); try { boolean bindResult = getBaseContext().bindService( new Intent(IMarketBillingService.class.getName()), this, Context.BIND_AUTO_CREATE); if (bindResult) { Log.i(TAG, "Service bind successful."); } else { Log.e(TAG, "Could not bind to the MarketBillingService."); } } catch (SecurityException e) { Log.e(TAG, "Security exception: " + e); } } }
I also added IMarketBillingService.aidl , but still it looks like:
Failed to associate with MarketBillingService
Can you point out my mistake?
Vijay source share