Where is this toast coming from?

◇◆丶佛笑我妖孽 提交于 2019-12-21 10:17:02

问题


For some reason the app that I'm working on is displaying a toast that shows the internal storage space left on my device even though I didn't code this in.

Here is a screenshot
http://i.stack.imgur.com/z2ERU.png
And here is the code for the (only) activity.
http://pastie.org/8382286

As you can see, all of the toasts are commented out and I'm not even importing android.widget.Toast. Yet I'm still getting the toast shown in the screenshot.
Can anyone tell me why this is happening?


回答1:


Are you using your phone as an emulator? i get such message only when i use my phone as an emulator. such messages wont appear when you try running your app on any device. you get that toast only when app are run through your ide




回答2:


I was getting the same toast notification on my Android 4.1.1 device. Turns out it was ES File Explorer that was generating the toast. It has a setting that shows low storage notifications.

You can disable it by going to Settings > Display settings > Uncheck "Show low space warning".



来源:https://stackoverflow.com/questions/19212825/where-is-this-toast-coming-from

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