How can I access Android APIs using python modules and libraries? | Sololearn: Learn to code for FREE!
+ 1

How can I access Android APIs using python modules and libraries?

I'm trying to create an android app ( I'm using PC and Pydroid3) and I want to access Android APIs. I can't seem to find a way to access them using kivy, pyler, tkinter, PyQt5 or pyjnius. Each of those failed in a different way: KIVY - I don't know how, I can't find any examples of people accessing APIs using kivy and they always recommend pyjnius. PYJNIUS - I always get "SystemError:NULL result without error in PyObject_Call ", and It doesn't install on Windows because there's no "JAVA_HOME". Usually the second recommendation is Pyler. PYLER - I get "ModuleNotFoundError:No module named' plyer' " when I write "import pyler" PYQT5, TKINTER - It is faster than KIVY but it doesn't seem to have a way to access Android APIs.

5th Sep 2019, 12:03 PM
Mugisha Benjamin Safari
Mugisha Benjamin Safari - avatar
1 Antwort
+ 3
I think you are on the right track. You should be able to get this working with Kivy + Plyer or Pyjnius. (watch out for spelling) https://kivy.org/doc/stable/guide/android.html#using-android-apis
5th Sep 2019, 12:47 PM
Tibor Santa
Tibor Santa - avatar