ToastCompat
ToastCompat copied to clipboard
How can we reproduce this bad token exception
I found this exception randomly while testing my app and I am using toasts on a lot of places, it turns out I am running the app on a device with api 25, and you library seems to be the way forward.
Is it possible to provide a code from which I could reproduce this issue?
Toast.makeText(this,"test",Toast.LENGTH_SHORT).show(); try { Thread.sleep(10000); } catch (InterruptedException e) { e.printStackTrace(); }