How do I know how much memory is available for my app on the fly? My app downloads some bitmaps and saves (in memory) them so not to bug the user by downloading it again. But the Java's heap is only 16MB, as far as I know, so I will need to handle some low memory cases and throw away some downloaded bitmaps (not all the bitmaps are shown at the same time, but they might be visible to the user with a single "click", if they are already downloaded).
Is there a way to get the actual available memory (which means, the Java heap available memory)?