pyjnius
pyjnius copied to clipboard
Access Java classes from Python
A bit of history: trying to make TensorFlow Lite work on Android. The way they [recommend](https://www.tensorflow.org/lite/guide/python) isn't working for like 9 months now, and currently isn't a priority for them...
Hi I am trying to implement Java in Python using Pyjnius My code: ``` PythonActivity = autoclass('org.kivy.android.PythonActivity') currentActivity = cast('android.app.Activity', PythonActivity.mActivity) context = cast('android.content.Context', currentActivity.getApplicationContext()) ``` While running i am...
Currently, the keyword argument **python_requires** of **setup()** is not set, and thus it is assumed that this distribution is compatible with all Python versions. However, I found it is not...
I'm a novice and trying to get an audio record function as an input in my android app for school project. I got an example audio record using pyjnius from...
```python from jnius import autoclass ArrayList = autoclass("java.util.ArrayList") md = ArrayList() md.add(b'hello') md.add(b'world') print(type(md.get(0))) # should be bytes, but is str print(md.get(0)) # should be b'hello', but is 'hello' ```...
When both installed, e.g. conda create -n pyjnius pyjnius libzip, it leads to a ClobberError on "zip.dll" between openjdk and libzip, which then leads to an error at JVM initialization:...
Hi, Using jnius version: '1.1.0' I am running the following code on python 2.7: ` from jnius import autoclass` `self.r = autoclass('java.util.Stack')` I am getting the error : `Traceback (most...
Hi people i have this error sometimes when i implement the OnCompletionListener I/python (16270): 2015-11-24 08:22:46-0600 [-] Traceback (most recent call last): I/python (16270): 2015-11-24 08:22:46-0600 [-] File "jnius_proxy.pxi", line...
Facing this error ===== Python/java method missing ====== Python class: Java method name:apply Signature: (Ljava/lang/Object;)Ljava/lang/Object; Traceback (most recent call last): File "jnius/jnius_proxy.pxi", line 50, in jnius.PythonJavaClass.invoke File "jnius/jnius_proxy.pxi", line 74,...