Android应用内购买stream程被破解

我正在尝试使应用程序内购买stream程在我的应用程序中工作。 我使用http://developer.android.com/training/in-app-billing/preparing-iab-app.html(IabHelper等)的帮助类。 一切都很好,直到我付款。 返回到活动时,会引发此exception

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(PurchaseActivity.java:145) at android.app.Activity.dispatchActivityResult(Activity.java:5444) at android.app.ActivityThread.deliverResults(ActivityThread.java:3404) ... 11 more Caused by: java.security.spec.InvalidKeySpecException: java.lang.RuntimeException: error:0D07209B:asn1 encoding routines:ASN1_get_object:too long at org.apache.harmony.xnet.provider.jsse.OpenSSLRSAKeyFactory.engineGeneratePublic(OpenSSLRSAKeyF actory.java:52) at java.security.KeyFactory.generatePublic(KeyFactory.java:171) at com.sunlight.mangomonitor.util.Security.generatePublicKey(Security.java:87) ... 16 more Caused by: java.lang.RuntimeException: error:0D07209B:asn1 encoding routines:ASN1_get_object:too long at org.apache.harmony.xnet.provider.jsse.NativeCrypto.d2i_PUBKEY(Native Method) at org.apache.harmony.xnet.provider.jsse.OpenSSLRSAKeyFactory.engineGeneratePublic(OpenSSLRSAKeyfactory.java:48) 

我发现开始购买的活动可能会被破坏,那么我应该怎么做呢? 有什么build议么?

Related of "Android应用内购买stream程被破解"

调用该购买活动使用调用活动的结果concept.check onActivityResult()函数的结果是否使用RESULT_OKRESULT_CANCELLED以便您找出。