Getting Android Device Version Number

I’ve noticed JUCE already has those quirky ways of getting those values easily:

As I’d like to branch for previous versions. It would be great adding some ability to get Android version without re-doing code already been used internally within JUCE.

My rationale btw, is I want the JUCE file dialog on old Android devices which seem to work better (from my experience with older Android devices).
(Read/Write files - #28 by reuk)

ok, so newer NDK has:
android_get_device_api_level without hooping around JNI.