Toast Not Appearing On Android 4.4 KitKat
I have an application that uses Toast and I have tested it on a Samsung Galaxy II using Android 4.3 and it works fine. I have recently gotten a Nexus 5 running Android 4.4 KitKat a
Solution 1:
Use this instead of getApplicationContext()
Solution 2:
Better use YourActivity.this instead of getApplicationContext()
EDIT :
Code seems valid.the issue is either nexus or kitkat.
- give a try by rebooting your cell.
- give a try by firing the toast from
onResume(). just to make sure that it is working fine fromUI thread.
Post a Comment for "Toast Not Appearing On Android 4.4 KitKat"