diff options
author | volzhs <volzhs@gmail.com> | 2015-06-29 02:56:38 +0900 |
---|---|---|
committer | volzhs <volzhs@gmail.com> | 2015-06-29 02:56:38 +0900 |
commit | 903e6b37c0ed94cd0b3447dd3ff471abbfaa4460 (patch) | |
tree | ac8d600ef77c74509171051d65699fedfbae7321 /platform/android | |
parent | 584dd4db878d0a9ebf44dc529dad35bf8dd4796b (diff) |
fix crash by payments when run on android 5.1.1 device.
(http://stackoverflow.com/questions/24480069/google-in-app-billing-illegalargumentexception-service-intent-must-be-explicit)
Diffstat (limited to 'platform/android')
-rw-r--r-- | platform/android/java/src/com/android/godot/payments/PaymentsManager.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/platform/android/java/src/com/android/godot/payments/PaymentsManager.java b/platform/android/java/src/com/android/godot/payments/PaymentsManager.java index fd1a62738a..5bf86d0b69 100644 --- a/platform/android/java/src/com/android/godot/payments/PaymentsManager.java +++ b/platform/android/java/src/com/android/godot/payments/PaymentsManager.java @@ -47,8 +47,10 @@ public class PaymentsManager { } public PaymentsManager initService(){ + Intent intent = new Intent("com.android.vending.billing.InAppBillingService.BIND"); + intent.setPackage("com.android.vending"); activity.bindService( - new Intent("com.android.vending.billing.InAppBillingService.BIND"), + intent, mServiceConn, Context.BIND_AUTO_CREATE); return this; |