Skip to content

Commit 97efc6d

Browse files
committed
Update examples
This updates both the examples to Gradle 9 and AGP 9.1 The examples are identical, except that `na-mainloop` is based on NativeActivity and the `agdk-mainloop` based on GameActivity. The examples demonstrate: - Using the `jni` API to define enough bindings to be able to send a Toast - Using an `android_on_create` entry point for logging initialization and JNI initialization - Using `AndroidApp::run_on_java_main_thread()` to send a toast from the Java main / UI thread - Running an `android_main` event loop, including printing historic pointer samples (a new 0.6.1 feature) The examples support two input actions: - Lifting your finger in the top-left corner of the screen will show the onscreen keyboard - Lifting your finger in the top-right corner of the screen will hide the onscreen keyboard If you edit and disable `configChanges` in `AndroidManifest.xml` then these examples can also demonstrate that `android-activity` gracefully handles repeated `Activity` create -> run -> destroy cycles.
1 parent dd66428 commit 97efc6d

70 files changed

Lines changed: 2183 additions & 785 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

examples/agdk-mainloop/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
*.iml
2-
.idea
32
.gradle
43
/local.properties
54
/.idea
5+
/.vscode
66
.DS_Store
77
/build
88
/captures

0 commit comments

Comments
 (0)