Toast Notifications Not Showing Up on Nexus 7 Tablet

假如想象 提交于 2019-12-01 19:03:09

问题


I am trying to get a Toast notification to show up on my Nexus 7 tablet - however, they will not show. I use custom Toast messages throughout most of my app, but even something as simple as:

Toast.makeText(MyActivity.this, "generic toast message", Toast.LENGTH_LONG).show();

is not working.

I have tested this app on other devices, including a Nexus 1 phone (2.3), MyTouch (2.2), and Acer Iconia tablet (4.0). The toast messages appear on all other devices except this Nexus 7 tablet (4.1).

Is there a user setting that allows the disabling of Toast notifications in an application? Or are Toast messages handled differently post-4.1? These are my only ideas currently. I've searched this problem on Google and haven't gotten a single link regarding a similar issue.


回答1:


Maybe this post can help you.

Sounds like a bug.


Edit: In case the link dies, essentially:

Go to Settings -> Apps -> My_App and locate a little box labeled "Show Notifications" underneath it. If it is unchecked, check it.



来源:https://stackoverflow.com/questions/12056097/toast-notifications-not-showing-up-on-nexus-7-tablet

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!