Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

How to get available free space on device?

$
0
0

I am developing an Android application using Xamarin Forms. I am using "IsolatedStorageFile.AvailableFreeSpace" property to get the available free space on device. This works perfectly on windows phone but gives incorrect value on Android (always give the value - "9223372036854775807" irrespective of device/emulator). I tried enabling the “external storage” option in the manifest but still got the wrong free memory value.

I have attached a sample project for the same.

Please let me know if anyone has faced such issue. Also is there an alternate way, say using PCL and PCLStorage instead of shared project.

Regards,

Deepesh.


Viewing all articles
Browse latest Browse all 58056

Trending Articles