I'm trying to display a toast message using jnius on QPython. I'm not able to use the Py4A library, since the final result should work inside a Kivy application, which doesn't have SL4A's library.
from jnius import autoclass
activity = autoclass("org.renpy.android.PythonActivity").mActivity
toaster = autoclass("android.widget.Toast")
toast = toaster.makeText(activity.getApplicationContext(), "I'm a Toast", toaster.LENGTH_SHORT)
toast.show()
However, I'm getting a jnius.jnius.JavaException: No methods matching your arguments
.
How do I correctly use the toast notification with jnius?