Genia S. Genia S. - 3 months ago 8
Android Question

How much memory is a block?

the documentation says that the results from getAvailableBlocksLong() is

the same as:
http://www.tutorialspoint.com/unix_system_calls/statvfs.htm

Are blocks == bytes?

Answer

In answer to your question:

Are blocks == bytes?

Not quite.

getAvailableBlocksLong() retrieves the number of blocks that are free on the file system and available to applications. Whereas getAvailableBytes retrieves the number of bytes that are free on the file system and available to applications.

Which, according to the Q&A getAvailableBlocksLong() * getBlockSizeLong() VS getAvailableBytes() are related by:

getAvailableBlocksLong() * getBlockSizeLong() = getAvailableBytes()