Android Development
How to get size of the app data in Android
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. long sizeOfCacheDir = getCacheDirSize(getCacheDir()); textViewSize.setText(“Cache dir size = ” + sizeOfCacheDir + ” bytes”); Where : private Read more…