I think I can use Intent.ACTION_DEVICE_STORAGE_LOW within a broadcast receiver to notify me when the device storage is low. Explained here.
I know that I could find out how much space the user has available here.
However, I want to avoid having to set a boundary of what is/isn't enough space available if possible. The OS gives the user a notification when the storage is low.
Question: Is there anyway of only showing an in app error message on boot if the OS thinks the space available is low?