I have a video processing program on Android and I want to buffer as much as possible. But to do that, I need to know how much free memory is available. I'm using OpenCV, so I need to know how much available native memory there is. Is this possible on Android? Ideally it would be done from Java, but a native code solution would also be helpful.
It has to be pretty fast since I would like to check the amount of free memory 10-30 times per second.
I've seen a lot of SO questions about native memory on Android, but none that I could find addressed this specific issue.