Link :I worked on based on this Link
I added this line to find the size (both Internal and External) size,
return availableExternalMemorySize/(1024*1
You can use getTotalSpace (), getFreeSpace () or getUsableSpace () https://developer.android.com/reference/java/io/File.html
getTotalSpace ()
getFreeSpace ()
getUsableSpace ()
import java.io.File; import android.util.Log; .... File f = getMyFile(); Log.d("MyApp", f.getTotalSpace()+""); ....