Going down the game activity approach things worked better.
I just found this tutorial which seems useful: GitHub - Hydrafox/JarTuto: I explain how to communicate with Unreal from Blueprint to C++, and from C++ to Java jar file using JNI
(Posted here as I found this thread when trying to work out how to do things).