How to import Opencv to my android native application

hello everyone.I am new to Opencv and now I am engaged in a project,Which is originally from Android EVS(Extend View System).

In EVS,I get the camera frame which is fisheye distortion.Now I want to use OpenCV to calib it and get the normal one.

I searched in Google and found that there is few tutorials about import Opencv in Android framework native layer,mostly in JAVA application layer.

My thought is that I can build OpenCv to .so and in my project I will load these .so and call OpenCV functions.

So is there anyone can share me with this method to build Opencv to .so in Android environment?Or if U guys have better solution please tell me.