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

Question: on which Android versions is it needed and not needed? #15

Open
AndroidDeveloperLB opened this issue Feb 1, 2020 · 4 comments

Comments

@AndroidDeveloperLB
Copy link

Was this issue that this library handles ever been fixed?
If so, from which version?

@danielgalion
Copy link

@AndroidDeveloperLB I could only tell you that recently I've seen in Crashlytics an issue with AlertDialog that was giving an error of BadTokenException. It happened on Samsung and Xiaomi devices with Android 9.
The project is built with pre-AndroidX components with targetSdkVersion 28.
I don't know either on which exactly Android versions and devices it happens.

@AndroidDeveloperLB
Copy link
Author

AndroidDeveloperLB commented Feb 13, 2020

You mean that it can occur on Android 9, right?
Do you know the cause of it in Android code? Maybe this way you can compare between what you know in Android 9 and 10.

I don't think it matters about android-x.
It's a toast. Plus it gets converted anyway to android-x.
And seeing that you used only the annotations of the support library, you can convert to Kotlin and not use anything of the support library (and android-x).

BTW, what's with the eyes emoji?

@danielgalion
Copy link

danielgalion commented Feb 13, 2020

Yes, it seems it can occur because it has occured on Android 9. As I saw in Crashlytics of app deployed on Google Store.
I know only that it happened when the app was trying to call the show() method on the AlertDialog object. Unfortunately, nothing more.

I cannot reproduce the error in my Environment (Android 9 and 10 emulators and Samsung's smartphones with Android 5 and 6). I am just giving you (and maybe others) information that the issue happened. So, just in case you could also handle exceptions on the Android 9 version.

The eyes emoji means that I am also looking for the answer to your question.

@AndroidDeveloperLB
Copy link
Author

How come it happens anyway? Is Google aware of the issue? Is there a report here?
It occurs only for Samsung and Xiaomi devices?

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