Chaquopy version 0.4.3
This version significantly improves startup performance. In the demo app, the “Android UI demo” activity now opens more than twice as fast as in version 0.4.0.
This version significantly improves startup performance. In the demo app, the “Android UI demo” activity now opens more than twice as fast as in version 0.4.0.
This version adds the ability to inherit Java classes and interfaces in Python classes. This means that Python objects can now be instantiated or accessed by non-Python-aware code, making it possible to write an Android app entirely in Python.
For more details, see the documentation. Or for a complete example, see the “Android UI demo” activity in the demo app.
This version adds several conveniences to make using Java from Python more seamless:
isinstance
and issubclass
now work correctly with Java classes and objects.JavaException
class. In conjunction with the previous point, this means that standard Python try ... except
syntax can now be used to catch Java exceptions.ClassName.method(instance, args)
.The main improvements in this version are:
from ... import
statement.With these two features, direct use of the jclass
function is now mostly unnecessary.
For more details, see the documentation.