I am developping in android platform handset.
I have one native dynamic library named xxx.so. I want to invoke this dynamic library in android platform.
Now I know with following steps I can invoke this dynamic library via APL:
-
with JNI, package this native library with one JAR such as xxxx.JAR
-
In the APL xml file, export java functions
-
In the UE4 c++ class cpp file, use java wrapper to invoke functions exported in the APL file.
But can I invoke this native library directly? Like steps below:
-
Use FPlatformProcess::GetDllHandle and GetDllExport, load the so and get the exported functions
-
In the UE4 C++ cpp file, invoking the functions gotten by GetDllExport.
One word, I want to invoke so like FWindowsPlatformProcess.
Is there anyone can show me some suggestions or give me pieces of sample code?
Thanks is advanced!