1. Introducing Channels - a new way to chat with other Android users!
    Dismiss Notice

Android: how to check availability of space on external storage


Last Updated:

  1. AndroiDev

    AndroiDev Member This Topic's Starter

    Joined:
    Jun 9, 2010
    Messages:
    8
    Likes Received:
    0
    Hi folks,
    How do you check if the SD card is full or not so that your application can decide if it can continue to do its job i.e. write to external storage or notify the user that storage has run out of space.
    Cheers
     

    Advertisement
  2. Zezozose

    Zezozose Well-Known Member

    Joined:
    May 10, 2010
    Messages:
    49
    Likes Received:
    7
    Quick Settings is a great app, and it will tell you how much space you have on your SD card. You can also just look under settings/sd card and phone storage. You can set it to have an icon in the notification bar which sound like it would be handy for you if you need to check it often.

    I also use an widget called mini info which gives me my battery level, sd level, and internal memory level. You can then tap it for more information. Keep in mind that the sd and internal levels will not update "live", so a recent change may cause the readout to be inaccurate for a little bit.
     
  3. AndroiDev

    AndroiDev Member This Topic's Starter

    Joined:
    Jun 9, 2010
    Messages:
    8
    Likes Received:
    0
    Could you share the widget mini info please? My application has to access the SD card and decide if there is enough memory on it to write to in runtime.
    Is that what mini info does?
     
  4. rtb35

    rtb35 Well-Known Member

    Joined:
    Jun 2, 2010
    Messages:
    521
    Likes Received:
    131

Share This Page

Loading...