Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FATAL EXCEPTION when close leaderboard and use IAP extension at the same time #21

Open
revanaii opened this issue Mar 1, 2016 · 1 comment

Comments

@revanaii
Copy link

revanaii commented Mar 1, 2016

Not sure how this library and the IAP extension https://github.com/openfl/extension-iap correlate, but I get this error when I try to close the leaderboard:

E/OpenAL_SLES(12533): openal suspend E/dalvikvm(12924): Could not find class 'android.app.ActivityManager$TaskDescrip tion', referenced from method com.google.android.gms.games.ui.client.ClientFragm entActivity.instantiateGoogleApiClient E/dalvikvm(12924): Could not find class 'com.google.android.gms.games.ui.GamesFr agmentActivity$1', referenced from method com.google.android.gms.games.ui.GamesF ragmentActivity.onCreate E/dalvikvm(12924): Could not find class 'android.app.ActivityManager$TaskDescrip tion', referenced from method com.google.android.gms.games.ui.GamesFragmentActiv ity.updateTaskDescription E/dalvikvm(12924): Could not find class 'android.graphics.drawable.RippleDrawabl e', referenced from method com.google.android.gms.games.ui.util.UiUtils.construc tButtonBackground E/alsa_ucm( 345): del_from_list: Empty list E/alsa_ucm( 345): Modifier not enabled currently, invalid modifier E/dalvikvm(12924): Could not find class 'android.widget.ThemedSpinnerAdapter', r eferenced from method android.support.v7.widget.AppCompatSpinner$DropDownAdapter .<init> E/IabHelper(12533): In-app billing error: Illegal state for operation (handleAct ivityResult): IAB helper is not set up. E/AndroidRuntime(12533): FATAL EXCEPTION: main

When I disable the IAP extension, the error disappears.

@revanaii revanaii changed the title FATAL EXCEPTION when close leaderboard and use IAP extension in the game FATAL EXCEPTION when close leaderboard and use IAP extension at the same time Mar 1, 2016
@fbricker
Copy link
Contributor

Hmmm... Google Play Games opens a new activity and pauses the OpenFL's mainActivity. When you close the GPG UI, the mainActivity gets re-activated.

I understand that IAP puts some handles on the activity pause/resume events. I think this should be fixed inside IAP extension, or maybe you need to check how are you integrating IAP on your game.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants