Thanks DonManfred, works fine, but this give the total folder size, and to know the % of free space, i need to get the total size of the ext sdcard.
An other idea ?
Sub Activity_Create(FirstTime As Boolean)
Dim os As OperatingSystem
Dim percentAvailable As Double
percentAvailable = 100-((os.getBlockCount(File.DirDefaultExternal) - os.getFreeBlocks(File.DirDefaultExternal))/os.getBlockCount(File.DirDefaultExternal)) * 100
Log("percentAvailable " & percentAvailable)
End Sub