You could use the StatFs class (see
frameworks/base/core/java/android/os/StatFs.java) to figure out the space
available in a file system.  You would need to call this for each file
system you are interested in.  I would suggest using
android.os.Environment.getDataDirectory() to get the path to the data
directory, and android.os.Environment.getExternalStorageDirectory() to get
the path to the SD card mount point.


On Tue, Oct 28, 2008 at 9:27 AM, Iroid <[EMAIL PROTECTED]> wrote:

>
> Hello Everyone,
>
> How can I find the available space in the device?
> I could not find any API for the same :(
>
> I would appreciate your help !!
>
> Thanks
>
>
>
---
Mike Lockwood
Google android team

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to