summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJari Vetoniemi <mailroxas@gmail.com>2018-04-19 22:47:08 +0300
committerJari Vetoniemi <mailroxas@gmail.com>2018-04-19 22:47:08 +0300
commitab5d5a4110a075f0f30d1427d8d5c04da72a04d5 (patch)
treecf84412fb4b93c49a81427149346b7b298551c87
parent324e3f14574245b8b6de2325460e4a8266492458 (diff)
app: use android/app/Activity for main context
-rw-r--r--src/app.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app.c b/src/app.c
index 0d171d3..c0cf543 100644
--- a/src/app.c
+++ b/src/app.c
@@ -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);