Developing Kanzi applications for Android¶
You can use these frameworks to develop Kanzi applications for the Android platform:
Kanzi Android framework (droidfw) |
Kanzi application framework (appfw) |
---|---|
A framework dedicated for developing Kanzi applications for Android. |
A framework for developing cross-platform applications. |
Exposes the Kanzi Java API, which allows you to write application and plugin code entirely in Java or Kotlin. You do not need to write any C++ or JNI code, but you can still use native Kanzi plugins. |
You write application and plugin code in C++ and extending Android-specific functionality requires writing JNI glue code. |
Provides strong integration with the Android UI, including support for multiple simultaneous Kanzi-based Views and flexible composition of Kanzi and Android UI elements. |
Kanzi is rendered to only one View at a time. |
Kanzi integrates with the Android Choreographer which runs the Kanzi main loop tasks in the Android UI thread. You can directly use the Kanzi Java API from your application code without the need for dispatcher maechanisms. |
Kanzi runs in its own thread that is separate from the Android UI thread. To invoke the Kanzi Engine C++ API from your application code through JNI, post your code as a runnable to the Kanzi |
If you want to create an application for the Android platform, and you intend to use Android APIs and services extensively, use the Kanzi Android framework (droidfw). |
If you want to create an application for multiple platforms and you intend to share non-trivial application code between the platforms, use the Kanzi application framework (appfw). |
See Developing for Android with the Kanzi application framework (appfw). |
See also¶
Requirements for Android application development with Kanzi
Developing with the Kanzi Android framework (droidfw)
Developing for Android with the Kanzi application framework (appfw)
Deploying Kanzi applications to Android
Migrating from Kanzi application framework (appfw) to Kanzi Android framework (droidfw)
Troubleshooting Android application development with Kanzi
Kanzi Android framework API reference
Kanzi Android application framework API reference