2

I wanted to know if there was a size limit to the data files an android app can use or a size limit depending on the SD card (or internal memory) filesystem ?

Cheers

Olivier

Programmer Bruce
  • 64,977
  • 7
  • 99
  • 97
algorithme
  • 113
  • 1
  • 5

1 Answers1

4

The file size limit is determined by the filesystem. FAT32, for instance, cannot handle files larger than 4GB. Unfortunately, it is fairly likely that your microSD card is formatted in FAT32.

For Android 2.2 and older, the internal file system is YAFFS. The author, Charles Manning, states in this mailing that the maximum file size is 512 MB. It has been announced that Android 2.3 will use ext4.

It might be possible to format your SD card to this format as well, but I haven't tried it. Bear in mind that you won't be able to read the contents under Windows or OS X.

See also the answers in this topic.

Community
  • 1
  • 1
Paul Lammertsma
  • 37,593
  • 16
  • 136
  • 187
  • Thanks ! :) So no way to play most HD movies without another encoding... :( – algorithme Mar 07 '11 at 16:23
  • On external storage, it's only a problem if it's greater than 4GB. I'm not sure if Android supports NTFS file format, but if it does, you could try it with an empty microSD card; format the card to NTFS and put a >4GB video on there. – Paul Lammertsma Mar 07 '11 at 18:38
  • [It seems that Android doesn't support NTFS.](http://androidforums.com/samsung-captivate/132267-ntfs-android.html) The suggestion there is to use the ext3 filesystem. – Paul Lammertsma Mar 07 '11 at 18:40