based on https://bitbucket.org/Nodrev/kivy-python-for-android-with-ctypes/commits/branch/mgdesign