How do I check file size on android?

Thanh Hoan

New member
How do I check file size on android?
Answer
  1. 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.
  2. Why are you serialising and deserialising the kilobytes-size to and from a string? – Tobiq May 4 ’19 at 20:52.
22 янв. 2020 г.
 

Tìm kiếm

Back
Top