Josh C.
Josh C.

Reputation: 83

Where is this toast coming from?

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
https://i.sstatic.net/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?

Upvotes: 8

Views: 3667

Answers (2)

Basant Singh
Basant Singh

Reputation: 5906

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

Upvotes: 45

Maulik Sheth
Maulik Sheth

Reputation: 574

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

Upvotes: 2

Related Questions