You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Accessing Nested class variable (inherited from interface), 'DeepKlass.VAR1' in pyjnius returns None, instead of 'var1'. (See section below : Android Python Interaction ).
Works fine on my Ubuntu 14.04 Desktop. (See section below : Desktop Python Interaction)
Env Details: Android version: 4.4.4.
Notes : Faced this issue when using android contacts api, it needs to use such static variables.
(ref: api: ContactsContract.java )
Android Python Interaction
>>>fromkivyimportplatform>>>fromjniusimportautoclass, __version__>>>__version__'1.1-dev'>>>platform=="android"True>>>DeepKlass=autoclass("OuterKlass$InnerKlass$DeepKlass")
>>>#Works fine>>>DeepKlass.VAR2'var2'>>>#Does NOT work, returns None instead of string "var1>>>type(DeepKlass.VAR1
... )
<type'NoneType'>>>>
---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/24943500-on-android-accessing-static-variables-inherited-from-a-java-interface-in-nested-java-classes-returns-python-none-in-pyjnius?utm_campaign=plugin&utm_content=tracker%2F77133&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F77133&utm_medium=issues&utm_source=github).
The text was updated successfully, but these errors were encountered:
On Android, accessing static variables, inherited from a java interface, in nested java classes returns python 'None'.
(ref: api: ContactsContract.java )
Android Python Interaction
Desktop Python Interaction
The text was updated successfully, but these errors were encountered: