문제

From the doc , it said

To test in-app billing in an application you must install the 
application on an Android-powered device. You cannot use the 
Android emulator to test in-app billing.

But anyone have success in testing with Android x86 VM (http://www.android-x86.org)?

I suppose the VM should act like a real device and should be okay to test?

도움이 되었습니까?

해결책

The actual platform doesn't really matter. IAB uses the Android Market/Play store application to provide its services, so if you have that installed and properly working, you will be able to test. If not, you won't. Since the IAB code is platform-independent, you don't really need to test it on all platforms you need to support.

다른 팁

I found this project

Allows you to test in app billing applications directly from the emulator by simply adding a library and redirecting requests to a stub.

However I was not able to integrate this library with the sample code in extras/google/play_billing/

It would be very useful to write a step by step how to for the integration of this project in the sample code.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top