Hi,
I'm playing around with native activity and android_native_app_glue. My current experiment is whether I can access from NDK an activity created from Java.
So, it is more clear what is going on when you create a native activity, because when you implement android_main , android_app structure is created for you and passed to the android_main as a parameter.
My question is: If I create activity in Java, can I access the activity from native code through JNI?
I think Ill need to create android_app structure manually but passing ANativeActivity* activity and AConfiguration* config and other stuff which might be accessible through JNIEnv *env. I want to reference current activity to catchAMotionEvent_* events.
is it possible? Am I going in the right direction?