how to get the available file system space on android?
<p>I tried using the following code</p>

<pre><code>    MemoryInfo mi = new MemoryInfo();
    ActivityManager activityManager = (ActivityManager)       
    getSystemService(ACTIVITY_SERVICE);
    activityManager.getMemoryInfo(mi);
    long availableMegs = mi.availMem / 1048576L;
    return availableMegs;
</code></pre>

<p>but I think this gives me the available RAM memory or am I wrong? Is it possible to find the available file system memory?</p>

<p>thanks</p>
