![]() ![]() This way you include the kzb files in the Android package.įor example, for an Android Studio project called MyProject, copy the Application/ bin directory to the MyProject directory. ![]() Copy the / Projects/ / Application/ bin directory to your Android Studio project root directory.In Kanzi Studio open the project which you want to add as a Kanzi View to an Android Studio project, and select File > Export > Export KZB.To add a KanziView to an Android Studio project: To run your Kanzi application in your Android application, you can add a KanziView to an existing Android Studio project. This diagram shows the initialization sequence of a Kanzi application on the Android platform.Īdding a KanziView to an Android Studio project To pause and resume rendering, KanziView uses the SurfaceHolder.Callback surfaceCreated() and surfaceDestroyed() functions. ![]() Kanzi does not use the _PAUSE and _RESUME events because they do not tell whether the application surface is ready for rendering. ![]() KanziNativeLibrary.resizeEvent(width, height) height: The new height of the surface. When the format or size of the Kanzi application surface changes, When the Kanzi application surface is destroyed, pause rendering. When the application surface is created, run the Kanzi application. This function calls the KanziNativeLibrary.haltApplication() and Halt and destroy the Kanzi application. This function calls the KanziNativeLibrary.createApplication() function, initialize the context, and assign the KanziView for rendering. Load the native library that provides Kanzi functionality, A Kanzi application uses these lifecycle events: Each event maps to an Android activity callback method. The Android lifecycle events set how your Kanzi application behaves when the activity state changes. Android lifecycle events in a Kanzi application This diagram shows the process that Kanzi uses to build an Android package. Kanzi does not support the JavaScript scripting functionality on Android. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |