See if this helps out:

StatFs sfStats = new StatFs( this.getFilesDir().toString() );
Log.i( "SpaceCheck", "Free (bytes): " + ( sfStats.getAvailableBlocks() * 
sfStats.getBlockSize() ) );

That should get you the directory to the applications internal storage 
(hidden from the user unless rooted) and tell you how much available room 
there is in that location.

Here's links to the API documents for those:

http://developer.android.com/reference/android/os/StatFs.html
http://developer.android.com/reference/android/content/Context.html#getFilesDir%28%29

Steven
Studio LFP
http://www.studio-lfp.com


On Thursday, October 13, 2011 8:19:04 AM UTC-5, ramya wrote:
>
> Hi, 
> 1)I am converting an ipad project to android.In doing so,in ipad 
> version ,I can save the internal files in bundle (called Bundle 
> directory) and all the files are stored under documents which is 
> internal to app. 
>
> In android we have /data/data/{package name}/files 
>
> My Question is I should be able to store large data inside the 
> internal storage.Does tablet have large internal space ?I dont want to 
> save the files in sdcard either because it can be replaced or 
> something. 
>
> Is the device RAM used for internal storage of files?I am facing a 
> memory problem where as in ios we can have sufficient data stored in 
> sandbox...I need to copy files from assets to in internal storage 
> during run time(by files I mean large files). 
>
> Can somebody throw light on this.

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

Reply via email to