KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm trying to make in-app purchase flow work in my app. I use helper classes from http://developer.android.com/training/in-app-billing/preparing-iab-app.html (IabHelper etc.). Everything's fine until I make payment. When returning to activity, this exception is raised java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=10001, result=-1, data=Intent { (has extras) }} to activity {com.sunlight.mangomonitor/com.sunlight.mangomonitor.PurchaseActivity}: java.lang.IllegalArgumentException: java.security.spec.InvalidKeySpecException: java.lang.RuntimeException: error:0D07209B:asn1 encoding routines:ASN1_get_object:too long at android.app.ActivityThread.deliverResults(ActivityThread.java:3408) at android.app.ActivityThread.handleSendResult(ActivityThread.java:3451) at android.app.ActivityThread.access$1200(ActivityThread.java:154) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1332) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:5296) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.IllegalArgumentException: java.security.spec.InvalidKeySpecException: java.lang.RuntimeException: error:0D07209B:asn1 encoding routines:ASN1_get_object:too long at com.sunlight.mangomonitor.util.Security.generatePublicKey(Security.java:92) at com.sunlight.mangomonitor.util.Security.verifyPurchase(Security.java:66) at com.sunlight.mangomonitor.util.IabHelper.handleActivityResult(IabHelper.java:460) at com.sunlight.mangomonitor.PurchaseActivity.onActivityResult(Purc
Tags (comma-separated)
Save Edits
Cancel