8

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

Josh C.
  • 83
  • 1
  • 5

2 Answers2

45

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

Basant Singh
  • 5,736
  • 2
  • 28
  • 49
  • 6
    Just an FYI, I have been getting this toast as well and I also have ES File Explorer but the Show space low warning was disabled. so it must only be when I'm in Android Studio and I upload a file to the phone. – hoss Oct 10 '13 at 18:09
  • 2
    Yeah you are right.. I am also getting the Toast with the warning disabled. It comes when I update or install an app from Play Store. Looks like some bug in ES file explorer. PS: I am on a real device, not an emulator. – Basant Singh Oct 11 '13 at 08:26
  • The same in my case, it's shown every time I install apk from Android Studio. Must be ES file explorer's bug. – Micer Oct 12 '13 at 08:56
  • 1
    @hoss, I had the same thing on my real device. Even though it was unselected it kept showing the toast. Checking and then unchecking the option seems to have fixed it for me. – Jason Dec 12 '13 at 01:33
2

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

Maulik Sheth
  • 584
  • 3
  • 10
  • Yes, I am. I'll try running it on a couple of other devices w/o the ide to be sure, but this seems to be the reason. Thanks! Is this a recent feature? Because I don't remember this happening some months ago. – Josh C. Oct 06 '13 at 19:35
  • thanks for accepting the answer, however i am not sure if this is a new feature of ide :) happy coding! – Maulik Sheth Oct 06 '13 at 19:41