Thanh Hoan
New member
How do I check file size on android?
Answer
Answer
- Just a tip: To show the file size in a nice readable way on Android, you can use Formatter.formatShortFileSize(context,file.length()) – android developer Sep 6 ’18 at 8:27.
- Why are you serialising and deserialising the kilobytes-size to and from a string? – Tobiq May 4 ’19 at 20:52.