Here is few lines how to get size of directory in Android.
To get size of directory you need sum sizes of all files in this directory and subdirectories.

So, we need recursion.

Where :

Short sample project here on my github:

Download it from github


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.