To preserve on-device memory, how might you determine that the user's device has limited storage capabilities?
Make an image download request and check the remaining device storage usage.
Use the ActivityManager.isLowRamDevice() method to find out whether a device defines itself as "low RAM."
ActivityManager.isLowRamDevice()
Use the Activity.islowRam() method to find out whether a device defines itself as "low RAM."
Activity.islowRam()
Use the ConnectivityManager.hasLowMemory() method to find out whether a device defines itself as "low RAM."
ConnectivityManager.hasLowMemory()