Search code examples
androidpythonkivypyjnius

Kivy + PyJnius check android version


Is there any way to get the android version (4 or 5 or 6 or 7) directly from python or pyjnius?

If so, could anyone make an example?

I tried kivy.platform but it only tells me if it is android or not and using platform.release from python gives me the linux version


Solution

  • You can use pyjnius to retrieve the version via the Java API, as described e.g. here.