diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/app.c | 2 | ||||
-rw-r--r-- | src/libjvm-android.c | 8 |
2 files changed, 1 insertions, 9 deletions
@@ -40,7 +40,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/content/Context")); void* (*JNI_OnLoad)(void*, void*) = apkenv_android_dlsym(handle, "JNI_OnLoad"); assert(JNI_OnLoad); diff --git a/src/libjvm-android.c b/src/libjvm-android.c index ddf3be5..baaf614 100644 --- a/src/libjvm-android.c +++ b/src/libjvm-android.c @@ -7,11 +7,3 @@ android_content_Context_getPackageName(JNIEnv *env, jobject object, va_list args assert(env && object); return (*env)->NewStringUTF(env, "com.gnu.linux"); } - -jstring -android_content_context_getPackageName(JNIEnv *env, jobject object, va_list args) -{ - // Probably bug in unity, call to lowercase context class, but works due to case-insensitive filesystem. - // <https://stackoverflow.com/questions/10890805/case-sensitivity-of-java-class-names> - return android_content_Context_getPackageName(env, object, args); -} |