Files
kotlin-fork/samples/androidNativeActivity
Ilya Matveev 6809c6482c gradle-plugin: Add project extension for global parameters
Add 'konan' project extension with the following properties:
 * targets
 * languageVersion
 * apiVersion

Remove languageVersion and apiVersion compilation task parameters.
2017-10-20 17:09:23 +03:00
..
2017-10-12 15:17:06 +03:00
2017-09-26 15:10:25 +03:00
2017-06-22 13:53:03 +03:00
2017-06-20 20:01:43 +03:00
2017-06-20 20:01:43 +03:00

Android Native Activity

This example shows how to build an Android Native Activity.

The example will render a textured dodecahedron using OpenGL ES library. It can be rotated with fingers. Please make sure that Android SDK version 25 is installed, using Android SDK manager in Android Studio. See https://developer.android.com/studio/index.html for more details on Android Studio or $ANDROID_HOME/tools/bin/sdkmanager "platforms;android-25" "build-tools;25.0.2" from command line.

To build use ANDROID_HOME=<your path to android sdk> ../gradlew buildApk.

Run $ANDROID_HOME/sdk/platform-tools/adb install -r build/outputs/apk/androidNativeActivity-arm-debug.apk to deploy the apk on the Android device or emulator (note that only ARM-based devices are currently supported).