I need to create a custom view (a 3D object view) using C++ library like OBJ-Loader.
I can use this library by setting up Android NDK in my Android Studio Java project. However, once the NDK loads the .OBJ file and creates a 3D Object, how can I show that on my Activity
?
Is it possible to show the view created by NDK on a normal Java Activity
? If so, how to pass that data/view to Java? I am aware of how I can pass String/Double/etc. values from NDK to my Java Activity
.
Note: I am trying to avoid NativeActivity
because there are other components on the activity that are much easier to do in plain old Activity
.
Reference to any documentation or guide is appreciated!