Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualMillionaire

Posted 16 December 2012 - 04:53 AM

Hi,

I was doing some research about Open GL for Android and came across this users question on
StackOveflow : http://stackoverflow...ndroid-graphics

In his explanation, he states : "The math engine is in C (JNI)"

I was just wondering why would this user want to use a math engine written in C through JNI and not just
implement it in Java. Also, can someone help me better understand when you would want to use JNI and how it really works?

Thanks.

#1Millionaire

Posted 16 December 2012 - 04:46 AM

Hi,

I was doing some research about Open GL for Android and came across this users question on
StackOveflow : http://stackoverflow.com/questions/2755446/android-2d-opengl-or-android-graphics

In his explanation, he states : "The math engine is in C (JNI)"

I was just wondering why would this user want to use a math engine written in C through JNI and not just
implement it in Java. Also, is it a bad practice to use JNI?

Thanks.

PARTNERS