I am looking at the Android in-app billing tutorial here:
http://developer.android.com/guide/google/play/billing/billing_integrate.html
and they have an instruction to implement the iMarketBillingService. But I saw in another example that the ServiceConnection method was implemented.
Which one should it be?
I am having confusion because I am trying to do something like this:
Bundle request = makeRequestBundle("CHECK_BILLING_SUPPORTED");
Bundle response = mService.sendBillingRequest(request);
but not sure what mService variable should be. In the Dungeons tutorial from Andoroid, they have this: private BillingService mBillingService;
but when I try to do this:
Bundle response = mBillingService.sendBillingRequest(request);
I get a syntax error saying that the method sendBillingRequest is undefined for BillingService.
So essentially I am getting confused in my different services and interfaces that I need to be working with. Please help me understand what is the correct approach for me.
Thank you!