1. Check out our companion app, Forums for Android! Download from Google Play

Android: how to check availability of space on external storage

Discussion in 'Android Apps & Games' started by AndroiDev, Jul 2, 2010.

  1. AndroiDev

    AndroiDev Member
    Thread Starter
    5

    Jun 9, 2010
    8
    0
    5
    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
    16

    May 10, 2010
    49
    7
    16
    Aurora, IL
    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
    Thread Starter
    5

    Jun 9, 2010
    8
    0
    5
    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
    93

    Jun 2, 2010
    521
    131
    93

Share This Page

Loading...