문제

According to the Android reference page, FileBackupHelper should "be used only with small configuration files, not large binary files."

I managed to successfully backup a database file of 8 kilobytes, but I'm curious at what point a file becomes a "large" binary file. Do you think Android is referring to files in the megabyte range?

도움이 되었습니까?

해결책

I believe there is no hardcoded limit in Android source code (which defines "large" vs "small"). At least, I didn't find within 10 minutes looking through Android source.

Generally speaking, you should take into consideration a speed of wireless connection. It depends a lot on where you and your users are located. If it's major cities with 3G/4G coverage - I think you can backup a megabyte, if's rural area and your users are charged per kilobyte, I would rather scale back to dozens of kilobytes.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top