开发者

In App Purchase Application crash if click on back button or on pruchase button

im trying to implement in app purchase to my android application i used the Google dungeon sample to add it to my code

Now my problem if i choose a item to purchase and then on my buy button the billing site open but if i click on purchase button or on my back button (if i dont want to purchase) my app crash

may anyone of you know what my problem is =( i already searched for long time to find it the exception is called RuntimeException on ActivityThread.handleReveiver(ActivityT开发者_运维问答hread$ReveiverData)


hope this helps you. When I copied the manifest entries over:

service android:name="BillingService" /> 

receiver android:name="BillingReceiver">
intent-filter>
action android:name="com.android.vending.billing.IN_APP_NOTIFY" />
action android:name="com.android.vending.billing.RESPONSE_CODE" />
action android:name="com.android.vending.billing.PURCHASE_STATE_CHANGED" />
intent-filter>
receiver>

I was getting your same error, I had to change the BillingService and the BillingReciever name to this:

service android:name = "com.epl.android.google.apis.BillingService"

and

receiver android:name="com.epl.android.google.apis.BillingReceiver"

Obviously the com.epl.android.google.apis is my "package" name, changed it to that in the manifest file, I am all good to go now!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜