Android – What is the maximum file size that setMaxFileSize can be set to in respect to Androids mediarecorder? I know it’s somewhere between 4147483650 and 5147483650. Why is there a limit in the first place?
I’m recording on to a SDCARD, detecting the size of the cards space before we run.
“ERROR/AuthorDriver(31): setParameter(max-filesize = 7270309850) failed with result -5”
“ERROR/AuthorDriver(31): Ln 903 handleSetParameters(“max-filesize=7270309850″) error”
“ERROR/AndroidRuntime(409): java.lang.RuntimeException: setMaxFileSize failed.”
SD cards use the msdos (FAT16) filesystem, which has a file size limit. This is not an Android limitation, but a limitation of SD cards in general.