You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
get Application class from AndroidManifest.xml and call onCreate()
This commit is contained in:
@@ -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;");
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user