get Application class from AndroidManifest.xml and call onCreate()

This commit is contained in:
Julian Winkler
2023-08-17 10:09:07 +02:00
parent c60e97f13f
commit a8e39cd613
4 changed files with 30 additions and 4 deletions

View File

@@ -115,7 +115,6 @@ void set_up_handle_cache(JNIEnv *env)
(*env)->ExceptionDescribe(env);
handle_cache.application.class = _REF((*env)->FindClass(env, "android/app/Application"));
handle_cache.application.object = _REF(_GET_STATIC_OBJ_FIELD(handle_cache.context.class, "this_application", "Landroid/app/Application;"));
handle_cache.application.get_app_icon_path = _METHOD(handle_cache.application.class, "get_app_icon_path", "()Ljava/lang/String;");
}