title: Is JNI_OnLoad normally used for Android NDK?
body: <p>I'm new to Android NDK, and I was reading <a href="https://developer.android.com/training/articles/perf-jni.html#native_libraries" rel="nofollow noreferrer">these tips</a> on the Android Developer site. It recommends using <code>JNI_OnLoad</code> to register your native methods, but doesn't give much detail on how to do that. </p>
  
  <p>Searching <a href="https://github.com/googlesamples/android-ndk" rel="nofollow noreferrer">Google's NDK sample repo on GitHub</a> only turned up one usage of <code>JNI_OnLoad</code>, and it doesn't call <code>RegisterNatives</code>. Searching the web didn't turn up much on how to do this either. </p>
  
  <p>I feel like I'm missing something. This is supposed to be the correct way to do it, according to Google, but their own examples use the "discovery" method naming approach instead. </p>
  
  <p>Is this perhaps an old way of doing it, that's not really done anymore?</p>