Home » Android » android – Where is this toast coming from?

android – Where is this toast coming from?

Posted by: admin June 15, 2020 Leave a comment

Questions:

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?

How to&Answers:

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

Answer:

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”.