diff options
author | Jari Vetoniemi <mailroxas@gmail.com> | 2018-04-19 22:47:08 +0300 |
---|---|---|
committer | Jari Vetoniemi <mailroxas@gmail.com> | 2018-04-19 22:47:08 +0300 |
commit | ab5d5a4110a075f0f30d1427d8d5c04da72a04d5 (patch) | |
tree | cf84412fb4b93c49a81427149346b7b298551c87 | |
parent | 324e3f14574245b8b6de2325460e4a8266492458 (diff) |
app: use android/app/Activity for main context
-rw-r--r-- | src/app.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -35,7 +35,7 @@ main(int argc, const char *argv[]) struct jvm jvm; jvm_init(&jvm); - const jobject context = jvm.native.AllocObject(&jvm.env, jvm.native.FindClass(&jvm.env, "android/content/Context")); + const jobject context = jvm.native.AllocObject(&jvm.env, jvm.native.FindClass(&jvm.env, "android/app/Activity")); jint (*JNI_OnLoad)(void*, void*) = bionic_dlsym(handle, "JNI_OnLoad"); assert(JNI_OnLoad); |