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.
Toast
displayed at the end of theAsyncTask
in this sample project works fine on my Nexus 7: github.com/commonsguy/cw-omnibus/tree/master/Threads/AsyncTask - CommonsWareAsyncTasks
- it still won't show (although I couldn't use the "getActivity()" method - I used mContext [set to "this" in the main activity] and MainActivity.this in place of that). - Mxyk