- 分享
- 0
- 人气
- 0
- 主题
- 17
- 帖子
- 315
- UID
- 199933
- 积分
- 316
- 阅读权限
- 15
- 注册时间
- 2009-2-16
- 最后登录
- 2015-2-26
- 在线时间
- 264 小时
|
i have an own google in app billing SDK, which work at application A, but show unable to start receiver at application B. my log did receive those callback singed data from google service.. and i dont know why....hundred thanks if this problem is solve... Below is the log i receive...Please do let me know if another thing is necessary...- 03-03 19:05:05.135: I/BillingService(12572): Service starting with onCreate
- 03-03 19:05:05.135: I/BillingService(12572): Market Billing Service Successfully Bound
- 03-03 19:05:05.170: I/BillingService(12572): Market Billing Service Connected.
- 03-03 19:05:07.130: I/BillingService(12572): isBillingSupported response was: RESULT_OK
- 03-03 19:05:07.130: I/BillingService(12572): requestPurchase()
- 03-03 19:05:07.140: I/BillingService(12572): current request is:9096932744197679716
- 03-03 19:05:07.140: I/BillingService(12572): REQUEST_PURCHASE Sync Response code: RESULT_OK
- 03-03 19:05:11.110: I/BillingService(12572): Received action: com.android.vending.billing.IN_APP_NOTIFY
- 03-03 19:05:11.110: I/BillingService(12572): notify got id: android.test.purchased
- 03-03 19:05:11.110: I/BillingService(12572): getPurchaseInformation()
- 03-03 19:05:11.110: I/BillingService(12572): Nonce generateD: 5044355212491260364
- 03-03 19:05:11.135: I/BillingService(12572): current request is:1078848523662405957
- 03-03 19:05:11.135: I/BillingService(12572): GET_PURCHASE_INFORMATION Sync Response code: RESULT_OK
- 03-03 19:05:12.020: I/BillingService(12572): Received action: com.android.vending.billing.PURCHASE_STATE_CHANGED
- 03-03 19:05:12.020: I/BillingService(12572): purchaseStateChanged got signedData: {"nonce":5044355212491260364,"orders":[{"notificationId":"android.test.purchased","orderId":"transactionId.android.test.purchased","packageName":"com.kenjidemo.kenjidemo4","productId":"android.test.purchased","purchaseTime":1393844265334,"purchaseState":0}]}
- 03-03 19:05:12.020: I/BillingService(12572): purchaseStateChanged got signature:
- 03-03 19:05:12.020: I/BillingService(12572): signedData: {"nonce":5044355212491260364,"orders":[{"notificationId":"android.test.purchased","orderId":"transactionId.android.test.purchased","packageName":"com.kenjidemo.kenjidemo4","productId":"android.test.purchased","purchaseTime":1393844265334,"purchaseState":0}]}
- 03-03 19:05:12.025: D/AndroidRuntime(12572): Shutting down VM
- 03-03 19:05:12.025: W/dalvikvm(12572): threadid=1: thread exiting with uncaught exception (group=0x41cc02a0)
- 03-03 19:05:12.035: E/AndroidRuntime(12572): FATAL EXCEPTION: main
- 03-03 19:05:12.035: E/AndroidRuntime(12572): java.lang.RuntimeException: Unable to start receiver com.example.mfacesdk3.BillingReceiver: java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0
- 03-03 19:05:12.035: E/AndroidRuntime(12572): at android.app.ActivityThread.handleReceiver(ActivityThread.java:2277)
- 03-03 19:05:12.035: E/AndroidRuntime(12572): at android.app.ActivityThread.access$1500(ActivityThread.java:140)
- 03-03 19:05:12.035: E/AndroidRuntime(12572): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)
- 03-03 19:05:12.035: E/AndroidRuntime(12572): at android.os.Handler.dispatchMessage(Handler.java:99)
- 03-03 19:05:12.035: E/AndroidRuntime(12572): at android.os.Looper.loop(Looper.java:137)
- 03-03 19:05:12.035: E/AndroidRuntime(12572): at android.app.ActivityThread.main(ActivityThread.java:4898)
- 03-03 19:05:12.035: E/AndroidRuntime(12572): at java.lang.reflect.Method.invokeNative(Native Method)
- 03-03 19:05:12.035: E/AndroidRuntime(12572): at java.lang.reflect.Method.invoke(Method.java:511)
- 03-03 19:05:12.035: E/AndroidRuntime(12572): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1006)
- 03-03 19:05:12.035: E/AndroidRuntime(12572): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:773)
- 03-03 19:05:12.035: E/AndroidRuntime(12572): at dalvik.system.NativeStart.main(Native Method)
- 03-03 19:05:12.035: E/AndroidRuntime(12572): Caused by: java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0
- 03-03 19:05:12.035: E/AndroidRuntime(12572): at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:251)
- 03-03 19:05:12.035: E/AndroidRuntime(12572): at java.util.ArrayList.get(ArrayList.java:304)
- 03-03 19:05:12.035: E/AndroidRuntime(12572): at com.example.mfacesdk3.BillingHelper.verifyPurchase(BillingHelper.java:300)
- 03-03 19:05:12.035: E/AndroidRuntime(12572): at com.example.mfacesdk3.BillingReceiver.purchaseStateChanged(BillingReceiver.java:46)
- 03-03 19:05:12.035: E/AndroidRuntime(12572): at com.example.mfacesdk3.BillingReceiver.onReceive(BillingReceiver.java:28)
- 03-03 19:05:12.035: E/AndroidRuntime(12572): at android.app.ActivityThread.handleReceiver(ActivityThread.java:2270)
- 03-03 19:05:12.035: E/AndroidRuntime(12572): ... 10 more
- 03-03 19:05:12.060: D/dalvikvm(12572): GC_CONCURRENT freed 180K, 8% free 12352K/13319K, paused 4ms+3ms, total 23ms
复制代码 |
|