Google Play Market:getServiceIntent

53 views
Skip to first unread message

Андрій Середенко

unread,
Jul 3, 2013, 12:03:19 PM7/3/13
to opf_o...@googlegroups.com
Hi!
I have some question in realization org.onepf.oms.appstore.Google : There is method public Intent getServiceIntent(String packageName, int serviceType) and it return null.
Is it bug? What is correct behavior?

Best regards,
Andrii

Yury Vasileuski

unread,
Jul 16, 2013, 1:24:06 AM7/16/13
to opf_o...@googlegroups.com
I guess, you are asking about this method:
 @Override
    public Intent getServiceIntent(String packageName, int serviceType) {
        if (serviceType == 0) {
            new Intent("com.android.vending.billing.InAppBillingService.BIND");
        }
        return null;
    }

If so, this method returns null for unsupported service types (for example of services to be supported see org.onepf.oms.AppstoreService.java). At this moment, only serviceType IN_APP_BILLING is supported, so null is retrurned for all others.

---
Yury
Reply all
Reply to author
Forward
0 new messages